# -*- 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 = 1434096007.9683206 _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 = ['html_pager', 'meta_translations', 'html_tags', 'mathjax_script', 'open_graph_metadata', 'twitter_card_information'] 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_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_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: hidden_tags = context.get('hidden_tags', UNDEFINED) _link = context.get('_link', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if post.tags: __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_open_graph_metadata(context,post): __M_caller = context.caller_stack._push_frame() try: permalink = context.get('permalink', UNDEFINED) abs_link = context.get('abs_link', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) lang = context.get('lang', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) url_replacer = context.get('url_replacer', UNDEFINED) blog_title = context.get('blog_title', 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() 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() """ __M_BEGIN_METADATA {"source_encoding": "utf-8", "line_map": {"15": 0, "20": 2, "21": 11, "22": 23, "23": 40, "24": 69, "25": 85, "26": 93, "32": 25, "37": 25, "38": 26, "39": 27, "40": 28, "41": 29, "42": 30, "43": 30, "44": 30, "45": 30, "46": 30, "47": 30, "48": 33, "49": 34, "50": 35, "51": 35, "52": 35, "53": 35, "54": 35, "55": 35, "56": 38, "62": 3, "69": 3, "70": 4, "71": 5, "72": 6, "73": 7, "74": 7, "75": 7, "76": 7, "77": 7, "83": 13, "89": 13, "90": 14, "91": 15, "92": 16, "93": 17, "94": 18, "95": 18, "96": 18, "97": 18, "98": 18, "99": 21, "105": 87, "109": 87, "110": 88, "111": 89, "117": 42, "128": 42, "129": 43, "130": 44, "131": 44, "132": 44, "133": 45, "134": 45, "135": 46, "136": 46, "137": 47, "138": 48, "139": 48, "140": 48, "141": 49, "142": 50, "143": 50, "144": 50, "145": 52, "146": 53, "147": 53, "148": 53, "149": 55, "150": 60, "151": 61, "152": 61, "153": 61, "154": 63, "155": 64, "156": 65, "157": 65, "158": 65, "164": 71, "169": 71, "170": 72, "171": 73, "172": 73, "173": 73, "174": 74, "175": 75, "176": 75, "177": 75, "178": 76, "179": 77, "180": 77, "181": 77, "182": 79, "183": 80, "184": 80, "185": 80, "186": 81, "187": 82, "188": 82, "189": 82, "195": 189}, "uri": "post_helper.tmpl", "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_helper.tmpl"} __M_END_METADATA """