bune.city/_layouts/post.html

50 lines
1.7 KiB
HTML
Raw Normal View History

2020-04-03 05:37:20 +00:00
---
layout: default
---
2020-04-03 06:30:14 +00:00
{% include header.html %}
<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'>person</i> By {{ page.author }} <br>
<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 -%}
<a href='/categories/{{ category }}'>{{ category }}</a>
{%- unless category == page.categories.last %}, {% endunless %}
{%- endfor %} <br>
<i class='material-icons'>label</i> Tags:
{{ " " }}{%- for tag in page.tags -%}
<a href='/tags/{{ category }}'>{{ tag }}</a>
{%- unless tag == page.tags.last %}, {% endunless %}
{%- endfor %}
</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 -%}
<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>
2020-04-05 08:41:13 +00:00
coming soon uwu
</section>
<section id='post-comments'>
2020-04-05 14:06:25 +00:00
<h2 id='comments'>Leave a comment</h2>
2020-04-05 08:41:13 +00:00
coming soon uwu
</section>
</article>
</main>