# -*- 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 = 1433916006.9711952 _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 = ['extra_head', 'content', 'content_header'] 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) site_has_comments = context.get('site_has_comments', UNDEFINED) index_file = context.get('index_file', UNDEFINED) date_format = context.get('date_format', UNDEFINED) posts = context.get('posts', UNDEFINED) helper = _mako_get_namespace(context, 'helper') comments = _mako_get_namespace(context, 'comments') def content_header(): return render_content_header(context._locals(__M_locals)) index_teasers = context.get('index_teasers', UNDEFINED) parent = context.get('parent', UNDEFINED) def content(): return render_content(context._locals(__M_locals)) def extra_head(): return render_extra_head(context._locals(__M_locals)) permalink = context.get('permalink', UNDEFINED) __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_extra_head(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: posts = context.get('posts', UNDEFINED) def extra_head(): return render_extra_head(context) parent = context.get('parent', UNDEFINED) permalink = context.get('permalink', UNDEFINED) index_file = context.get('index_file', UNDEFINED) __M_writer = context.writer() __M_writer('\n ') __M_writer(str(parent.extra_head())) __M_writer('\n') if posts and (permalink == '/' or permalink == '/' + index_file): __M_writer(' \n') return '' finally: context.caller_stack._pop_frame() def render_content(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: site_has_comments = context.get('site_has_comments', UNDEFINED) date_format = context.get('date_format', UNDEFINED) posts = context.get('posts', UNDEFINED) helper = _mako_get_namespace(context, 'helper') comments = _mako_get_namespace(context, 'comments') def content_header(): return render_content_header(context) index_teasers = context.get('index_teasers', UNDEFINED) def content(): return render_content(context) __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
\n') for post in posts: __M_writer('
\n
\n

') __M_writer(filters.html_escape(str(post.title()))) __M_writer('

\n \n
\n') if index_teasers: __M_writer('
\n ') __M_writer(str(post.text(teaser_only=True))) __M_writer('\n') else: __M_writer('
\n ') __M_writer(str(post.text(teaser_only=False))) __M_writer('\n') __M_writer('
\n
\n') __M_writer('
\n') __M_writer(str(helper.html_pager())) __M_writer('\n') __M_writer(str(comments.comment_link_script())) __M_writer('\n') __M_writer(str(helper.mathjax_script(posts))) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_content_header(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: def content_header(): return render_content_header(context) __M_writer = context.writer() return '' finally: context.caller_stack._pop_frame() """ __M_BEGIN_METADATA {"filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/index.tmpl", "line_map": {"128": 22, "129": 23, "130": 24, "131": 24, "132": 24, "133": 26, "134": 28, "135": 29, "136": 30, "137": 30, "138": 31, "139": 32, "140": 33, "141": 33, "142": 35, "143": 38, "144": 39, "145": 39, "146": 40, "147": 40, "148": 41, "149": 41, "22": 2, "25": 3, "155": 14, "31": 0, "166": 155, "51": 2, "52": 3, "53": 4, "58": 11, "63": 42, "69": 6, "79": 6, "80": 7, "81": 7, "82": 8, "83": 9, "84": 9, "85": 9, "91": 13, "105": 13, "110": 14, "111": 16, "112": 17, "113": 17, "114": 17, "115": 19, "116": 19, "117": 19, "118": 19, "119": 21, "120": 21, "121": 22, "122": 22, "123": 22, "124": 22, "125": 22, "126": 22, "127": 22}, "source_encoding": "utf-8", "uri": "index.tmpl"} __M_END_METADATA """