diff options
Diffstat (limited to 'templates/partials')
| -rw-r--r-- | templates/partials/footer.html | 4 | ||||
| -rw-r--r-- | templates/partials/header.html | 14 | ||||
| -rw-r--r-- | templates/partials/nav.html | 4 |
3 files changed, 19 insertions, 3 deletions
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 %} |
