From 9bb5248dab5fafc7e999ec92667b8dba8a5cc644 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 2 Jan 2025 03:42:39 +0100 Subject: bring the blog up to date --- themes/erdgeist/templates/base_helper.tmpl | 66 ++++++++++++++---------------- 1 file changed, 31 insertions(+), 35 deletions(-) (limited to 'themes/erdgeist/templates/base_helper.tmpl') diff --git a/themes/erdgeist/templates/base_helper.tmpl b/themes/erdgeist/templates/base_helper.tmpl index bec4b78..7b44a95 100644 --- a/themes/erdgeist/templates/base_helper.tmpl +++ b/themes/erdgeist/templates/base_helper.tmpl @@ -1,6 +1,7 @@ ## -*- coding: utf-8 -*- <%namespace name="notes" file="annotation_helper.tmpl" import="*" /> +<%namespace name="feeds_translations" file="feeds_translations_helper.tmpl" import="*"/> <%def name="html_headstart()"> + % if use_base_tag: + + % endif %if description: - + %endif - ${title|striphtml} | ${blog_title|striphtml} + %if title == blog_title: + ${blog_title|h} + %else: + ${title|h} | ${blog_title|h} + %endif ${html_stylesheets()} - ${html_feedlinks()} - %if permalink: - - %endif + + % if meta_generator_tag: + + % endif + ${feeds_translations.head(classification=None, kind='index', other=False)} + %if favicons: %for name, file, size in favicons: @@ -55,11 +65,10 @@ lang="${lang}"> %endif - ${mathjax_config} %if use_cdn: %else: - + %endif ${extra_head_data} @@ -81,13 +90,10 @@ lang="${lang}"> %else: - - + %endif - - %endif - %if colorbox_locales[lang]: - + + %endif ${social_buttons_code} @@ -106,30 +112,30 @@ lang="${lang}"> %else: + %endif - + + - %if has_custom_css: %endif %endif - % if annotations and post and not post.meta('noannotations'): - ${notes.css()} - % elif not annotations and post and post.meta('annotations'): - ${notes.css()} - % endif + %if needs_ipython_css: + + + %endif <%def name="html_navigation_links()"> %for url, text, icon in navigation_links[lang]: % if isinstance(url, tuple): -