# -*- 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 = 1434096007.641622 _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_header', 'content', '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) parent = context.get('parent', UNDEFINED) permalink = context.get('permalink', UNDEFINED) index_teasers = context.get('index_teasers', UNDEFINED) def extra_head(): return render_extra_head(context._locals(__M_locals)) date_format = context.get('date_format', UNDEFINED) comments = _mako_get_namespace(context, 'comments') helper = _mako_get_namespace(context, 'helper') posts = context.get('posts', UNDEFINED) index_file = context.get('index_file', UNDEFINED) def content_header(): return render_content_header(context._locals(__M_locals)) def content(): return render_content(context._locals(__M_locals)) site_has_comments = context.get('site_has_comments', 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_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() def render_content(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: index_teasers = context.get('index_teasers', UNDEFINED) comments = _mako_get_namespace(context, 'comments') date_format = context.get('date_format', UNDEFINED) helper = _mako_get_namespace(context, 'helper') posts = context.get('posts', UNDEFINED) def content_header(): return render_content_header(context) site_has_comments = context.get('site_has_comments', 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_extra_head(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: index_file = context.get('index_file', UNDEFINED) parent = context.get('parent', UNDEFINED) permalink = context.get('permalink', UNDEFINED) def extra_head(): return render_extra_head(context) posts = context.get('posts', 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() """ __M_BEGIN_METADATA {"source_encoding": "utf-8", "line_map": {"128": 32, "129": 33, "130": 33, "131": 35, "132": 38, "133": 39, "134": 39, "135": 40, "136": 40, "137": 41, "138": 41, "144": 6, "22": 2, "25": 3, "154": 6, "155": 7, "156": 7, "157": 8, "158": 9, "31": 0, "160": 9, "166": 160, "51": 2, "52": 3, "53": 4, "58": 11, "159": 9, "63": 42, "69": 14, "80": 13, "94": 13, "99": 14, "100": 16, "101": 17, "102": 17, "103": 17, "104": 19, "105": 19, "106": 19, "107": 19, "108": 21, "109": 21, "110": 22, "111": 22, "112": 22, "113": 22, "114": 22, "115": 22, "116": 22, "117": 22, "118": 23, "119": 24, "120": 24, "121": 24, "122": 26, "123": 28, "124": 29, "125": 30, "126": 30, "127": 31}, "uri": "index.tmpl", "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/index.tmpl"} __M_END_METADATA """