# -*- 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 = 1433955607.2101364 _enable_loop = True _template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_helper.tmpl' _template_uri = 'post_helper.tmpl' _source_encoding = 'utf-8' _exports = ['meta_translations', 'html_tags', 'html_pager', 'mathjax_script', 'twitter_card_information', 'open_graph_metadata'] 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\n') __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_meta_translations(context,post): __M_caller = context.caller_stack._push_frame() try: len = context.get('len', UNDEFINED) translations = context.get('translations', UNDEFINED) lang = context.get('lang', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if len(translations) > 1: for langname in translations.keys(): if langname != lang and post.is_translation_available(langname): __M_writer(' \n') return '' finally: context.caller_stack._pop_frame() def render_html_tags(context,post): __M_caller = context.caller_stack._push_frame() try: _link = context.get('_link', UNDEFINED) hidden_tags = context.get('hidden_tags', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if post.tags: __M_writer(' \n') return '' finally: context.caller_stack._pop_frame() def render_html_pager(context,post): __M_caller = context.caller_stack._push_frame() try: messages = context.get('messages', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if post.prev_post or post.next_post: __M_writer(' \n') return '' finally: context.caller_stack._pop_frame() def render_mathjax_script(context,post): __M_caller = context.caller_stack._push_frame() try: __M_writer = context.writer() __M_writer('\n') if post.is_mathjax: __M_writer(' \n \n') return '' finally: context.caller_stack._pop_frame() def render_twitter_card_information(context,post): __M_caller = context.caller_stack._push_frame() try: twitter_card = context.get('twitter_card', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if twitter_card and twitter_card['use_twitter_cards']: __M_writer(' \n') if 'site:id' in twitter_card: __M_writer(' \n') elif 'site' in twitter_card: __M_writer(' \n') if 'creator:id' in twitter_card: __M_writer(' \n') elif 'creator' in twitter_card: __M_writer(' \n') return '' finally: context.caller_stack._pop_frame() def render_open_graph_metadata(context,post): __M_caller = context.caller_stack._push_frame() try: lang = context.get('lang', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) abs_link = context.get('abs_link', UNDEFINED) url_replacer = context.get('url_replacer', UNDEFINED) blog_title = context.get('blog_title', UNDEFINED) permalink = context.get('permalink', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if use_open_graph: __M_writer(' \n \n \n') if post.description(): __M_writer(' \n') else: __M_writer(' \n') if post.previewimage: __M_writer(' \n') __M_writer(' \n') if post.date.isoformat(): __M_writer(' \n') if post.tags: for tag in post.tags: __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_helper.tmpl", "source_encoding": "utf-8", "uri": "post_helper.tmpl", "line_map": {"15": 0, "20": 2, "21": 11, "22": 23, "23": 40, "24": 69, "25": 85, "26": 93, "32": 3, "39": 3, "40": 4, "41": 5, "42": 6, "43": 7, "44": 7, "45": 7, "46": 7, "47": 7, "53": 13, "59": 13, "60": 14, "61": 15, "62": 16, "63": 17, "64": 18, "65": 18, "66": 18, "67": 18, "68": 18, "69": 21, "75": 25, "80": 25, "81": 26, "82": 27, "83": 28, "84": 29, "85": 30, "86": 30, "87": 30, "88": 30, "89": 30, "90": 30, "91": 33, "92": 34, "93": 35, "94": 35, "95": 35, "96": 35, "97": 35, "98": 35, "99": 38, "105": 87, "109": 87, "110": 88, "111": 89, "117": 71, "122": 71, "123": 72, "124": 73, "125": 73, "126": 73, "127": 74, "128": 75, "129": 75, "130": 75, "131": 76, "132": 77, "133": 77, "134": 77, "135": 79, "136": 80, "137": 80, "138": 80, "139": 81, "140": 82, "141": 82, "142": 82, "148": 42, "159": 42, "160": 43, "161": 44, "162": 44, "163": 44, "164": 45, "165": 45, "166": 46, "167": 46, "168": 47, "169": 48, "170": 48, "171": 48, "172": 49, "173": 50, "174": 50, "175": 50, "176": 52, "177": 53, "178": 53, "179": 53, "180": 55, "181": 60, "182": 61, "183": 61, "184": 61, "185": 63, "186": 64, "187": 65, "188": 65, "189": 65, "195": 189}} __M_END_METADATA """