summaryrefslogtreecommitdiff
path: root/shortcodes/statnav.tmpl
blob: 85da064e53333c285111a6ee298c858d72f03577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!-- I was here -->
% if global_data.get('navigation'):
<ul class="nav flex-column bg-light mt-4 shadow-sm">
  % for langname in sorted(translations):
    % if langname != lang and post.is_translation_available(langname):
    <li class="nav-item">
      <a class ="nav-link" href="${post.permalink(langname)}" rel="alternate" hreflang="${langname}">${messages("LANGUAGE", langname)}</a>
    </li>
    % endif
  % endfor

  % for nav in global_data['navigation']:
  <li class="nav-item">
    <a class="nav-link" href="${nav.get('url','#')}">${nav.get('title',u'error')}</a>
  </li>
  % endfor
</ul>
% endif