# -*- 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.0727968 _enable_loop = True _template_filename = '/home/thomas/.local/lib/python3.9/site-packages/nikola/data/themes/base/templates/story.tmpl' _template_uri = 'story.tmpl' _source_encoding = 'utf-8' _exports = ['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('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 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('math', context._clean_inheritance_tokens(), templateuri='math_helper.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'math')] = ns def _mako_inherit(template, context): _mako_generate_namespaces(context) return runtime._inherit_from(context, 'post.tmpl', _template_uri) def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) math = _mako_get_namespace(context, 'math') enable_comments = context.get('enable_comments', UNDEFINED) messages = context.get('messages', UNDEFINED) comments = _mako_get_namespace(context, 'comments') post = context.get('post', UNDEFINED) site_has_comments = context.get('site_has_comments', UNDEFINED) pheader = _mako_get_namespace(context, 'pheader') def content(): return render_content(context._locals(__M_locals)) __M_writer = context.writer() __M_writer('\n') __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'], '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: math = _mako_get_namespace(context, 'math') enable_comments = context.get('enable_comments', UNDEFINED) messages = context.get('messages', UNDEFINED) comments = _mako_get_namespace(context, 'comments') post = context.get('post', UNDEFINED) site_has_comments = context.get('site_has_comments', UNDEFINED) pheader = _mako_get_namespace(context, 'pheader') def content(): return render_content(context) __M_writer = context.writer() __M_writer('\n
\n
\n ') __M_writer(str(pheader.html_title())) __M_writer('\n ') __M_writer(str(pheader.html_translations(post))) __M_writer('\n
\n
\n ') __M_writer(str(post.text())) __M_writer('\n
\n') if site_has_comments and enable_comments and not post.meta('nocomments'): __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(math.math_scripts_ifpost(post))) __M_writer('\n
\n') return '' finally: context.caller_stack._pop_frame() """ __M_BEGIN_METADATA {"filename": "/home/thomas/.local/lib/python3.9/site-packages/nikola/data/themes/base/templates/story.tmpl", "uri": "story.tmpl", "source_encoding": "utf-8", "line_map": {"23": 2, "26": 3, "29": 4, "32": 5, "38": 0, "52": 2, "53": 3, "54": 4, "55": 5, "56": 6, "61": 25, "67": 8, "80": 8, "81": 9, "82": 9, "83": 11, "84": 11, "85": 12, "86": 12, "87": 15, "88": 15, "89": 17, "90": 18, "91": 19, "92": 19, "93": 20, "94": 20, "95": 23, "96": 23, "97": 23, "103": 97}} __M_END_METADATA """