mirror of
https://github.com/bspeice/speice.io
synced 2025-07-01 13:56:11 -04:00
Initial commit
This commit is contained in:
46
_layouts/post.html
Normal file
46
_layouts/post.html
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
layout: page
|
||||
---
|
||||
<article class="c-article">
|
||||
<header class="c-article__header">
|
||||
<h1 class="c-article__title">{{ page.title }}</h1>
|
||||
<p class="c-article__time"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time></p>
|
||||
</header>
|
||||
|
||||
<!-- Post Tags -->
|
||||
<ul class="c-tags">
|
||||
{% for tag in page.tags %}
|
||||
<li class="c-tag">{{ tag }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<div class="c-article__main">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
<!-- Previous / Next Buttons -->
|
||||
<div class="pagenav">
|
||||
{% if page.previous.url %}
|
||||
<div class="wrapper" id="left">
|
||||
<small><b>Previous</b> {{page.previous.date | date: "%b %-d, %Y"}}</small>
|
||||
<br>
|
||||
<a class="no-hov" href="{{ page.previous.url | prepend: site.baseurl }}">« {{page.previous.title}}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if page.next.url %}
|
||||
<div class="wrapper" id="right">
|
||||
<small>{{page.next.date | date: "%b %-d, %Y"}} <b>Next</b></small>
|
||||
<br>
|
||||
<a class="no-hov" href="{{ page.previous.url | prepend: site.baseurl }}">{{page.next.title}} »</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!-- Disqus comments view -->
|
||||
{% if page.comments != false and site.disqus_id %}
|
||||
<div class="post-disqus">
|
||||
<section id="disqus_thread"></section>
|
||||
{% include disqus.html %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
Reference in New Issue
Block a user