aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html12
-rw-r--r--templates/partials/footer.html4
-rw-r--r--templates/partials/header.html14
-rw-r--r--templates/partials/nav.html4
-rw-r--r--templates/posts.html4
5 files changed, 27 insertions, 11 deletions
diff --git a/templates/base.html b/templates/base.html
index 752d091..7e9a668 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -8,13 +8,13 @@
<title>CHANGE ME</title>
</head>
+<body>
{% include "partials/header.html" %}
-{% include "partials/nav.html" %}
-<body>
- <section class="section">
- {% block content %} {% endblock content %}
- </section>
-</body>
+<main>
+ {% block content %} {% endblock content %}
+ {% include "partials/footer.html" %}
+</main>
+</body>
</html>
diff --git a/templates/partials/footer.html b/templates/partials/footer.html
new file mode 100644
index 0000000..472d9ea
--- /dev/null
+++ b/templates/partials/footer.html
@@ -0,0 +1,4 @@
+<footer>
+<hr class="divider" style="border-top: 2px solid #bbb;">
+<p>Code under AGPL, content under CC by SA.</p>
+</footer>
diff --git a/templates/partials/header.html b/templates/partials/header.html
index 9dbc6eb..3400a2b 100644
--- a/templates/partials/header.html
+++ b/templates/partials/header.html
@@ -1,4 +1,16 @@
+<header>
+
<!-- if "title" is set in config.toml, display site name -->
{% if config.title %}
- <h1>{{ config.title }}</h1>
+<div class="header-item">
+ <h1 id="site-title">{{ config.title }}</h1>
+</div>
{% endif %}
+
+<!-- include navigation bar -->
+<nav class="header-item">
+ {% include "partials/nav.html" %}
+</nav>
+
+</header>
+
diff --git a/templates/partials/nav.html b/templates/partials/nav.html
index f8c0eff..f1f7d9b 100644
--- a/templates/partials/nav.html
+++ b/templates/partials/nav.html
@@ -1,7 +1,7 @@
{% if config.extra.navbar_items %}
{% for item in config.extra.navbar_items %}
-<nav>
- <a href="{{ get_url(path=item.url) }}">{{ item.name }}</a>
+<nav class="header-item">
+ <a class="nav-item" href="{{ get_url(path=item.url) }}">{{ item.name }}</a>
</nav>
{% endfor %}
{% endif %}
diff --git a/templates/posts.html b/templates/posts.html
index cb6c14b..169c75d 100644
--- a/templates/posts.html
+++ b/templates/posts.html
@@ -1,9 +1,9 @@
{% extends "base.html" %}
{% block content %}
-<h1 class="title">
+<h3 class="title">
{{ section.title }}
-</h1>
+</h3>
<ul>
{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>