website/_layouts/post.html

54 lines
1.2 KiB
HTML
Raw Normal View History

2019-08-13 15:16:48 +02:00
---
layout: default
---
<header class="post-header">
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
<h5>Postato il <span class="post-meta">{{ page.date | date: "%d/%m/%Y" }}</span></h6>
</header>
{% if page.image %}
<img src="/assets/images/{{ page.image }}">
{% endif %}
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="entry-content" itemprop="articleBody">
{{ content }}
</div>
<hr class="mb-3">
<h5>
Autore: <strong>{{ page.author }}</strong><br>
Licenza: <strong>{{ page.license }}</strong>
</h5>
<span>
{% for tag in page.tags %}
{% capture tag_name %}{{ tag }}{% endcapture %}
<a href="/tag/{{ tag_name }}.html"><code class="highligher-rouge"><nobr>{{ tag_name }}</nobr></code>&nbsp;</a>
{% endfor %}
</span>
</article>
<div id="post-nav" class="pb-5">
<div class="previous">
{% if page.previous.url %}
<a href="{{ site.baseurl }}{{ page.previous.url }}">
<span>Precedente</span>
{{ page.previous.title }}
</a>
{% endif %}
</div>
<div class="next">
{% if page.next.url %}
<a href="{{ site.baseurl }}{{ page.next.url }}">
<span>Prossimo</span>
{{ page.next.title }}
</a>
{% endif %}
</div>
</div>