Use article element in article.html

This commit is contained in:
David Lapshin
2024-05-21 01:49:15 +03:00
parent 5cd96fb15f
commit 39d75b08c7

View File

@ -1,9 +1,10 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h1>{{ page.title }}</h1> <article>
<h1>{{ page.title }}</h1>
{%- if page.date %} {%- if page.date %}
<small> <small>
<time datetime="{{ page.date | date(format=' %+') }}" pubdate> <time datetime="{{ page.date | date(format=' %+') }}" pubdate>
{{- page.date | date(format=config.extra.date_format) -}} {{- page.date | date(format=config.extra.date_format) -}}
@ -25,9 +26,9 @@
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}
</small> </small>
{%- endif %} {%- endif %}
{% if page.extra.archive %} {% if page.extra.archive %}
<div class="statement-container archive"> <div class="statement-container archive">
<strong class="big"> <strong class="big">
<svg viewBox="0 0 16 16" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M4 1a1 1 0 0 0-.926.625l-2 5A1 1 0 0 0 1 7v7s0 2 2 2h10s2 0 2-2l.004-6.937c0-.149-.004-.297-.074-.438l-2-5A1 1 0 0 0 12 1zm.676 2h6.644l1.203 3h-9.05zM7 8h2v3h2a1 1 0 0 1-.293.707l-2 2a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1-.285-.7L5 11h2zm0 0"/></svg> <svg viewBox="0 0 16 16" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M4 1a1 1 0 0 0-.926.625l-2 5A1 1 0 0 0 1 7v7s0 2 2 2h10s2 0 2-2l.004-6.937c0-.149-.004-.297-.074-.438l-2-5A1 1 0 0 0 12 1zm.676 2h6.644l1.203 3h-9.05zM7 8h2v3h2a1 1 0 0 1-.293.707l-2 2a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1-.285-.7L5 11h2zm0 0"/></svg>
@ -35,9 +36,9 @@
</strong> </strong>
{{ page.extra.archive | markdown | safe }} {{ page.extra.archive | markdown | safe }}
</div> </div>
{% endif %} {% endif %}
{% if page.extra.trigger %} {% if page.extra.trigger %}
<div class="statement-container trigger"> <div class="statement-container trigger">
<strong class="big"> <strong class="big">
<svg viewBox="0 0 16 16" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.906.094C7.38.066 6.867.375 6.47 1.063L.219 12.656C-.316 13.621.266 15 1.313 15h13.156c.98 0 1.902-1.16 1.219-2.344L9.375 1.125C8.977.48 8.434.121 7.906.094M9 4v5c.008.527-.473 1-1 1s-1.008-.473-1-1V4zm-1 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 0"/></svg> <svg viewBox="0 0 16 16" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.906.094C7.38.066 6.867.375 6.47 1.063L.219 12.656C-.316 13.621.266 15 1.313 15h13.156c.98 0 1.902-1.16 1.219-2.344L9.375 1.125C8.977.48 8.434.121 7.906.094M9 4v5c.008.527-.473 1-1 1s-1.008-.473-1-1V4zm-1 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 0"/></svg>
@ -45,9 +46,9 @@
</strong> </strong>
{{ page.extra.trigger | markdown | safe }} {{ page.extra.trigger | markdown | safe }}
</div> </div>
{% endif %} {% endif %}
{% if page.extra.disclaimer %} {% if page.extra.disclaimer %}
<div class="statement-container disclaimer"> <div class="statement-container disclaimer">
<strong class="big"> <strong class="big">
<svg viewBox="0 0 16 16" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.906.094C7.38.066 6.867.375 6.47 1.063L.219 12.656C-.316 13.621.266 15 1.313 15h13.156c.98 0 1.902-1.16 1.219-2.344L9.375 1.125C8.977.48 8.434.121 7.906.094M9 4v5c.008.527-.473 1-1 1s-1.008-.473-1-1V4zm-1 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 0"/></svg> <svg viewBox="0 0 16 16" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.906.094C7.38.066 6.867.375 6.47 1.063L.219 12.656C-.316 13.621.266 15 1.313 15h13.156c.98 0 1.902-1.16 1.219-2.344L9.375 1.125C8.977.48 8.434.121 7.906.094M9 4v5c.008.527-.473 1-1 1s-1.008-.473-1-1V4zm-1 7c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 0"/></svg>
@ -55,9 +56,9 @@
</strong> </strong>
{{ page.extra.disclaimer | markdown | safe }} {{ page.extra.disclaimer | markdown | safe }}
</div> </div>
{% endif %} {% endif %}
{% if page.extra.toc %} {% if page.extra.toc %}
<h2>Table of Contents</h2> <h2>Table of Contents</h2>
<ul> <ul>
{% for h1 in page.toc %} {% for h1 in page.toc %}
@ -75,9 +76,10 @@
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
{{ page.content | safe }} {{ page.content | safe }}
</article>
{% if page.extra.comments.id %} {% if page.extra.comments.id %}
{% include "partials/comments.html" %} {% include "partials/comments.html" %}