Brings the blog, staff photos, other content into Jekyll #150
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are three main things going on here: the creation of templates for blog posts, moving the staff photos into a YAML file, and injecting that YAML data into the index.html template. This makes the site look ostensibly the same as the 18f.gsa.gov you see today.
For the blog: instead of using JS to pull post data out of tumblr's we're serving out the raw HTML stuffed into a jekyll template. I used
jekyll-import
to dump the html from the pots out of tumblr. The one caveat is that our tags list is currently linked to the respective archives on tumblr but, because Jekyll doesn't fully support tags (as far as I can tell) we can't link to those archives.For the staff photos: I created a yaml file in the
_data
directory with an entry for each person. Right now the keys are justname
andfull_name
but the super upshot in using this over copying and pasting new html is the slimmed down template code and the ability to extend out the ways we visualize our team.The last piece that both of those above feed into is significantly simplified templates. This commit cuts more than 200 lines out of the index.html template and adds reusable templates for blog posts.