# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1676236796.301689 _enable_loop = True _template_filename = '/home/thomas/.local/lib/python3.9/site-packages/nikola/data/themes/base/templates/feeds_translations_helper.tmpl' _template_uri = 'feeds_translations_helper.tmpl' _source_encoding = 'utf-8' _exports = ['_head_feed_link', '_html_feed_link', '_html_translation_link', '_head_rss', '_head_atom', 'head', 'feed_link', 'translation_link'] 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\n') __M_writer('\n\n') __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render__head_feed_link(context,link_type,link_name,link_postfix,classification,kind,language): __M_caller = context.caller_stack._push_frame() try: translations = context.get('translations', UNDEFINED) len = context.get('len', UNDEFINED) _link = context.get('_link', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if len(translations) > 1: __M_writer(' \n') else: __M_writer(' \n') return '' finally: context.caller_stack._pop_frame() def render__html_feed_link(context,link_type,link_name,link_postfix,classification,kind,language,name=None): __M_caller = context.caller_stack._push_frame() try: messages = context.get('messages', UNDEFINED) translations = context.get('translations', UNDEFINED) len = context.get('len', UNDEFINED) _link = context.get('_link', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if len(translations) > 1: if name and kind != "archive" and kind != "author": __M_writer(' ') __M_writer(str(messages(link_name, language))) __M_writer(' (') __M_writer(filters.html_escape(str(name))) __M_writer(', ') __M_writer(str(language)) __M_writer(')\n') else: __M_writer(' ') __M_writer(str(messages(link_name, language))) __M_writer(' (') __M_writer(str(language)) __M_writer(')\n') else: if name and kind != "archive" and kind != "author": __M_writer(' ') __M_writer(str(messages(link_name, language))) __M_writer(' (') __M_writer(filters.html_escape(str(name))) __M_writer(')\n') else: __M_writer(' ') __M_writer(str(messages(link_name, language))) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render__html_translation_link(context,classification,kind,language,name=None): __M_caller = context.caller_stack._push_frame() try: messages = context.get('messages', UNDEFINED) _link = context.get('_link', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if name and kind != "archive" and kind != "author": __M_writer(' ') __M_writer(str(messages("LANGUAGE", language))) __M_writer(' (') __M_writer(filters.html_escape(str(name))) __M_writer(')\n') else: __M_writer(' ') __M_writer(str(messages("LANGUAGE", language))) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render__head_rss(context,classification=None,kind='index',rss_override=True): __M_caller = context.caller_stack._push_frame() try: len = context.get('len', UNDEFINED) has_other_languages = context.get('has_other_languages', UNDEFINED) all_languages = context.get('all_languages', UNDEFINED) translations_feedorder = context.get('translations_feedorder', UNDEFINED) _link = context.get('_link', UNDEFINED) rss_link = context.get('rss_link', UNDEFINED) translations = context.get('translations', UNDEFINED) generate_rss = context.get('generate_rss', UNDEFINED) def _head_feed_link(link_type,link_name,link_postfix,classification,kind,language): return render__head_feed_link(context,link_type,link_name,link_postfix,classification,kind,language) __M_writer = context.writer() __M_writer('\n') if rss_link and rss_override: __M_writer(' ') __M_writer(str(rss_link)) __M_writer('\n') if generate_rss and not (rss_link and rss_override) and kind != 'archive': if len(translations) > 1 and has_other_languages and classification and kind != 'index': for language, classification, name in all_languages: __M_writer(' \n') else: for language in translations_feedorder: if (classification or classification == '') and kind != 'index': __M_writer(' ') __M_writer(str(_head_feed_link('application/rss+xml', 'RSS for ' + kind + ' ' + classification, 'rss', classification, kind, language))) __M_writer('\n') else: __M_writer(' ') __M_writer(str(_head_feed_link('application/rss+xml', 'RSS', 'rss', classification, 'index', language))) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render__head_atom(context,classification=None,kind='index'): __M_caller = context.caller_stack._push_frame() try: len = context.get('len', UNDEFINED) has_other_languages = context.get('has_other_languages', UNDEFINED) all_languages = context.get('all_languages', UNDEFINED) generate_atom = context.get('generate_atom', UNDEFINED) translations_feedorder = context.get('translations_feedorder', UNDEFINED) _link = context.get('_link', UNDEFINED) translations = context.get('translations', UNDEFINED) def _head_feed_link(link_type,link_name,link_postfix,classification,kind,language): return render__head_feed_link(context,link_type,link_name,link_postfix,classification,kind,language) __M_writer = context.writer() __M_writer('\n') if generate_atom: if len(translations) > 1 and has_other_languages and classification and kind != 'index': for language, classification, name in all_languages: __M_writer(' \n') else: for language in translations_feedorder: if (classification or classification == '') and kind != 'index': __M_writer(' ') __M_writer(str(_head_feed_link('application/atom+xml', 'Atom for ' + kind + ' ' + classification, 'atom', classification, kind, language))) __M_writer('\n') else: __M_writer(' ') __M_writer(str(_head_feed_link('application/atom+xml', 'Atom', 'atom', classification, 'index', language))) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_head(context,classification=None,kind='index',feeds=True,other=True,rss_override=True,has_no_feeds=False): __M_caller = context.caller_stack._push_frame() try: has_other_languages = context.get('has_other_languages', UNDEFINED) _link = context.get('_link', UNDEFINED) def _head_atom(classification=None,kind='index'): return render__head_atom(context,classification,kind) def _head_rss(classification=None,kind='index',rss_override=True): return render__head_rss(context,classification,kind,rss_override) other_languages = context.get('other_languages', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if feeds and not has_no_feeds: __M_writer(' ') __M_writer(str(_head_rss(classification, 'index' if (kind == 'archive' and rss_override) else kind, rss_override))) __M_writer('\n ') __M_writer(str(_head_atom(classification, kind))) __M_writer('\n') if other and has_other_languages and other_languages: for language, classification, _ in other_languages: __M_writer(' \n') return '' finally: context.caller_stack._pop_frame() def render_feed_link(context,classification,kind): __M_caller = context.caller_stack._push_frame() try: len = context.get('len', UNDEFINED) has_other_languages = context.get('has_other_languages', UNDEFINED) all_languages = context.get('all_languages', UNDEFINED) generate_atom = context.get('generate_atom', UNDEFINED) translations_feedorder = context.get('translations_feedorder', UNDEFINED) translations = context.get('translations', UNDEFINED) def _html_feed_link(link_type,link_name,link_postfix,classification,kind,language,name=None): return render__html_feed_link(context,link_type,link_name,link_postfix,classification,kind,language,name) generate_rss = context.get('generate_rss', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if generate_atom or generate_rss: if len(translations) > 1 and has_other_languages and kind != 'index': for language, classification, name in all_languages: __M_writer(' \n') else: for language in translations_feedorder: __M_writer(' \n') return '' finally: context.caller_stack._pop_frame() def render_translation_link(context,kind): __M_caller = context.caller_stack._push_frame() try: messages = context.get('messages', UNDEFINED) has_other_languages = context.get('has_other_languages', UNDEFINED) def _html_translation_link(classification,kind,language,name=None): return render__html_translation_link(context,classification,kind,language,name) other_languages = context.get('other_languages', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if has_other_languages and other_languages: __M_writer('
\n

') __M_writer(str(messages("Also available in:"))) __M_writer('

\n') for language, classification, name in other_languages: __M_writer('

') __M_writer(str(_html_translation_link(classification, kind, language, name))) __M_writer('

\n') __M_writer('
\n') return '' finally: context.caller_stack._pop_frame() """ __M_BEGIN_METADATA {"filename": "/home/thomas/.local/lib/python3.9/site-packages/nikola/data/themes/base/templates/feeds_translations_helper.tmpl", "uri": "feeds_translations_helper.tmpl", "source_encoding": "utf-8", "line_map": {"16": 0, "21": 2, "22": 9, "23": 25, "24": 33, "25": 54, "26": 72, "27": 85, "28": 113, "29": 124, "35": 3, "42": 3, "43": 4, "44": 5, "45": 5, "46": 5, "47": 5, "48": 5, "49": 5, "50": 5, "51": 5, "52": 5, "53": 5, "54": 5, "55": 6, "56": 7, "57": 7, "58": 7, "59": 7, "60": 7, "61": 7, "62": 7, "63": 7, "64": 7, "70": 11, "78": 11, "79": 12, "80": 13, "81": 14, "82": 14, "83": 14, "84": 14, "85": 14, "86": 14, "87": 14, "88": 14, "89": 14, "90": 14, "91": 14, "92": 14, "93": 14, "94": 15, "95": 16, "96": 16, "97": 16, "98": 16, "99": 16, "100": 16, "101": 16, "102": 16, "103": 16, "104": 16, "105": 16, "106": 18, "107": 19, "108": 20, "109": 20, "110": 20, "111": 20, "112": 20, "113": 20, "114": 20, "115": 20, "116": 20, "117": 20, "118": 20, "119": 21, "120": 22, "121": 22, "122": 22, "123": 22, "124": 22, "125": 22, "126": 22, "127": 22, "128": 22, "134": 27, "140": 27, "141": 28, "142": 29, "143": 29, "144": 29, "145": 29, "146": 29, "147": 29, "148": 29, "149": 29, "150": 29, "151": 30, "152": 31, "153": 31, "154": 31, "155": 31, "156": 31, "157": 31, "158": 31, "164": 35, "178": 35, "179": 36, "180": 37, "181": 37, "182": 37, "183": 39, "184": 40, "185": 41, "186": 42, "187": 42, "188": 42, "189": 42, "190": 42, "191": 42, "192": 42, "193": 42, "194": 42, "195": 42, "196": 42, "197": 44, "198": 45, "199": 46, "200": 47, "201": 47, "202": 47, "203": 48, "204": 49, "205": 49, "206": 49, "212": 56, "225": 56, "226": 57, "227": 58, "228": 59, "229": 60, "230": 60, "231": 60, "232": 60, "233": 60, "234": 60, "235": 60, "236": 60, "237": 60, "238": 60, "239": 60, "240": 62, "241": 63, "242": 64, "243": 65, "244": 65, "245": 65, "246": 66, "247": 67, "248": 67, "249": 67, "255": 75, "266": 75, "267": 76, "268": 77, "269": 77, "270": 77, "271": 78, "272": 78, "273": 80, "274": 81, "275": 82, "276": 82, "277": 82, "278": 82, "279": 82, "285": 87, "298": 87, "299": 88, "300": 89, "301": 90, "302": 91, "303": 92, "304": 93, "305": 93, "306": 93, "307": 95, "308": 96, "309": 96, "310": 96, "311": 98, "312": 100, "313": 101, "314": 102, "315": 103, "316": 104, "317": 104, "318": 104, "319": 106, "320": 107, "321": 107, "322": 107, "323": 109, "329": 115, "338": 115, "339": 116, "340": 117, "341": 118, "342": 118, "343": 119, "344": 120, "345": 120, "346": 120, "347": 122, "353": 347}} __M_END_METADATA """