bro
This commit is contained in:
parent
ff00b85135
commit
bbf7112099
1 changed files with 37 additions and 0 deletions
37
templates/blog-page.html
Normal file
37
templates/blog-page.html
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h2>{{ page.title }}</h2>
|
||||||
|
<div class="blogauthor">
|
||||||
|
{% if config.extra.author and config.extra.display_author == true %}
|
||||||
|
<address rel="author">by <span class="metaData">{{config.extra.author}}</span></address></div>
|
||||||
|
{% endif %}
|
||||||
|
<div class="blogdate">
|
||||||
|
<time datetime="{{ page.date }}">published <span class="metaData">{{ page.date }}</span></time>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% if page.toc and page.extra.toc %}
|
||||||
|
{% for h1 in page.toc %}
|
||||||
|
<div class="navtoc">
|
||||||
|
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
|
||||||
|
{% if h1.children %}
|
||||||
|
{% for h2 in h1.children %}
|
||||||
|
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
|
||||||
|
{% for h3 in h2.children %}
|
||||||
|
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}</div>
|
||||||
|
|
||||||
|
{{ page.content | safe }}
|
||||||
|
|
||||||
|
<p class="tagsData">
|
||||||
|
{% if page.taxonomies.tags %}
|
||||||
|
{% for tag in page.taxonomies.tags %}
|
||||||
|
<a href="/tags/{{ tag | slugify }}">/{{ tag }}/</a>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
{% endblock content %}
|
Loading…
Add table
Reference in a new issue