# -*- coding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1676236796.1666944
_enable_loop = True
_template_filename = 'themes/bootblog/templates/base.tmpl'
_template_uri = 'base.tmpl'
_source_encoding = 'utf-8'
_exports = ['extra_head', 'belowtitle', 'sourcelink', 'content', 'extra_js']
def _mako_get_namespace(context, name):
try:
return context.namespaces[(__name__, name)]
except KeyError:
_mako_generate_namespaces(context)
return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
ns = runtime.TemplateNamespace('base', context._clean_inheritance_tokens(), templateuri='base_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'base')] = ns
def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
__M_locals = __M_dict_builtin(pageargs=pageargs)
_import_ns = {}
_mako_get_namespace(context, 'base')._populate(_import_ns, ['*'])
content_footer = _import_ns.get('content_footer', context.get('content_footer', UNDEFINED))
set_locale = _import_ns.get('set_locale', context.get('set_locale', UNDEFINED))
blog_sidebar = _import_ns.get('blog_sidebar', context.get('blog_sidebar', UNDEFINED))
momentjs_locales = _import_ns.get('momentjs_locales', context.get('momentjs_locales', UNDEFINED))
def extra_js():
return render_extra_js(context._locals(__M_locals))
abs_link = _import_ns.get('abs_link', context.get('abs_link', UNDEFINED))
def extra_head():
return render_extra_head(context._locals(__M_locals))
lang = _import_ns.get('lang', context.get('lang', UNDEFINED))
def belowtitle():
return render_belowtitle(context._locals(__M_locals))
search_form = _import_ns.get('search_form', context.get('search_form', UNDEFINED))
messages = _import_ns.get('messages', context.get('messages', UNDEFINED))
template_hooks = _import_ns.get('template_hooks', context.get('template_hooks', UNDEFINED))
show_sourcelink = _import_ns.get('show_sourcelink', context.get('show_sourcelink', UNDEFINED))
translations = _import_ns.get('translations', context.get('translations', UNDEFINED))
base = _mako_get_namespace(context, 'base')
blog_title = _import_ns.get('blog_title', context.get('blog_title', UNDEFINED))
len = _import_ns.get('len', context.get('len', UNDEFINED))
js_date_format = _import_ns.get('js_date_format', context.get('js_date_format', UNDEFINED))
show_blog_title = _import_ns.get('show_blog_title', context.get('show_blog_title', UNDEFINED))
logo_url = _import_ns.get('logo_url', context.get('logo_url', UNDEFINED))
body_end = _import_ns.get('body_end', context.get('body_end', UNDEFINED))
_link = _import_ns.get('_link', context.get('_link', UNDEFINED))
def content():
return render_content(context._locals(__M_locals))
def sourcelink():
return render_sourcelink(context._locals(__M_locals))
date_fanciness = _import_ns.get('date_fanciness', context.get('date_fanciness', UNDEFINED))
blog_description = _import_ns.get('blog_description', context.get('blog_description', UNDEFINED))
__M_writer = context.writer()
__M_writer('\n')
__M_writer(str(set_locale(lang)))
__M_writer('\n')
__M_writer(str(base.html_headstart()))
__M_writer('\n')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_head'):
context['self'].extra_head(**pageargs)
__M_writer('\n')
__M_writer(str(template_hooks['extra_head']()))
__M_writer('\n\n
\n')
__M_writer(str(messages("Skip to main content")))
__M_writer(' \n\n\n\n\n
\n \n ')
__M_writer(str(base.html_navigation_links()))
__M_writer('\n ')
__M_writer(str(template_hooks['menu']()))
__M_writer('\n')
if search_form:
__M_writer(' ')
__M_writer(str(search_form))
__M_writer('\n')
__M_writer('\n ')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'belowtitle'):
context['self'].belowtitle(**pageargs)
__M_writer('\n')
if show_sourcelink:
__M_writer(' ')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'sourcelink'):
context['self'].sourcelink(**pageargs)
__M_writer('\n')
__M_writer(' ')
__M_writer(str(template_hooks['menu_alt']()))
__M_writer('\n \n \n
\n
\n\n\n\n
\n \n \n
\n
\n ')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'):
context['self'].content(**pageargs)
__M_writer('\n
\n \n \n
\n
\n
\n\n\n\n')
__M_writer(str(base.late_load_js()))
__M_writer('\n \n \n \n ')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_js'):
context['self'].extra_js(**pageargs)
__M_writer("\n \n")
__M_writer(str(body_end))
__M_writer('\n')
__M_writer(str(template_hooks['body_end']()))
__M_writer('\n\n