1
0
mirror of https://github.com/danbee/danbarber.me synced 2025-03-04 08:59:10 +00:00
danbarber.me/_includes/article.html
2018-11-10 16:17:37 -05:00

28 lines
1.0 KiB
HTML

<header class="container blog-post__header">
{% if page.external-url %}
<h1 class="blog-post__title"><a href="{{ page.external-url }}">{% if site.titlecase %}{{ page.title | titlecase }} &rarr;{% else %}{{ page.title }}{% endif %}</a></h1>
{% else %}
<h1 class="blog-post__title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
{% endif %}
{% if page.date %}<p class="meta">{% include post/date.html date=page.date %}{{ time }}</p>{% endif %}
</header>
<div class="blog-post__content">
{{ content }}
</div>
<footer class="blog-post__footer container">
<p class="meta">
{% if page.date %}{% include post/date.html date=page.date %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}{% endif %}
|
{% include post/categories.html %}
</p>
</footer>
{% if post.external-url %}
<div class="blog-post__content">
<p><a href="{{ root_url }}{{ post.url }}">Permalink</a></p><!-- add permalink at end of link posts; could be text or glyph -->
</div>
{% endif %}