From 0e49d6d961fb2a08f2c1706a5f49185499c09bce Mon Sep 17 00:00:00 2001 From: mattbk Date: Thu, 9 Mar 2017 12:49:48 -0600 Subject: [PATCH] First post on page with https://gist.github.com/nimbupani/1421828. --- _includes/post_detail.html | 9 +++++++++ index.html | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 _includes/post_detail.html diff --git a/_includes/post_detail.html b/_includes/post_detail.html new file mode 100644 index 0000000..e09501f --- /dev/null +++ b/_includes/post_detail.html @@ -0,0 +1,9 @@ +

+{% if page.title %} + {{ page.title }} +{% endif %} +{% if post.title %} + {{ post.title }} +{% endif %} +

+
{{ content }}
\ No newline at end of file diff --git a/index.html b/index.html index bc656bc..9d199ef 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,12 @@ layout: default title: {{ site.name }} --- +
+ {% assign post = site.posts.first %} + {% assign content = post.content %} + {% include post_detail.html %} +
+

Blog Posts