# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1433908605.86203 _enable_loop = True _template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/index.tmpl' _template_uri = 'index.tmpl' _source_encoding = 'utf-8' _exports = ['content', 'content_header', 'extra_head'] 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('helper', context._clean_inheritance_tokens(), templateuri='index_helper.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'helper')] = ns ns = runtime.TemplateNamespace('comments', context._clean_inheritance_tokens(), templateuri='comments_helper.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'comments')] = ns def _mako_inherit(template, context): _mako_generate_namespaces(context) return runtime._inherit_from(context, 'base.tmpl', _template_uri) def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) def content(): return render_content(context._locals(__M_locals)) permalink = context.get('permalink', UNDEFINED) site_has_comments = context.get('site_has_comments', UNDEFINED) parent = context.get('parent', UNDEFINED) def content_header(): return render_content_header(context._locals(__M_locals)) comments = _mako_get_namespace(context, 'comments') index_teasers = context.get('index_teasers', UNDEFINED) index_file = context.get('index_file', UNDEFINED) date_format = context.get('date_format', UNDEFINED) def extra_head(): return render_extra_head(context._locals(__M_locals)) posts = context.get('posts', UNDEFINED) helper = _mako_get_namespace(context, 'helper') __M_writer = context.writer() __M_writer('\n') __M_writer('\n') __M_writer('\n\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_head'): context['self'].extra_head(**pageargs) __M_writer('\n\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_content(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: def content(): return render_content(context) site_has_comments = context.get('site_has_comments', UNDEFINED) def content_header(): return render_content_header(context) comments = _mako_get_namespace(context, 'comments') index_teasers = context.get('index_teasers', UNDEFINED) date_format = context.get('date_format', UNDEFINED) posts = context.get('posts', UNDEFINED) helper = _mako_get_namespace(context, 'helper') __M_writer = context.writer() __M_writer('\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'content_header'): context['self'].content_header(**pageargs) __M_writer('\n