# -*- 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 = 1434063607.9081469 _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_translations', 'html_post_header', 'html_sourcelink', 'html_title'] 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_translations(context,post): __M_caller = context.caller_stack._push_frame() try: len = context.get('len', UNDEFINED) lang = context.get('lang', UNDEFINED) messages = context.get('messages', UNDEFINED) translations = context.get('translations', 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_post_header(context): __M_caller = context.caller_stack._push_frame() try: site_has_comments = context.get('site_has_comments', UNDEFINED) def html_sourcelink(): return render_html_sourcelink(context) comments = _mako_get_namespace(context, 'comments') def html_translations(post): return render_html_translations(context,post) messages = context.get('messages', UNDEFINED) def html_title(): return render_html_title(context) date_format = context.get('date_format', UNDEFINED) post = context.get('post', 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_sourcelink(context): __M_caller = context.caller_stack._push_frame() try: show_sourcelink = context.get('show_sourcelink', UNDEFINED) messages = context.get('messages', UNDEFINED) post = context.get('post', 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() 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() """ __M_BEGIN_METADATA {"filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_header.tmpl", "source_encoding": "utf-8", "uri": "post_header.tmpl", "line_map": {"132": 24, "133": 25, "134": 26, "135": 26, "136": 26, "137": 26, "138": 26, "144": 5, "22": 2, "151": 6, "152": 7, "25": 3, "154": 7, "155": 7, "28": 0, "150": 5, "33": 2, "34": 3, "35": 9, "36": 22, "37": 28, "38": 49, "156": 7, "44": 11, "52": 11, "53": 12, "54": 13, "55": 14, "56": 14, "57": 15, "58": 16, "59": 17, "60": 17, "61": 17, "62": 17, "63": 17, "64": 17, "65": 17, "66": 20, "72": 30, "162": 156, "87": 30, "88": 32, "89": 32, "90": 34, "91": 34, "92": 35, "93": 35, "94": 35, "95": 35, "96": 35, "97": 35, "98": 35, "99": 35, "100": 36, "101": 37, "102": 37, "103": 37, "104": 39, "105": 39, "106": 39, "107": 40, "108": 41, "109": 41, "110": 41, "111": 41, "112": 41, "113": 43, "114": 44, "115": 44, "116": 44, "117": 46, "118": 47, "119": 47, "153": 7, "125": 24}} __M_END_METADATA """