diff options
| -rw-r--r-- | _includes/post-preview.html | 2 | ||||
| -rw-r--r-- | _includes/title-with-backlink.html | 4 | ||||
| -rw-r--r-- | _layouts/post.html | 21 |
3 files changed, 16 insertions, 11 deletions
diff --git a/_includes/post-preview.html b/_includes/post-preview.html index 53ed59d..05cc4f1 100644 --- a/_includes/post-preview.html +++ b/_includes/post-preview.html @@ -7,7 +7,7 @@ <a href="{{ post.url }}">read more...</a> </p> <small> - <p>{{ post.date | date_to_string }} | + <p>{{ post.date | date_to_string }} / {% for tag in post.tags %}<a href="/tags/{{tag}}">{{tag}} </a> {% endfor %} </p> diff --git a/_includes/title-with-backlink.html b/_includes/title-with-backlink.html new file mode 100644 index 0000000..ee7a10e --- /dev/null +++ b/_includes/title-with-backlink.html @@ -0,0 +1,4 @@ +<div class="title_with_backlink"> + <h1>{{ include.title }}</h1> + <a class="backlink" href="{{ include.backlink }}">go back</a> +</div> diff --git a/_layouts/post.html b/_layouts/post.html index 30029a8..602cfce 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -4,18 +4,19 @@ layout: default <div class="post-page"> <div class="post-header"> - <h1>{{ page.title }}</h1> - <ul> - <li>{{ page.date | date: "%F" }}</li> + {% include title-with-backlink.html title=page.title backlink="/blog/" %} + <div class="post-header-info"> + <p class="post-date">{{ page.date | date: "%F" }}</p> {% if page.tags.size > 0 %} - <li> | </li> - <li>tags:</li> - {% for tag in page.tags %} - <li><a href="/tags/{{ tag }}">{{ tag }}</a></li> - {% endfor %} + <p>tags:</p> + <ul> + {% for tag in page.tags %} + <li><a href="/tags/{{ tag }}">{{ tag }}</a></li> + {% endfor %} {% endif %} - </ul> + </ul> + </div> <hr> </div> -{{ content }} + {{ content }} </div> |
