1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-09-24 01:58:50 +02: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,8 +9,6 @@
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)

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,11 +10,18 @@
</a>
</p>
<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 %}
<time is="time-ago" class="updated" datetime="{{ page.updated | date_to_xmlschema }}">Updated {{ page.updated | date_to_string }}</time>
<br>updated <time is="time-ago" class="updated" datetime="{{ page.updated | date_to_xmlschema }}">{{ page.updated | date_to_string }}</time>
{% endif %}
</p>
<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 %}