# -*- 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.6866655 _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 = ['mathjax_script', 'meta_translations', 'open_graph_metadata', 'html_pager', 'html_tags', '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_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_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_open_graph_metadata(context,post): __M_caller = context.caller_stack._push_frame() try: permalink = context.get('permalink', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) blog_title = context.get('blog_title', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) url_replacer = context.get('url_replacer', UNDEFINED) abs_link = context.get('abs_link', UNDEFINED) lang = context.get('lang', 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_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_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_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", "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_helper.tmpl", "line_map": {"15": 0, "20": 2, "21": 11, "22": 23, "23": 40, "24": 69, "25": 85, "26": 93, "32": 87, "36": 87, "37": 88, "38": 89, "44": 3, "51": 3, "52": 4, "53": 5, "54": 6, "55": 7, "56": 7, "57": 7, "58": 7, "59": 7, "65": 42, "76": 42, "77": 43, "78": 44, "79": 44, "80": 44, "81": 45, "82": 45, "83": 46, "84": 46, "85": 47, "86": 48, "87": 48, "88": 48, "89": 49, "90": 50, "91": 50, "92": 50, "93": 52, "94": 53, "95": 53, "96": 53, "97": 55, "98": 60, "99": 61, "100": 61, "101": 61, "102": 63, "103": 64, "104": 65, "105": 65, "106": 65, "112": 25, "117": 25, "118": 26, "119": 27, "120": 28, "121": 29, "122": 30, "123": 30, "124": 30, "125": 30, "126": 30, "127": 30, "128": 33, "129": 34, "130": 35, "131": 35, "132": 35, "133": 35, "134": 35, "135": 35, "136": 38, "142": 13, "148": 13, "149": 14, "150": 15, "151": 16, "152": 17, "153": 18, "154": 18, "155": 18, "156": 18, "157": 18, "158": 21, "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"} __M_END_METADATA """