feat: Update templates and styling
All checks were successful
Build / build (push) Successful in 18s
All checks were successful
Build / build (push) Successful in 18s
This commit is contained in:
parent
b834fbac92
commit
ab79feb4ab
1 changed files with 432 additions and 203 deletions
|
|
@ -1,12 +1,36 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ page.title }}{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<div class="blog-page-content">
|
||||
<div class="title">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<span>{{ page.date }}</span>
|
||||
<span>{{ page.date | date(format="%Y-%m-%d") }}</span>
|
||||
{% if page.taxonomies.tags %}
|
||||
<span class="tags">
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
{% set t = get_taxonomy_term(kind="tags", term=tag) %}
|
||||
<a href="{{ t.permalink | safe }}">{{ tag }}</a>{% if not loop.last %} · {% endif %}
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
{# adjacent posts: higher = older (below in the list), lower = newer (above) #}
|
||||
{% if page.higher or page.lower %}
|
||||
<nav class="post-nav" aria-label="Other posts">
|
||||
{% if page.higher %}
|
||||
<a href="{{ page.higher.permalink | safe }}"><< Previous</a>
|
||||
{% else %}
|
||||
<span></span>
|
||||
{% endif %}
|
||||
{% if page.lower %}
|
||||
<a href="{{ page.lower.permalink | safe }}">Next >></a>
|
||||
{% else %}
|
||||
<span></span>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue