## -*- coding: utf-8 -*-
<%def name="html_headstart()">
%if description:
%endif
%if title == blog_title:
${blog_title|h}
%else:
${title|h} | ${blog_title|h}
%endif
${html_stylesheets()}
% if meta_generator_tag:
% endif
${html_feedlinks()}
%if favicons:
%for name, file, size in favicons:
%endfor
%endif
% if comment_system == 'facebook':
% endif
%if prevlink:
%endif
%if nextlink:
%endif
${mathjax_config}
%if use_cdn:
%else:
%endif
${extra_head_data}
%def>
<%def name="late_load_js()">
%if use_cdn:
% endif
%if use_bundles and use_cdn:
%elif use_bundles:
%else:
%if not use_cdn:
%endif
%endif
%if date_fanciness != 0:
%if use_cdn:
%else:
%endif
%if not use_bundles:
%endif
%endif
${social_buttons_code}
%def>
<%def name="html_stylesheets()">
%if use_cdn:
% endif
%if use_bundles and use_cdn:
%elif use_bundles:
%else:
%if not use_cdn:
%endif
%if has_custom_css:
%endif
%endif
% if needs_ipython_css:
% endif
%def>
<%def name="html_navigation_links()">
${html_navigation_links_entries(navigation_links)}
%def>
<%def name="html_navigation_links_entries(navigation_links_source)">
%for url, text in navigation_links_source[lang]:
% if isinstance(url, tuple):
${text}
% else:
% if rel_link(permalink, url) == "#":
${text} ${messages("(active)", lang)}
%else:
${text}
%endif
% endif
%endfor
%def>
<%def name="html_feedlinks()">
%if rss_link:
${rss_link}
%elif generate_rss:
%if len(translations) > 1:
%for language in sorted(translations):
%endfor
%else:
%endif
%endif
%if generate_atom:
%if len(translations) > 1:
%for language in sorted(translations):
%endfor
%else:
%endif
%endif
%def>
<%def name="html_translations()">
%for langname in sorted(translations):
%if langname != lang:
${messages("LANGUAGE", langname)}
%endif
%endfor
%def>