diff options
Diffstat (limited to 'templates/partials')
| -rw-r--r-- | templates/partials/footer.html | 3 | ||||
| -rw-r--r-- | templates/partials/head.html | 20 | ||||
| -rw-r--r-- | templates/partials/nav.html | 9 |
3 files changed, 32 insertions, 0 deletions
diff --git a/templates/partials/footer.html b/templates/partials/footer.html new file mode 100644 index 0000000..122766f --- /dev/null +++ b/templates/partials/footer.html @@ -0,0 +1,3 @@ +<footer> + <a href="{{ config.extra.repository_url }}">source code</a> +</footer> diff --git a/templates/partials/head.html b/templates/partials/head.html new file mode 100644 index 0000000..5b1dcf6 --- /dev/null +++ b/templates/partials/head.html @@ -0,0 +1,20 @@ +<head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <style>{{ load_data(path="static/main.css") | safe }}</style> + <link rel="sitemap" href="sitemap.xml" /> + {% if page.title %} + <title>{{ page.title }} :: {{ config.title }}</title> + {% elif section.title %} + <title>{{ section.title }} :: {{ config.title }}</title> + {% else %} + <title>{{ config.title }}</title> + {% endif %} + {% if page.description %} + <meta name="description" content="{{ page.description }}" /> + {% elif section.description %} + <meta name="description" content="{{ section.description }}" /> + {% else %} + <meta name="description" content="{{ config.description }}" /> + {% endif %} +</head> diff --git a/templates/partials/nav.html b/templates/partials/nav.html new file mode 100644 index 0000000..e65db1d --- /dev/null +++ b/templates/partials/nav.html @@ -0,0 +1,9 @@ +<nav> + <div id="nav_links"> + {% for link in config.extra.nav_links %} + <a href="{{ link.url }}">{{ link.name }}</a> + {% endfor %} + </div> + + <hr /> +</nav> |
