# -*- 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 = 1433908606.7192698 _enable_loop = True _template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_header.tmpl' _template_uri = 'post_header.tmpl' _source_encoding = 'utf-8' _exports = ['html_post_header', 'html_title', 'html_translations', 'html_sourcelink'] 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('comments', context._clean_inheritance_tokens(), templateuri='comments_helper.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'comments')] = ns def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) __M_writer = context.writer() __M_writer('\n') __M_writer('\n\n') __M_writer('\n\n') __M_writer('\n\n') __M_writer('\n\n') __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_html_post_header(context): __M_caller = context.caller_stack._push_frame() try: def html_title(): return render_html_title(context) site_has_comments = context.get('site_has_comments', UNDEFINED) post = context.get('post', UNDEFINED) comments = _mako_get_namespace(context, 'comments') def html_sourcelink(): return render_html_sourcelink(context) date_format = context.get('date_format', UNDEFINED) def html_translations(post): return render_html_translations(context,post) messages = context.get('messages', UNDEFINED) __M_writer = context.writer() __M_writer('\n
\n ') __M_writer(str(html_title())) __M_writer('\n
\n \n \n') if not post.meta('nocomments') and site_has_comments: __M_writer('

') __M_writer(str(comments.comment_link(post.permalink(), post._base_path))) __M_writer('\n') __M_writer(' ') __M_writer(str(html_sourcelink())) __M_writer('\n') if post.meta('link'): __M_writer("

") __M_writer(str(messages("Original site"))) __M_writer('

\n') if post.description(): __M_writer(' \n') __M_writer('
\n ') __M_writer(str(html_translations(post))) __M_writer('\n
\n') return '' finally: context.caller_stack._pop_frame() def render_html_title(context): __M_caller = context.caller_stack._push_frame() try: title = context.get('title', UNDEFINED) post = context.get('post', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if title and not post.meta('hidetitle'): __M_writer('

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

\n') return '' finally: context.caller_stack._pop_frame() def render_html_translations(context,post): __M_caller = context.caller_stack._push_frame() try: len = context.get('len', UNDEFINED) messages = context.get('messages', UNDEFINED) translations = context.get('translations', UNDEFINED) lang = context.get('lang', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if len(post.translated_to) > 1: __M_writer('
\n

') __M_writer(str(messages("Also available in:"))) __M_writer('

\n') for langname in translations.keys(): if langname != lang and post.is_translation_available(langname): __M_writer('

') __M_writer(str(messages("LANGUAGE", langname))) __M_writer('

\n') __M_writer('
\n') return '' finally: context.caller_stack._pop_frame() def render_html_sourcelink(context): __M_caller = context.caller_stack._push_frame() try: messages = context.get('messages', UNDEFINED) post = context.get('post', UNDEFINED) show_sourcelink = context.get('show_sourcelink', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if show_sourcelink: __M_writer('

') __M_writer(str(messages("Source"))) __M_writer('

\n') return '' finally: context.caller_stack._pop_frame() """ __M_BEGIN_METADATA {"source_encoding": "utf-8", "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_header.tmpl", "line_map": {"128": 15, "129": 16, "130": 17, "131": 17, "132": 17, "133": 17, "134": 17, "135": 17, "136": 17, "137": 20, "143": 24, "22": 2, "151": 25, "152": 26, "25": 3, "154": 26, "155": 26, "28": 0, "150": 24, "33": 2, "34": 3, "35": 9, "36": 22, "37": 28, "38": 49, "156": 26, "44": 30, "162": 156, "59": 30, "60": 32, "61": 32, "62": 34, "63": 34, "64": 35, "65": 35, "66": 35, "67": 35, "68": 35, "69": 35, "70": 35, "71": 35, "72": 36, "73": 37, "74": 37, "75": 37, "76": 39, "77": 39, "78": 39, "79": 40, "80": 41, "81": 41, "82": 41, "83": 41, "84": 41, "85": 43, "86": 44, "87": 44, "88": 44, "89": 46, "90": 47, "91": 47, "97": 5, "103": 5, "104": 6, "105": 7, "106": 7, "107": 7, "108": 7, "109": 7, "115": 11, "153": 26, "123": 11, "124": 12, "125": 13, "126": 14, "127": 14}, "uri": "post_header.tmpl"} __M_END_METADATA """