## -*- coding: utf-8 -*-
<%namespace name="notes" file="annotation_helper.tmpl" import="*" />
<%def name="html_headstart()">
% if use_base_tag:
% endif
%if description:
%endif
%if title == blog_title:
${blog_title|h}
%else:
${title|h} | ${blog_title|h}
%endif
${html_stylesheets()}
${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_bundles:
%if use_cdn:
%else:
%endif
%else:
%if use_cdn:
%else:
%endif
%endif
%if colorbox_locales[lang]:
%endif
${social_buttons_code}
%def>
<%def name="html_stylesheets()">
%if use_bundles:
%if use_cdn:
%else:
%endif
%else:
%if use_cdn:
%else:
%endif
%if has_custom_css:
%endif
%endif
% if needs_ipython_css:
% endif
% if annotations and post and not post.meta('noannotations'):
${notes.css()}
% elif not annotations and post and post.meta('annotations'):
${notes.css()}
% endif
%def>
<%def name="html_navigation_links()">
%for url, text in navigation_links[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>