From 69417ddd4531f94090b820d783f07021d0719028 Mon Sep 17 00:00:00 2001 From: Tom Teichler <tom.teichler@teckids.org> Date: Sat, 29 Feb 2020 21:51:18 +0100 Subject: [PATCH] Add example for nested menu --- pelicanconf.py | 18 +++++++++++++----- themes/teckids | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index 63f3198a..1657dc3c 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -24,10 +24,18 @@ TRANSLATION_FEED_ATOM = None AUTHOR_FEED_ATOM = None AUTHOR_FEED_RSS = None -# Blogroll -LINKS = (('Pelican', 'http://getpelican.com/'), - ('Python.org', 'http://python.org/'), - ('Jinja2', 'http://jinja.pocoo.org/')) +# Navbar +MENUITEMS = [ + ('Home', '/'), + ('Foo', [ + ('Bar', '/bar.html'), + ('Beispiel', 'https://example.com'), + ]), + ('Bar', [ + ('Foobar', '/beispiel'), + ('Barfoo', '/beispiel1.html'), + ]), + ] FOOTERMENU = (('Pelican', 'http://getpelican.com/'), ('Python.org', 'http://python.org/'), @@ -40,4 +48,4 @@ SOCIAL = (('You can add links in your config file', '#'), DEFAULT_PAGINATION = 10 # Uncomment following line if you want document-relative URLs when developing -#RELATIVE_URLS = True \ No newline at end of file +#RELATIVE_URLS = True diff --git a/themes/teckids b/themes/teckids index 66fd902c..54cd665a 160000 --- a/themes/teckids +++ b/themes/teckids @@ -1 +1 @@ -Subproject commit 66fd902c66a0913d42c6a6b8a3f0dd2625250959 +Subproject commit 54cd665a264e8b8e5d5a070f50fcdb43920b95be -- GitLab