diff options
| author | foswret <foswret@posteo.com> | 2026-03-22 12:54:35 -0500 |
|---|---|---|
| committer | foswret <foswret@posteo.com> | 2026-03-22 12:54:35 -0500 |
| commit | 73b06c31b505d1a0f2e4035c7daab0df49a25d3b (patch) | |
| tree | 778e996fcf635de175ae03d91e8353db5a364e29 /templates/partials | |
| parent | d300415652d513a54c214c894e996036d2c999ce (diff) | |
implement basic nav bar
Diffstat (limited to 'templates/partials')
| -rw-r--r-- | templates/partials/header.html | 4 | ||||
| -rw-r--r-- | templates/partials/nav.html | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/templates/partials/header.html b/templates/partials/header.html new file mode 100644 index 0000000..9dbc6eb --- /dev/null +++ b/templates/partials/header.html @@ -0,0 +1,4 @@ +<!-- if "title" is set in config.toml, display site name --> +{% if config.title %} + <h1>{{ config.title }}</h1> +{% endif %} diff --git a/templates/partials/nav.html b/templates/partials/nav.html new file mode 100644 index 0000000..f8c0eff --- /dev/null +++ b/templates/partials/nav.html @@ -0,0 +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> +{% endfor %} +{% endif %} |
