_layouts/post.html in jekyll-theme-hamilton-1.4.4 vs _layouts/post.html in jekyll-theme-hamilton-2.0.0
- old
+ new
@@ -26,28 +26,48 @@
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif -%}
</p>
- {% if page.tags.size > 0 %}
- <p class="post-meta post-tags">
- {% assign tags = page.tags | sort %}
- {% for tag in tags %}
- <span class="post-tag">
- {% assign slugified_tag = tag | slugify %}
- <a href="{{ '/tags/#:tag' | replace: ':tag', slugified_tag | relative_url }}">#{{ slugified_tag }}</a>
- </span>
- {% endfor %}
- </p>
- {% endif %}
-
</header>
<div class="post-content e-content" itemprop="articleBody">
{{ content }}
+ </div>
- {% if page.comments != false and jekyll.environment == "production" %}
- {% include disqus.html %}
+ <footer class="post-footer">
+ {% if page.categories.size > 0 %}
+ <div class="post-meta">
+ <i class="fas fa-folder"></i>
+ <ul class="post-taxonomies post-categories">
+ {% assign categories = page.categories | sort %}
+ {% for category in categories %}
+ <li class="post-category">
+ {% assign slugified_category = category | slugify %}
+ <a href="{{ '/categories/#:category' | replace: ':category', slugified_category | relative_url }}">{{ category }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
{% endif %}
- </div>
+
+ {% if page.tags.size > 0 %}
+ <div class="post-meta">
+ <i class="fas fa-tags"></i>
+ <ul class="post-taxonomies post-tags">
+ {% assign tags = page.tags | sort %}
+ {% for tag in tags %}
+ <li class="post-tag">
+ {% assign slugified_tag = tag | slugify %}
+ <a href="{{ '/tags/#:tag' | replace: ':tag', slugified_tag | relative_url }}">{{ slugified_tag }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endif %}
+ </footer>
+
+ {% if page.comments != false and jekyll.environment == "production" %}
+ {% include disqus.html %}
+ {% endif %}
</article>