mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add icons to posts
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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 more »</em></a>
|
||||
|
||||
Reference in New Issue
Block a user