From 46421fedf6fe291bfcb63482f3bfa9bb2c7fdff6 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 23 Oct 2018 17:42:28 +0300 Subject: Remove site clutter and rename test folder (tests -> test) --- site-src/themes/hack/templates/base.tmpl | 38 ------- site-src/themes/hack/templates/base_helper.tmpl | 131 ------------------------ 2 files changed, 169 deletions(-) delete mode 100644 site-src/themes/hack/templates/base.tmpl delete mode 100644 site-src/themes/hack/templates/base_helper.tmpl (limited to 'site-src/themes/hack/templates') diff --git a/site-src/themes/hack/templates/base.tmpl b/site-src/themes/hack/templates/base.tmpl deleted file mode 100644 index b0f2c4e..0000000 --- a/site-src/themes/hack/templates/base.tmpl +++ /dev/null @@ -1,38 +0,0 @@ -## -*- coding: utf-8 -*- -<%namespace name="base" file="base_helper.tmpl" import="*"/> -<%namespace name="header" file="base_header.tmpl" import="*"/> -<%namespace name="footer" file="base_footer.tmpl" import="*"/> -<%namespace name="annotations" file="annotation_helper.tmpl"/> -${set_locale(lang)} -${base.html_headstart()} -<%block name="extra_head"> -### Leave this block alone. - -${template_hooks['extra_head']()} - -% if not HACK_VARIANT: - -% elif HACK_VARIANT == 'dark': - -% elif HACK_VARIANT == 'dark-grey': - -% elif HACK_VARIANT == 'solarized-dark': - -% elif HACK_VARIANT == 'standard': - -% endif - -${messages("Skip to main content")} -
- ${header.html_header()} -
- <%block name="content"> -
- ${footer.html_footer()} -
- ${base.late_load_js()} - <%block name="extra_js"> - ${body_end} - ${template_hooks['body_end']()} - - diff --git a/site-src/themes/hack/templates/base_helper.tmpl b/site-src/themes/hack/templates/base_helper.tmpl deleted file mode 100644 index 5f5b4ab..0000000 --- a/site-src/themes/hack/templates/base_helper.tmpl +++ /dev/null @@ -1,131 +0,0 @@ -## -*- coding: utf-8 -*- - -<%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()} - - % 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 - - %if use_cdn: - - %else: - - %endif - - ${extra_head_data} - - -<%def name="late_load_js()"> - ${social_buttons_code} - - -<%def name="html_stylesheets()"> - - - % if not HACK_VARIANT: - - % elif HACK_VARIANT == 'dark': - - % elif HACK_VARIANT == 'dark-grey': - - % elif HACK_VARIANT == 'solarized-dark': - - % elif HACK_VARIANT == 'standard': - - % endif - - - %if has_custom_css: - - %endif - % if needs_ipython_css: - - - % endif - - -<%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 name="html_translations()"> - - -- cgit v1.2.3