106 lines
3.3 KiB
Cheetah
106 lines
3.3 KiB
Cheetah
## -*- coding: utf-8 -*-
|
|
<%namespace name="base" file="base_helper.tmpl" import="*"/>
|
|
|
|
<%def name="html_header()">
|
|
<section class="page-header">
|
|
<h1 class="project-name">${html_site_title()}</h1>
|
|
<h2 class="project-tagline">La rete ti cattura ma libera il pensiero</h2>
|
|
<a class="btn" href="/">Home</a>
|
|
<a class="btn" href="/pages/about/">About me</a>
|
|
<a class="btn" href="/pages/contattami/">Contact me</a>
|
|
<a class="btn" href="/archiveall.html">Archive</a>
|
|
<a class="btn" href="/rss.xml">RSS</a>
|
|
<a class="btn" href="http://francescomecca.eu/git/pesceWanda">Personal Git</a>
|
|
<a class="btn" href="https://github.com/FraMecca">Github</a>
|
|
<a class="btn" href="https://francescomecca.eu/git/pesceWanda/Curriculum_vitae/raw/master/latex.dir/francesco_mecca_cv_eng.pdf">Curriculum</a>
|
|
</section>
|
|
|
|
|
|
${template_hooks['page_header']()}
|
|
</%def>
|
|
|
|
<%def name="html_site_title()">
|
|
${blog_title|h}
|
|
</%def>
|
|
|
|
<%def name="html_navigation_links()">
|
|
<nav id="menu">
|
|
<ul>
|
|
${html_navigation_links_entries(navigation_links)}
|
|
${html_navigation_links_entries(navigation_alt_links)}
|
|
${template_hooks['menu']()}
|
|
${template_hooks['menu_alt']()}
|
|
</ul>
|
|
</nav>
|
|
</%def>
|
|
|
|
<%def name="html_navigation_links_entries(navigation_links_source)">
|
|
%for url, text in navigation_links_source[lang]:
|
|
% if isinstance(url, tuple):
|
|
<li> ${text}
|
|
<ul>
|
|
%for suburl, text in url:
|
|
% if rel_link(permalink, suburl) == "#":
|
|
<li class="active"><a href="${permalink}">${text}<span class="sr-only"> ${messages("(active)", lang)}</span></a></li>
|
|
%else:
|
|
<li><a href="${suburl}">${text}</a></li>
|
|
%endif
|
|
%endfor
|
|
</ul>
|
|
% else:
|
|
% if rel_link(permalink, url) == "#":
|
|
<li class="active"><a href="${permalink}">${text}<span class="sr-only"> ${messages("(active)", lang)}</span></a></li>
|
|
%else:
|
|
<li><a href="${url}">${text}</a></li>
|
|
%endif
|
|
% endif
|
|
%endfor
|
|
</%def>
|
|
|
|
<%def name="html_translation_header()">
|
|
%if len(translations) > 1:
|
|
<div id="toptranslations">
|
|
<h2>${messages("Languages:")}</h2>
|
|
${base.html_translations()}
|
|
</div>
|
|
%endif
|
|
</%def>
|
|
|
|
<%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>
|