First post on page with https://gist.github.com/nimbupani/1421828.
This commit is contained in:
9
_includes/post_detail.html
Normal file
9
_includes/post_detail.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<h1 class="entry-title">
|
||||||
|
{% if page.title %}
|
||||||
|
<a href="{{ root_url }}{{ page.url }}">{{ page.title }}</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if post.title %}
|
||||||
|
<a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a>
|
||||||
|
{% endif %}
|
||||||
|
</h1>
|
||||||
|
<div class="entry-content">{{ content }}</div>
|
@ -3,6 +3,12 @@ layout: default
|
|||||||
title: {{ site.name }}
|
title: {{ site.name }}
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<div class="blog-index">
|
||||||
|
{% assign post = site.posts.first %}
|
||||||
|
{% assign content = post.content %}
|
||||||
|
{% include post_detail.html %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="home">
|
<div id="home">
|
||||||
<h1>Blog Posts</h1>
|
<h1>Blog Posts</h1>
|
||||||
<ul class="posts">
|
<ul class="posts">
|
||||||
|
Reference in New Issue
Block a user