the home site for me: also iteration 3 or 4 of my site

feat: add h-entry

Changed files
+58 -43
templates
+58 -43
templates/blog-page.html
···
{% extends "base.html" %} {% block content %}
<div><a href="..">..</a>/<span class="accent-data">{{ page.slug }}</span></div>
-
<time datetime="{{ page.date }}"
-
>Published on:
-
<span class="accent-data"
-
>{{ page.date | split(pat="T") | first }}</span
-
></time
-
>
-
{% if config.extra.author and config.extra.display_author == true %}
-
<address rel="author">
-
By <span class="accent-data">{{config.extra.author}}</span>
-
</address>
-
{% endif %}
-
<h1>{{ page.title }}</h1>
+
<article class="h-entry">
+
<a class="u-url" href="{{ page.permalink }}" style="display: none"> </a>
+
<time
+
datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S%z') }}"
+
class="dt-published"
+
>Published on:
+
<span class="accent-data"
+
>{{ page.date | split(pat="T") | first }}</span
+
></time
+
>
+
{% if config.extra.author and config.extra.display_author == true %}
+
<address rel="author">
+
By
+
<a
+
rel="author"
+
class="accent-data p-author h-card"
+
href="https://dunkirk.sh"
+
>{{config.extra.author}}</a
+
>
+
</address>
+
{% endif %}
+
<h1>{{ page.title }}</h1>
+
+
{% if page.toc and page.extra.toc %}
+
<h2>Table of contents</h2>
+
<ul>
+
{% for h1 in page.toc %}
+
<li>
+
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
+
{% if h1.children %}
+
<ul>
+
{% for h2 in h1.children %}
+
<li>
+
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
+
<ul>
+
{% for h3 in h2.children %}
+
<li>
+
<a href="{{ h3.permalink | safe }}"
+
>{{ h3.title }}</a
+
>
+
</li>
+
{% endfor %}
+
</ul>
+
</li>
+
{% endfor %}
+
</ul>
+
{% endif %}
+
</li>
+
{% endfor %}
+
</ul>
+
{% endif %}
-
{% if page.toc and page.extra.toc %}
-
<h2>Table of contents</h2>
-
<ul>
-
{% for h1 in page.toc %}
-
<li>
-
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
-
{% if h1.children %}
-
<ul>
-
{% for h2 in h1.children %}
-
<li>
-
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
-
<ul>
-
{% for h3 in h2.children %}
-
<li>
-
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
-
</li>
-
{% endfor %}
-
</ul>
-
</li>
-
{% endfor %}
-
</ul>
-
{% endif %}
-
</li>
-
{% endfor %}
-
</ul>
-
{% endif %} {{ page.content | safe }}
+
<div class="e-content p-name">{{ page.content | safe }}</div>
-
<p class="tags-data">
-
{% if page.taxonomies.tags %} {% for tag in page.taxonomies.tags %}
-
<a href="/tags/{{ tag | slugify }}">|{{ tag }}|</a>
-
{% endfor %} {% endif %}
-
</p>
+
<p class="tags-data">
+
{% if page.taxonomies.tags %} {% for tag in page.taxonomies.tags %}
+
<a href="/tags/{{ tag | slugify }}" class="p-category">|{{ tag }}|</a>
+
{% endfor %} {% endif %}
+
</p>
+
</article>
{% endblock content %}