# -*- 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('