Browse Source

Kategorie-Badge

master
Christian Aust 1 month ago
parent
commit
f938aaa62d
  1. 3
      _layouts/post.html
  2. 3
      index.html
  3. 9
      styles.scss

3
_layouts/post.html

@ -9,6 +9,9 @@ layout: default
{% if page.update %}
| <time datetime="{{ page.update | date_to_xmlschema }}">Aktualisiert am {{ page.update | date_to_string }}</time>
{% endif %}
{% if page.category %}
<span class="badge">{{ page.category }}</span>
{% endif %}
</p>
{% if page.description %}
<p class="post-intro">{{ page.description }}</p>

3
index.html

@ -20,6 +20,9 @@ sitemap:
{% if post.update %}
| <time datetime="{{ post.update | date_to_xmlschema }}">Aktualisiert am {{ post.update | date_to_string }}</time>
{% endif %}
{% if post.category %}
<span class="badge">{{ post.category }}</span>
{% endif %}
</p>
{{ post.excerpt }}

9
styles.scss

@ -9,6 +9,15 @@ sitemap: false
@import '_lanyon';
@import '_syntax';
.badge {
display: inline-block;
height: 1.8rem;
line-height: 1.0rem;
background-color: #eee;
color: #515151;
padding: 0.4rem 0.3rem;
}
.footnotes {
position: relative;
margin-top: 3.0rem;

Loading…
Cancel
Save