Created
July 13, 2012 23:44
-
-
Save digitaljhelms/3108260 to your computer and use it in GitHub Desktop.
A JSON formatted response containing all posts from a Jekyll blog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"homepage": "http://digitaljhelms.github.com", | |
"name": "digitaljhelms", | |
"description": "finally blogging...", | |
"author": "Jeremy Helms", | |
"post": { | |
"url": "http://digitaljhelms.github.com/howto/creating-a-branch-with-no-parents-or-history", | |
"slug": "creating-a-branch-with-no-parents-or-history", | |
"title": "Create a Git Branch without Parents or History", | |
"published_on": "2012-07-02 00:00:00 -0500", | |
"excerpt": "git checkout has an --orphan option that will create a branch with no "parents" or relation at all to other branches/commits in the repository.From the man page:Create a new orphan branch, named , started from and switch to it. The first commit made on this new branch will have no parents and it will be...", | |
"tags": "git", | |
"categories": "howto" | |
}, | |
"post": { | |
"url": "http://digitaljhelms.github.com/howto/build-and-install-git-from-source-on-os-x-lion", | |
"slug": "build-and-install-git-from-source-on-os-x-lion", | |
"title": "Build and Install Git from Source on OS X Lion", | |
"published_on": "2012-06-09 00:00:00 -0500", | |
"excerpt": "This outline for building and installing Git has only been tested against Mac OS X 10.7.x (Lion). While these steps may work for previous versions of Mac OS X, I cannot confirm this. Furthermore, you're on your own, if you screw something up, it's not my fault.If you have Xcode 4, you have Git!Xcode 4...", | |
"tags": "git, osx, lion", | |
"categories": "howto" | |
} | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Remember to set production_url in your _config.yml file! | |
title : JSON | |
--- | |
[ | |
{ | |
"homepage": "{{ site.production_url }}", | |
"name": "{{ site.title }}", | |
"description": "{{ site.tagline }}", | |
"author": "{{ site.author.name }}"{% for post in site.posts %}, | |
"post": { | |
"url": "{{ site.production_url }}{{ post.url }}", | |
"slug": "{{ post.id | remove:'/' }}", | |
"title": "{{ post.title }}", | |
"published_on": "{{ post.date }}", | |
"excerpt": "{{ post.content | strip_html | strip_newlines | truncatewords: 55 }}", | |
"tags": "{% for tag in post.tags %}{{ tag }}{% if forloop.rindex0 > 0 %}, {% endif %}{% endfor %}", | |
"categories": "{% for category in post.categories %}{{ category }}{% if forloop.rindex0 > 0 %}, {% endif %}{% endfor %}" | |
}{% endfor %} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment