quitsocialmedia.club/layouts/wrapper.html

40 lines
1.5 KiB
HTML
Raw Normal View History

2020-12-31 20:03:57 +01:00
---
---
2020-09-17 14:41:50 +02:00
<!DOCTYPE html>
2022-01-05 20:29:51 +01:00
<html lang='{% if page.lang == 'it' %}it{% else %}en{% endif %}'>
2020-09-17 14:41:50 +02:00
2020-12-31 20:03:57 +01:00
{% include head.html %}
2020-09-17 14:41:50 +02:00
2020-12-31 20:03:57 +01:00
<body>
2022-01-05 20:29:51 +01:00
<a id='scroll-to-top' href='#' title='scroll to top'>
<svg class='top button tool' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='background:var(--background)'><path d='M18 15a1 1 0 0 1-.64-.23L12 10.29l-5.37 4.32a1 1 0 0 1-1.41-.15 1 1 0 0 1 .15-1.41l6-4.83a1 1 0 0 1 1.27 0l6 5a1 1 0 0 1 .13 1.41A1 1 0 0 1 18 15z' fill='var(--text)'/></svg>
2020-12-31 20:03:57 +01:00
</a>
2022-01-05 20:29:51 +01:00
<a id='scroll-to-bottom' href='#0' title='scroll to bottom'>
<svg class='bottom button tool' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='background:var(--background)'><path d='M18 15a1 1 0 0 1-.64-.23L12 10.29l-5.37 4.32a1 1 0 0 1-1.41-.15 1 1 0 0 1 .15-1.41l6-4.83a1 1 0 0 1 1.27 0l6 5a1 1 0 0 1 .13 1.41A1 1 0 0 1 18 15z' fill='var(--text)'/></svg>
2021-02-01 19:07:20 +01:00
</a>
<script>
2022-01-05 20:29:51 +01:00
scrollbottom = document.getElementById('scroll-to-bottom');
2021-02-01 19:07:20 +01:00
window.onscroll = function() {scroll()};
function scroll() {
if (document.body.scrollTop > 1000 || document.documentElement.scrollTop > 1000) {
2022-01-05 20:29:51 +01:00
scrollbottom.style.display = 'none';
2021-02-01 19:07:20 +01:00
} else {
2022-01-05 20:29:51 +01:00
scrollbottom.style.display = 'block';
2021-02-01 19:07:20 +01:00
}
}
</script>
2020-12-31 20:03:57 +01:00
{% include nav.html %}
2020-09-17 14:41:50 +02:00
2020-12-31 20:03:57 +01:00
{% if page.tags contains 'draft' or page.tags contains 'wip' %}
{% include draft.html %}
{% endif %}
2020-09-17 14:41:50 +02:00
2021-01-01 12:53:46 +01:00
{% if page.tags contains 'l10n' %}
{% include l10n.html %}
{% endif %}
2020-12-31 20:03:57 +01:00
{{ content }}
{% include footer.html %}
</body>
2021-02-11 11:35:06 +01:00
</html>