Restyle tag pages

This commit is contained in:
Gergely Polonkai 2017-01-02 11:12:10 +01:00
parent cd1316a29a
commit 4440e5467f
3 changed files with 17 additions and 1 deletions

View File

@ -4,7 +4,11 @@
<li class="col-md-8"> <li class="col-md-8">
{% endif %} {% endif %}
<header class="post-header"> <header class="post-header">
{% if page.tag %}
<h5>
{% else %}
<h3> <h3>
{% endif %}
{% if page.post_listing %} {% if page.post_listing %}
<a href="{{post.url | prepend: site.baseurl}}"> <a href="{{post.url | prepend: site.baseurl}}">
{% endif %} {% endif %}
@ -15,7 +19,11 @@
{% if layout.render_post %} {% if layout.render_post %}
<div class="plusone-container"><div class="g-plusone" data-annotation="inline" data-size="small" data-width="300"></div></div> <div class="plusone-container"><div class="g-plusone" data-annotation="inline" data-size="small" data-width="300"></div></div>
{% endif %} {% endif %}
{% if page.tag %}
</h5>
{% else %}
</h3> </h3>
{% endif %}
<div class="meta pull-left"> <div class="meta pull-left">
{{post.author.name}} {{post.author.name}}
</div> </div>

View File

@ -2,8 +2,10 @@
layout: default layout: default
post_listing: true post_listing: true
--- ---
<h3 class="tag">{{ page.tag }}</h3>
{{content}} {{content}}
<h3>Articles under this tag</h3>
<h4>Articles under this tag</h4>
{% if site.tags[page.tag] %} {% if site.tags[page.tag] %}
{% assign posts = site.tags[page.tag] %} {% assign posts = site.tags[page.tag] %}

View File

@ -228,3 +228,9 @@ kbd
background-color: #a9a9a9 background-color: #a9a9a9
color: black color: black
padding: 5px padding: 5px
h3.tag
text-transform: uppercase
h5
font-weight: bold