quitsocialmedia.club/layouts/page.html

53 lines
1.0 KiB
HTML

---
layout: wrapper
---
<div class='one column'>
<div class='row page-header'>
<h1>{{ page.title }}</h1>
<p>{{ page.description | markdownify }}</p>
</div>
{% if page.toc == true %}
<div class='row toc'>
<h2>
{% case page.lang %}
{% when 'it' %}
Indice
{% when 'fr' %}
Table des matières
{% else %}
Table of contents
{% endcase %}
</h2>
{% include toc.html html=content sanitize=true %}
</div>
{% endif %}
{% if page.ref == 'why' %}
<div class='row toc'>
<h2>
{% case page.lang %}
{% when 'it' %}
Indice
{% when 'fr' %}
Table des matières
{% else %}
Table of contents
{% endcase %}
</h2>
{% include toc.html html=content sanitize=true h_max=2 %}
</div>
{% endif %}
<div class='row'>
<article class='note'>
{% include anchor-parser.html html=content h_max=4 anchorBody='#' anchorClass='anchor' anchorTitle='%heading%' %}
</article>
</div>
<div class='row'>
{% include edit.html %}
{% include share.html %}
</div>
</div>