summaryrefslogtreecommitdiff
path: root/themes/ccc/templates/static_navigation.tmpl
blob: e0bb4945ea67b9b685deac4dd94829d4331d2ac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
## -*- coding: utf-8 -*-

<%block name="static_navigation">
% 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
</%block>