Browse Source

Fixed tag list position and post navigation.

gh-pages
Franco Masotti 3 years ago
parent
commit
023df6c4fc
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 5
      _includes/post_navigation.html
  2. 4
      _layouts/default.html
  3. 23
      _layouts/post.html
  4. 2
      _pages/index.md
  5. 2
      _pages/tags.md

5
_includes/post_navigation.html

@ -4,7 +4,7 @@
{% if page.previous.url %}
<li>
<a href="{{ site.baseurl }}{{ page.previous.url }}.html"
title="PREV: {{ page.previous.title }}">&lt;&lt;</a>
title="previous: {{ page.previous.title }}">&lt;&lt;</a>
</li>
{% endif %}
@ -18,8 +18,7 @@ title="PREV: {{ page.previous.title }}">&lt;&lt;</a>
{% if page.next.url %}
<li>
<a href="{{ site.baseurl }}{{ page.next.url }}.html" title="NEXT:
{{page.next.title}}">&gt;&gt;</a>
<a href="{{ site.baseurl }}{{ page.next.url }}.html" title="next: {{page.next.title}}">&gt;&gt;</a>
</li>
{% endif %}

4
_layouts/default.html

@ -11,10 +11,6 @@ layout: compress
<body>
{% include header.html %}
{% if page.is_home or page.is_tags %}
{% include tag_list.html %}
{% endif %}
{% if page.is_post != true %}
<div id="main"></div>
{% endif %}

23
_layouts/post.html

@ -2,6 +2,18 @@
layout: default
---
<div class="post-metadata">
<h1>{{ page.title }}</h1>
<div class="written-on">First written on {{ page.date | date: '%B %-d, %Y' }}</div>
{% assign page_date = page.date | date: '%F' %}
{% assign page_updated = page.updated | date: '%F' %}
{% if page_updated < page_date %}
<div class="updated-on">WARNING: check front matter <b>updated</b> variable</div>
{% elsif page_date != page_updated %}
<div class="updated-on">Last updated on {{ page.updated | date: '%B %-d, %Y' }}</div>
{% endif %}
</div>
{% if page.tags %}
{% assign page_tags = page.tags | sort %}
<div class="tag-list">
@ -16,17 +28,6 @@ layout: default
</ul>
</div>
{% endif %}
<div class="post-metadata">
<h1>{{ page.title }}</h1>
<div class="written-on">First written on {{ page.date | date: '%B %-d, %Y' }}</div>
{% assign page_date = page.date | date: '%F' %}
{% assign page_updated = page.updated | date: '%F' %}
{% if page_updated < page_date %}
<div class="updated-on">WARNING: check front matter <b>updated</b> variable</div>
{% elsif page_date != page_updated %}
<div class="updated-on">Last updated on {{ page.updated | date: '%B %-d, %Y' }}</div>
{% endif %}
</div>
<div class="post" id="main">
{% include anchor_headings.html html=content %}

2
_pages/index.md

@ -4,6 +4,8 @@ permalink: index.html
excerpt: none
---
{% include tag_list.html %}
<div class="index" markdown="1">
{% for post in site.posts %}
{% unless post.next %}

2
_pages/tags.md

@ -4,6 +4,8 @@ title: Tags
permalink: /tags/
---
{% include tag_list.html %}
<div class="tag-posts">
{% assign site_tags = site.tags | sort %}