mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
add categories & tags
This commit is contained in:
parent
deff2a3866
commit
bc779f9811
@ -9,11 +9,9 @@
|
|||||||
font-size: $font-size-small
|
font-size: $font-size-small
|
||||||
font-style: italic
|
font-style: italic
|
||||||
color: $text-color-dimmed
|
color: $text-color-dimmed
|
||||||
margin-top: $line-height-computed*2
|
|
||||||
border-radius: $border-radius-base
|
|
||||||
|
|
||||||
p
|
p
|
||||||
margin-bottom: ($line-height-computed/2)
|
margin-bottom: ($line-height-computed/2)
|
||||||
|
|
||||||
.btn-wrap
|
.btn-wrap
|
||||||
height: 27px
|
height: 27px
|
||||||
|
@ -74,12 +74,13 @@
|
|||||||
font-size: $font-size-small
|
font-size: $font-size-small
|
||||||
|
|
||||||
.byline,
|
.byline,
|
||||||
time,
|
.time,
|
||||||
.tags
|
.tags,
|
||||||
|
.categories
|
||||||
@extend .textcenter
|
@extend .textcenter
|
||||||
|
|
||||||
.byline,
|
.byline,
|
||||||
time
|
.time
|
||||||
font-style: italic
|
font-style: italic
|
||||||
|
|
||||||
.byline
|
.byline
|
||||||
@ -89,12 +90,17 @@ time
|
|||||||
.by
|
.by
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
time
|
.time
|
||||||
display: block
|
|
||||||
color: $text-color-dimmed
|
color: $text-color-dimmed
|
||||||
|
|
||||||
.tags
|
//
|
||||||
margin-top: $line-height-computed
|
// Categories & Tags
|
||||||
|
//
|
||||||
|
.categories
|
||||||
|
margin-bottom: 0
|
||||||
|
|
||||||
|
.category
|
||||||
|
text-transform: capitalize
|
||||||
|
|
||||||
.tag
|
.tag
|
||||||
color: $text-color-dimmed
|
color: $text-color-dimmed
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<footer class="entry-meta">
|
<footer class="entry-meta">
|
||||||
|
|
||||||
<p class="byline author vcard source-org">
|
<p class="byline author vcard source-org">
|
||||||
<span class="by">by</span> <a class="fn" rel="author" href="/about/">
|
<span class="by">by</span> <a class="fn" rel="author" href="/about/">
|
||||||
{% if page.author %}
|
{% if page.author %}
|
||||||
@ -9,15 +10,22 @@
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</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 %}
|
<p class="categories">
|
||||||
<time is="time-ago" class="updated" datetime="{{ page.updated | date_to_xmlschema }}">Updated {{ page.updated | date_to_string }}</time>
|
{% for category in page.categories %}
|
||||||
{% endif %}
|
<a class="category" href="/{{ category }}">{{ category }}</a>
|
||||||
|
{% endfor %}
|
||||||
|
</p>
|
||||||
|
|
||||||
<p class="tags">
|
<p class="tags">
|
||||||
{% for tag in page.tags %}
|
{% for tag in page.tags %}
|
||||||
<a class="tag" href="/tag/{{ tag }}">{{ tag }}</a>
|
<a class="tag" href="/tag/{{ tag }}">{{ tag }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user