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