francescomecca.eu/themes/cayman/templates/base_helper.tmpl
Francesco Mecca 2558df9d00 assets dir
2018-11-10 18:32:04 +01:00

68 lines
2 KiB
Cheetah

## -*- coding: utf-8 -*-
<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl" import="*"/>
<%def name="html_headstart()">
<!DOCTYPE html>
<html \
lang="${lang}">
<head>
<meta charset="utf-8">
%if description:
<meta name="description" content="${description|h}">
%endif
<meta name="viewport" content="width=device-width">
%if title == blog_title:
<title>${blog_title|h}</title>
%else:
<title>${title|h} | ${blog_title|h}</title>
%endif
${html_stylesheets()}
<meta name="theme-color" content="${theme_color}">
% if meta_generator_tag:
<meta name="generator" content="Nikola (getnikola.com)">
% endif
${feeds_translations.head(classification=None, kind='index', other=False)}
<link rel="canonical" href="${abs_link(permalink)}">
%if favicons:
%for name, file, size in favicons:
<link rel="${name}" href="${file}" sizes="${size}"/>
%endfor
%endif
%if prevlink:
<link rel="prev" href="${prevlink}" type="text/html">
%endif
%if nextlink:
<link rel="next" href="${nextlink}" type="text/html">
%endif
${extra_head_data}
</%def>
<%def name="late_load_js()">
</%def>
<%def name="html_stylesheets()">
<link rel="stylesheet" href="/assets/blog/fonts/opensans.css">
<link href="/assets/blog/css/normalize.css" rel="stylesheet" type="text/css">
<link href="/assets/blog/css/cayman.css" rel="stylesheet" type="text/css">
</%def>
### This function is deprecated; use feed_helper directly.
<%def name="html_feedlinks()">
${feeds_translations.head(classification=None, kind='index', other=False)}
</%def>
<%def name="html_translations()">
<ul class="translations">
%for langname in sorted(translations):
%if langname != lang:
<li><a href="${abs_link(_link("root", None, langname))}" rel="alternate" hreflang="${langname}">${messages("LANGUAGE", langname)}</a></li>
%endif
%endfor
</ul>
</%def>