1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-23 02:10:01 +01:00

add categories & tags

This commit is contained in:
Matthias Kretschmann 2015-06-10 22:17:56 +02:00
parent deff2a3866
commit bc779f9811
3 changed files with 27 additions and 15 deletions

View File

@ -9,11 +9,9 @@
font-size: $font-size-small
font-style: italic
color: $text-color-dimmed
margin-top: $line-height-computed*2
border-radius: $border-radius-base
p
margin-bottom: ($line-height-computed/2)
.btn-wrap
height: 27px
height: 27px

View File

@ -74,12 +74,13 @@
font-size: $font-size-small
.byline,
time,
.tags
.time,
.tags,
.categories
@extend .textcenter
.byline,
time
.time
font-style: italic
.byline
@ -89,12 +90,17 @@ time
.by
display: block
time
display: block
.time
color: $text-color-dimmed
.tags
margin-top: $line-height-computed
//
// Categories & Tags
//
.categories
margin-bottom: 0
.category
text-transform: capitalize
.tag
color: $text-color-dimmed

View File

@ -1,4 +1,5 @@
<footer class="entry-meta">
<p class="byline author vcard source-org">
<span class="by">by</span> <a class="fn" rel="author" href="/about/">
{% if page.author %}
@ -9,15 +10,22 @@
</a>
</p>
<time is="time-ago" class="pubdate" datetime="{{ page.date | date_to_xmlschema }}" pubdate{% if page.updated %} data-updated="true"{% endif %}>{{ page.date | date_to_string }}</time>
<p class="time">
<time is="time-ago" class="pubdate" datetime="{{ page.date | date_to_xmlschema }}" pubdate{% if page.updated %} data-updated="true"{% endif %}>{{ page.date | date_to_string }}</time>
{% if page.updated %}
<br>updated <time is="time-ago" class="updated" datetime="{{ page.updated | date_to_xmlschema }}">{{ page.updated | date_to_string }}</time>
{% endif %}
</p>
{% if page.updated %}
<time is="time-ago" class="updated" datetime="{{ page.updated | date_to_xmlschema }}">Updated {{ page.updated | date_to_string }}</time>
{% endif %}
<p class="categories">
{% for category in page.categories %}
<a class="category" href="/{{ category }}">{{ category }}</a>
{% endfor %}
</p>
<p class="tags">
{% for tag in page.tags %}
<a class="tag" href="/tag/{{ tag }}">{{ tag }}</a>
<a class="tag" href="/tag/{{ tag }}">{{ tag }}</a>
{% endfor %}
</p>