Add icons to posts

This commit is contained in:
Philipp Oppermann
2020-12-30 18:14:17 +01:00
parent 7e0911b42e
commit b5bd0296bd
5 changed files with 49 additions and 5 deletions

View File

@@ -34,7 +34,12 @@
{% block main %}
<div class="{% if page.extra.rtl %}right-to-left{% endif %}">
<h1>{{ page.title }}</h1>
<div class="post-title">
<h1>{{ page.title }}</h1>
<span class="post-icon">
{%- if page.extra.icon -%}{{page.extra.icon | safe}}{%- endif -%}
</span>
</div>
<time datetime="{{ page.date | date(format="%Y-%m-%d") }}" class="post-date">
{{ page.date | date(format="%b %d, %Y") }}
{% if page.extra.updated %} (updated on {{ page.extra.updated | date(format="%b %d, %Y") }}) {% endif %}

View File

@@ -30,7 +30,10 @@
{%- set post = page -%}
{%- set not_translated = true -%}
{%- endif -%}
<h3 class="post-title"><a href="{{ post.path | safe }}">{{ post.title }}</a></h3>
<h3 class="post-list-title"><a href="{{ post.path | safe }}">{{ post.title }}</a></h3>
<span class="post-list-icon">
{%- if post.extra.icon -%}{{post.extra.icon | safe}}{%- endif -%}
</span>
<div class="post-summary">
{{ post.summary | safe }}
<a class="read-more" href="{{ post.path | safe }}"><em>read&nbsp;more&nbsp;»</em></a>