diff options
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..e867cb9 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,48 @@ +<!doctype html> +<html lang="en"> +<head> + {% block title %} + <title>cleberg.net</title> + {% endblock %} + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="theme-color" content="#111" media="(prefers-color-scheme: dark)"> + <meta name="theme-color" content="#fff" media="(prefers-color-scheme: light)"> + {% if page %} + {% if page.description %} + <meta name="description" content="{{ page.description }}"> + {% elif config.description %} + <meta name="description" content="{{ config.description }}"> + {% endif %} + {% elif config.description %} + <meta name="description" content="{{ config.description }}" /> + {% endif %} + + {% block rss %} + <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}"> + {% endblock %} + + {% block css %} + <link rel="stylesheet" href="/styles.min.css"> + {% endblock css %} + + {% block extra_head %}{% endblock extra_head %} +</head> +<body> + <nav class="site-nav" aria-label="site-nav" role="navigation"> + <ul> + <li><a href="/">Home</a></li> + <li><a href="/blog/">Blog</a></li> + <li><a href="/services/">Services</a></li> + <li><a href="/wiki/">Wiki</a></li> + </ul> + </nav> + + <main>{% block content %}{% endblock content %}</main> + + <footer> + <p>Last build: {{ now() | date(format="%Y-%m-%d %H:%M:%S") }}</p> + <p><a href="https://git.cleberg.net/?p=cleberg.net.git;a=summary" target="_blank" rel="noopener">Source Code</a></p> + <p><a href="/atom.xml">Atom RSS Feed</a></p> + </footer> +</body> +</html> |