motherfuckingblog/sites/jekyll-source/_layouts/post.html
Stewart Pidasso c021228161 init
2025-07-07 02:07:58 +00:00

46 lines
1.3 KiB
HTML

---
layout: default
---
<article class="post">
<header class="post-header">
<h1 class="post-title">{{ page.title | escape }}</h1>
<p class="post-meta">
<time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%b %-d, %Y" }}</time>
{% if page.author %}
<span>{{ page.author }}</span>
{% endif %}
</p>
</header>
<div class="post-content">
{{ content }}
</div>
{% if page.tags.size > 0 %}
<div class="post-tags">
<p>Tags:
{% for tag in page.tags %}
<a href="{{ site.baseurl }}/tags/#{{ tag | slugify }}">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}
{% endfor %}
</p>
</div>
{% endif %}
</article>
<br>
<h2>Recent Posts</h2>
<ul class="post-list">
{% for post in site.posts limit:10 %}
<li>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
</h3>
<p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p>
{% if post.description %}
<p>{{ post.description }}</p>
{% endif %}
</li>
{% endfor %}
</ul>
<p><a href="{{ "/archive" | relative_url }}">View all posts</a></p>