# -*- 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 = 1434078007.629244 _enable_loop = True _template_filename = 'themes/bootstrap/templates/post.tmpl' _template_uri = 'post.tmpl' _source_encoding = 'utf-8' _exports = ['extra_head', 'sourcelink', 'content'] 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('comments', context._clean_inheritance_tokens(), templateuri='comments_helper.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'comments')] = ns ns = runtime.TemplateNamespace('helper', context._clean_inheritance_tokens(), templateuri='post_helper.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'helper')] = ns ns = runtime.TemplateNamespace('pheader', context._clean_inheritance_tokens(), templateuri='post_header.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'pheader')] = 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) messages = context.get('messages', UNDEFINED) def extra_head(): return render_extra_head(context._locals(__M_locals)) def sourcelink(): return render_sourcelink(context._locals(__M_locals)) show_sourcelink = context.get('show_sourcelink', UNDEFINED) helper = _mako_get_namespace(context, 'helper') def content(): return render_content(context._locals(__M_locals)) parent = context.get('parent', UNDEFINED) post = context.get('post', UNDEFINED) comments = _mako_get_namespace(context, 'comments') site_has_comments = context.get('site_has_comments', UNDEFINED) pheader = _mako_get_namespace(context, 'pheader') __M_writer = context.writer() __M_writer('\n') __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\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'sourcelink'): context['self'].sourcelink(**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: post = context.get('post', UNDEFINED) def extra_head(): return render_extra_head(context) parent = context.get('parent', UNDEFINED) helper = _mako_get_namespace(context, 'helper') __M_writer = context.writer() __M_writer('\n ') __M_writer(str(parent.extra_head())) __M_writer('\n') if post.meta('keywords'): __M_writer(' \n') if post.description(): __M_writer(' \n') __M_writer(' \n') if post.prev_post: __M_writer(' \n') if post.next_post: __M_writer(' \n') __M_writer(' ') __M_writer(str(helper.open_graph_metadata(post))) __M_writer('\n ') __M_writer(str(helper.twitter_card_information(post))) __M_writer('\n ') __M_writer(str(helper.meta_translations(post))) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_sourcelink(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: post = context.get('post', UNDEFINED) def sourcelink(): return render_sourcelink(context) show_sourcelink = context.get('show_sourcelink', UNDEFINED) messages = context.get('messages', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if show_sourcelink: __M_writer('
  • \n ') __M_writer(str(messages("Source"))) __M_writer('\n
  • \n') return '' finally: context.caller_stack._pop_frame() def render_content(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: pheader = _mako_get_namespace(context, 'pheader') post = context.get('post', UNDEFINED) def content(): return render_content(context) helper = _mako_get_namespace(context, 'helper') comments = _mako_get_namespace(context, 'comments') site_has_comments = context.get('site_has_comments', UNDEFINED) messages = context.get('messages', UNDEFINED) __M_writer = context.writer() __M_writer('\n
    \n ') __M_writer(str(pheader.html_post_header())) __M_writer('\n
    \n ') __M_writer(str(post.text())) __M_writer('\n
    \n \n') if not post.meta('nocomments') and site_has_comments: __M_writer('
    \n

    ') __M_writer(str(messages("Comments"))) __M_writer('

    \n ') __M_writer(str(comments.comment_form(post.permalink(absolute=True), post.title(), post._base_path))) __M_writer('\n
    \n') __M_writer(' ') __M_writer(str(helper.mathjax_script(post))) __M_writer('\n
    \n') __M_writer(str(comments.comment_link_script())) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() """ __M_BEGIN_METADATA {"source_encoding": "utf-8", "line_map": {"133": 50, "134": 51, "135": 52, "136": 53, "137": 53, "138": 53, "139": 53, "145": 27, "22": 4, "25": 2, "28": 3, "157": 27, "158": 28, "159": 28, "160": 29, "161": 29, "34": 0, "163": 31, "162": 31, "165": 35, "166": 36, "167": 36, "168": 39, "169": 40, "170": 41, "171": 41, "172": 42, "173": 42, "174": 45, "175": 45, "176": 45, "177": 47, "178": 47, "53": 2, "54": 3, "55": 4, "56": 5, "61": 25, "66": 48, "164": 35, "71": 56, "77": 7, "184": 178, "86": 7, "87": 8, "88": 8, "89": 9, "90": 10, "91": 10, "92": 10, "93": 12, "94": 13, "95": 13, "96": 13, "97": 15, "98": 15, "99": 15, "100": 16, "101": 17, "102": 17, "103": 17, "104": 17, "105": 17, "106": 19, "107": 20, "108": 20, "109": 20, "110": 20, "111": 20, "112": 22, "113": 22, "114": 22, "115": 23, "116": 23, "117": 24, "118": 24, "124": 50}, "filename": "themes/bootstrap/templates/post.tmpl", "uri": "post.tmpl"} __M_END_METADATA """