quitsocialmedia.club/layouts/page.html

40 lines
1.0 KiB
HTML
Raw Normal View History

2020-09-17 14:41:50 +02:00
---
layout: wrapper.html
2020-09-17 14:41:50 +02:00
---
2022-01-05 20:29:51 +01:00
<div class='one column'>
<div class='row page-header'>
<h1>{{ title }}</h1>
2022-09-18 10:38:26 +02:00
{% if description %}<p>{{ description | markdownify }}</p>{% endif %}
2020-09-17 14:41:50 +02:00
</div>
2021-01-01 12:53:46 +01:00
2022-09-18 10:38:26 +02:00
{% capture source %}{{ site.source }}/src/branch/main{{ page.inputPath | replace: './', '/' }}{% endcapture %}
{% if toc %}
<aside id='toc'>
<h3>
{% case lang %}
2022-01-05 20:29:51 +01:00
{% when 'it' %}
Indice
{% when 'fr' %}
Table des matières
{% else %}
Table of contents
{% endcase %}
</h3>
{{ content | toc }}
</aside>
2021-02-11 09:59:35 +01:00
{% endif %}
2021-01-01 12:53:46 +01:00
2022-01-05 20:29:51 +01:00
<div class='row'>
<article class='note'>
{{ content }}
2020-09-17 14:41:50 +02:00
</article>
</div>
2021-01-01 12:53:46 +01:00
2022-01-05 20:29:51 +01:00
<div class='row'>
2022-09-18 10:38:26 +02:00
<div class='flex center'><a class='button' href='{{ source }}' title='{% if lang == 'it' %}Visualizza{% else %}View{% endif %} {{ title }} source code'>{% case lang %}{% when 'it' %}Codice sorgente{% when 'fr' %}Code source{% else %}Source code{% endcase %}</a></div>
{% render 'share.html', lang: lang, title: title, encoded_absolute_url: encoded_absolute_url %}
2021-01-01 12:53:46 +01:00
</div>
2020-09-17 14:41:50 +02:00
</div>