diff options
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 %} |
