bune.city/_layouts/post.html

57 lines
2.4 KiB
HTML
Raw Normal View History

2020-04-03 05:37:20 +00:00
---
layout: default
---
2020-04-09 15:56:02 +00:00
<!-- <script data-isso="//isso.bune.city/" src="//isso.bune.city/js/embed.min.js"></script> -->
2020-04-03 06:30:14 +00:00
<h1 id='post-title'>{{ page.title }}</h1>
2020-04-05 08:41:13 +00:00
<main>
<article id='post-content'>
2020-04-05 14:06:25 +00:00
<section id='post-info'>
<i class='material-icons'>access_time</i> Published {{ page.date | date_to_long_string: "ordinal" }} <br>
<i class='material-icons'>group_work</i> Categories:
{{ " " }}{%- for category in page.categories -%}
2020-04-06 05:03:07 +00:00
<a href='/categories/{{ category | downcase }}'>{{ category }}</a>
2020-04-05 14:06:25 +00:00
{%- unless category == page.categories.last %}, {% endunless %}
{%- endfor %} <br>
{%- if page.tags.size > 0 -%}
2020-04-05 14:06:25 +00:00
<i class='material-icons'>label</i> Tags:
{{ " " }}{%- for tag in page.tags -%}
2020-04-06 12:19:02 +00:00
<a href='/tags/{{ tag | downcase }}' rel='tag'>{{ tag }}</a>
2020-04-05 14:06:25 +00:00
{%- unless tag == page.tags.last %}, {% endunless %}
{%- endfor %}
{%- endif %}
2020-04-05 14:06:25 +00:00
</section>
2020-04-05 08:41:13 +00:00
<section id='post-body'>
{{ content }}
</section>
<!-- <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a> -->
2020-04-05 08:41:13 +00:00
<hr>
2020-04-05 14:06:25 +00:00
<section id='post-related'>
<h2 id='related'>Posts like this</h2>
<div id='post-related-posts'>
{% for post in site.related_posts limit: 3 -%}
2020-04-05 14:06:25 +00:00
<div class='related-post'>
<div class='related-title'>{{ post.title }}</div>
<p>
{% if post.summary %}{{ post.summary }}{% else %}{{ post.excerpt | summarise }}{% endif %}
</p>
<a href='{{ post.url }}'>Read more</a>
</div>
{%- endfor %}
</div>
</section>
2020-04-05 08:41:13 +00:00
<section id='post-share'>
2020-04-05 14:06:25 +00:00
<h2 id='share'>Share this post</h2>
{%- assign summary = page.summary %}
{%- unless summary %}
{%- assign summary = page.excerpt | summarise | truncate: 150 %}
{%- endunless %}
2020-04-06 05:03:07 +00:00
{%- assign summary = summary | escape %}
<a class='post-share mastodon' target='_blank' href='/mastodon-share.html#Bune City Blog - {{ page.title }}%0A%0A{{ summary }}%0A%0A{{ page.url | absolute_url }} %23BuneCityBlog'></a>
<a class='post-share email' target='_blank' href="mailto:?subject={{ page.title }} - Bune City Blog&amp;body=An interesting article I read on the Bune City Blog: {{ summary }} Read more: {{ page.url }}"></a>
2020-04-05 08:41:13 +00:00
</section>
<section id='post-comments'>
2020-04-05 14:06:25 +00:00
<h2 id='comments'>Leave a comment</h2>
2020-04-06 12:19:02 +00:00
<div id='isso-thread'></div>
2020-04-05 08:41:13 +00:00
</section>
</article>
</main>