1
0
Fork 0

Theme: create a basic skeleton

pub/python-goto
LEdoian 4 years ago
parent 210dd84712
commit 53a8dc5d7b

@ -0,0 +1,54 @@
<!doctype html>
<html>
<head>
{# Meta: #}
<meta charset=utf-8>
{% if GENERATOR %}
<meta name=generator content="{{ GENERATOR }}">
{% endif %}
{% if AUTHOR %}
<meta name=author content="{{ AUTHOR }}">
{% endif %}
{% if SITE_DESCRIPTION %}
<meta name=description content="{{ SITE_DESCRIPTION }}">
{% endif %}
<meta name=referref content=no-referer>
{#
<meta name=theme-color content="">
<meta name=color-scheme content="dark">
#}
{# TODO: More meta tags #}
{# CSS and other: #}
{# Title setting #}
{% if page_title %}
{% set final_title = page_title ~ ' ' ~ SITENAME %}
{% else %}
{% set final_title = SITENAME %}
{% endif %}
<title>{{ final_title }}</title>
</head>
<body>
<header>
{% include "header.html" %}
</header>
<nav>
{% include "sidebar.html" %}
</nav>
<main>
{% block content %}
<p>No content here...</p>
{% endblock content %}
</main>
<footer>
{% include "footer.html" %}
</footer>
</body>
</html>

@ -0,0 +1,2 @@
<hr>
Written using {{ GENERATOR }} probably by {{ AUTHOR }}.

@ -1 +1 @@
Hello world :-)
{# Nothing here -- will be substituted by a page from content#}

@ -0,0 +1,5 @@
{% extends 'base.html' %}
{% set page_title = page.title %}
{% block content %}
{{ page.content }}
{% endblock content %}
Loading…
Cancel
Save