diff options
Diffstat (limited to 'themes/ccc/templates/static_navigation.tmpl')
-rw-r--r-- | themes/ccc/templates/static_navigation.tmpl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/themes/ccc/templates/static_navigation.tmpl b/themes/ccc/templates/static_navigation.tmpl new file mode 100644 index 00000000..e0bb4945 --- /dev/null +++ b/themes/ccc/templates/static_navigation.tmpl | |||
@@ -0,0 +1,21 @@ | |||
1 | ## -*- coding: utf-8 -*- | ||
2 | |||
3 | <%block name="static_navigation"> | ||
4 | % if global_data.get('navigation'): | ||
5 | <ul class="nav flex-column bg-light mt-4 shadow-sm"> | ||
6 | % for langname in sorted(translations): | ||
7 | % if langname != lang and post.is_translation_available(langname): | ||
8 | <li class="nav-item"> | ||
9 | <a class ="nav-link" href="${post.permalink(langname)}" rel="alternate" hreflang="${langname}">${messages("LANGUAGE", langname)}</a> | ||
10 | </li> | ||
11 | % endif | ||
12 | % endfor | ||
13 | |||
14 | % for nav in global_data['navigation']: | ||
15 | <li class="nav-item"> | ||
16 | <a class="nav-link" href="${nav.get('url','#')}">${nav.get('title',u'error')}</a> | ||
17 | </li> | ||
18 | % endfor | ||
19 | </ul> | ||
20 | % endif | ||
21 | </%block> | ||