Authors are key-value stored in _config.yml. Add yourself with a key:
joey:
name: Joey Aghion
github: joeyAghion
twitter: joeyAghion
site: http://joey.aghion.comEverything but name is optional.
Create a new file in the _posts directory. Templates are available in the Post-Templates directory.
Include this YAML header:
---
layout: post
title: "Responsive Layouts with CSS3"
date: 2012-01-17 11:03
comments: true
author: Matt McNierney
github-url: https://www.github.com/mmcnierney14
twitter-url: http://twitter.com/mmcnierney
blog-url: http://mattmcnierney.wordpress.com
categories: [Design, CSS, HTML5]
---Categories are aggregated from individual posts - adding a new one is as easy as including it in your post.
More info in the Jekyll docs.
git add .
git commit -m "Add blog post: Your Title"
git push origin your-branchCreate a PR to the source branch. It will be deployed when merged.
After authoring, consider regenerating related articles.
(optional) Comments are managed with GitHub Issues.
- Create an issue - quote the opening paragraph(s) and name it "Comments: My Fantastic New Post"
- Add the
Comment Threadlabel - Add
comment_id: <issue-number>to your post's front matter
Tweet from @ArtsyOpenSource (credentials in Engineering 1Password vault):
[pithy observation] [description of problem] [@ author's twitter]
[link to blog post]
[link to GitHub repo, if applicable]
[attach a screenshot of the first few paragraphs]
Add image description for accessibility:
Screenshot of the title and first two paragraphs of the linked-to blog post.
(optional)
The "related articles" section is generated offline using our staging vector database.
Prerequisites
- Install foreman:
gem install foreman - Copy environment file:
cp .env.example .env - Connect to the staging VPN to access Weaviate (our vector database)
Generate
foreman run bundle exec rake related_articlesCommit the resulting changes to related-articles.json.