# -*- 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 = 1433916007.3006475 _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 = ['twitter_card_information', 'html_pager', 'mathjax_script', 'html_tags', 'meta_translations', '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_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_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_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_meta_translations(context,post): __M_caller = context.caller_stack._push_frame() try: lang = context.get('lang', UNDEFINED) translations = context.get('translations', UNDEFINED) len = context.get('len', 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: lang = context.get('lang', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) url_replacer = context.get('url_replacer', UNDEFINED) blog_title = context.get('blog_title', UNDEFINED) abs_link = context.get('abs_link', UNDEFINED) permalink = context.get('permalink', 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", "line_map": {"15": 0, "20": 2, "21": 11, "22": 23, "23": 40, "24": 69, "25": 85, "26": 93, "32": 71, "37": 71, "38": 72, "39": 73, "40": 73, "41": 73, "42": 74, "43": 75, "44": 75, "45": 75, "46": 76, "47": 77, "48": 77, "49": 77, "50": 79, "51": 80, "52": 80, "53": 80, "54": 81, "55": 82, "56": 82, "57": 82, "63": 25, "68": 25, "69": 26, "70": 27, "71": 28, "72": 29, "73": 30, "74": 30, "75": 30, "76": 30, "77": 30, "78": 30, "79": 33, "80": 34, "81": 35, "82": 35, "83": 35, "84": 35, "85": 35, "86": 35, "87": 38, "93": 87, "97": 87, "98": 88, "99": 89, "105": 13, "111": 13, "112": 14, "113": 15, "114": 16, "115": 17, "116": 18, "117": 18, "118": 18, "119": 18, "120": 18, "121": 21, "127": 3, "134": 3, "135": 4, "136": 5, "137": 6, "138": 7, "139": 7, "140": 7, "141": 7, "142": 7, "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}, "source_encoding": "utf-8", "uri": "post_helper.tmpl"} __M_END_METADATA """