diff options
author | Charlie Root <root@web.ccc.local> | 2020-05-26 22:45:15 +0000 |
---|---|---|
committer | Charlie Root <root@web.ccc.local> | 2020-05-26 22:45:15 +0000 |
commit | daf20dd652f9294273c1110f60ff4da6d99f67c5 (patch) | |
tree | 13bf0ee020cd847fa8c1a452c680948e3d99239d /shortcodes | |
parent | ba279352885269d921e71ff7f5314b5b21dc58b7 (diff) |
Commit preview bundle
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 | ||