Add menu links

This commit is contained in:
Oliver Davies 2021-09-07 13:01:41 +01:00
parent 6881587450
commit da534d3210
2 changed files with 13 additions and 0 deletions

View file

@ -1,2 +1,9 @@
name: Sculpin Demo name: Sculpin Demo
locale: en locale: en
main_menu:
-
title: Home
href: /
-
title: Talks
href: /talks/

View file

@ -1,5 +1,11 @@
{% extends 'app' %} {% extends 'app' %}
{% block body %} {% block body %}
<nav>
{% for link in site.main_menu %}
<a href="{{ link.href }}">{{ link.title }}</a>
{% endfor %}
</nav>
{% block content %}{% endblock %} {% block content %}{% endblock %}
{% endblock %} {% endblock %}