123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- # -*- 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.3507113
- _enable_loop = True
- _template_filename = '/home/thomas/.local/lib/python3.9/site-packages/nikola/data/themes/base/templates/list.tmpl'
- _template_uri = 'list.tmpl'
- _source_encoding = 'utf-8'
- _exports = ['extra_head', 'content']
-
-
- def _mako_get_namespace(context, name):
- try:
- return context.namespaces[(__name__, name)]
- except KeyError:
- _mako_generate_namespaces(context)
- return context.namespaces[(__name__, name)]
- def _mako_generate_namespaces(context):
- ns = runtime.TemplateNamespace('archive_nav', context._clean_inheritance_tokens(), templateuri='archive_navigation_helper.tmpl', callables=None, calling_uri=_template_uri)
- context.namespaces[(__name__, 'archive_nav')] = ns
-
- ns = runtime.TemplateNamespace('feeds_translations', context._clean_inheritance_tokens(), templateuri='feeds_translations_helper.tmpl', callables=None, calling_uri=_template_uri)
- context.namespaces[(__name__, 'feeds_translations')] = ns
-
- def _mako_inherit(template, context):
- _mako_generate_namespaces(context)
- return runtime._inherit_from(context, 'base.tmpl', _template_uri)
- def render_body(context,**pageargs):
- __M_caller = context.caller_stack._push_frame()
- try:
- __M_locals = __M_dict_builtin(pageargs=pageargs)
- _import_ns = {}
- _mako_get_namespace(context, 'archive_nav')._populate(_import_ns, ['*'])
- _mako_get_namespace(context, 'feeds_translations')._populate(_import_ns, ['*'])
- title = _import_ns.get('title', context.get('title', UNDEFINED))
- archive_nav = _mako_get_namespace(context, 'archive_nav')
- def extra_head():
- return render_extra_head(context._locals(__M_locals))
- def content():
- return render_content(context._locals(__M_locals))
- feeds_translations = _mako_get_namespace(context, 'feeds_translations')
- has_no_feeds = _import_ns.get('has_no_feeds', context.get('has_no_feeds', UNDEFINED))
- messages = _import_ns.get('messages', context.get('messages', UNDEFINED))
- items = _import_ns.get('items', context.get('items', UNDEFINED))
- kind = _import_ns.get('kind', context.get('kind', UNDEFINED))
- __M_writer = context.writer()
- __M_writer('\n')
- __M_writer('\n')
- __M_writer('\n\n')
- if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_head'):
- context['self'].extra_head(**pageargs)
-
-
- __M_writer('\n\n')
- if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'):
- context['self'].content(**pageargs)
-
-
- __M_writer('\n')
- return ''
- finally:
- context.caller_stack._pop_frame()
-
-
- def render_extra_head(context,**pageargs):
- __M_caller = context.caller_stack._push_frame()
- try:
- _import_ns = {}
- _mako_get_namespace(context, 'archive_nav')._populate(_import_ns, ['*'])
- _mako_get_namespace(context, 'feeds_translations')._populate(_import_ns, ['*'])
- feeds_translations = _mako_get_namespace(context, 'feeds_translations')
- has_no_feeds = _import_ns.get('has_no_feeds', context.get('has_no_feeds', UNDEFINED))
- def extra_head():
- return render_extra_head(context)
- kind = _import_ns.get('kind', context.get('kind', UNDEFINED))
- __M_writer = context.writer()
- __M_writer('\n ')
- __M_writer(str(feeds_translations.head(kind=kind, rss_override=False, has_no_feeds=has_no_feeds)))
- __M_writer('\n')
- return ''
- finally:
- context.caller_stack._pop_frame()
-
-
- def render_content(context,**pageargs):
- __M_caller = context.caller_stack._push_frame()
- try:
- _import_ns = {}
- _mako_get_namespace(context, 'archive_nav')._populate(_import_ns, ['*'])
- _mako_get_namespace(context, 'feeds_translations')._populate(_import_ns, ['*'])
- title = _import_ns.get('title', context.get('title', UNDEFINED))
- archive_nav = _mako_get_namespace(context, 'archive_nav')
- def content():
- return render_content(context)
- feeds_translations = _mako_get_namespace(context, 'feeds_translations')
- messages = _import_ns.get('messages', context.get('messages', UNDEFINED))
- items = _import_ns.get('items', context.get('items', UNDEFINED))
- kind = _import_ns.get('kind', context.get('kind', UNDEFINED))
- __M_writer = context.writer()
- __M_writer('\n<article class="listpage">\n <header>\n <h1>')
- __M_writer(filters.html_escape(str(title)))
- __M_writer('</h1>\n </header>\n ')
- __M_writer(str(archive_nav.archive_navigation()))
- __M_writer('\n ')
- __M_writer(str(feeds_translations.translation_link(kind)))
- __M_writer('\n')
- if items:
- __M_writer(' <ul class="postlist">\n')
- for text, link, count in items:
- __M_writer(' <li><a href="')
- __M_writer(str(link))
- __M_writer('">')
- __M_writer(filters.html_escape(str(text)))
- __M_writer('</a>\n')
- if count:
- __M_writer(' (')
- __M_writer(str(count))
- __M_writer(')\n')
- __M_writer(' </ul>\n')
- else:
- __M_writer(' <p>')
- __M_writer(str(messages("Nothing found.")))
- __M_writer('</p>\n')
- __M_writer('</article>\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/list.tmpl", "uri": "list.tmpl", "source_encoding": "utf-8", "line_map": {"23": 3, "26": 4, "32": 0, "51": 2, "52": 3, "53": 4, "58": 8, "63": 30, "69": 6, "81": 6, "82": 7, "83": 7, "89": 10, "104": 10, "105": 13, "106": 13, "107": 15, "108": 15, "109": 16, "110": 16, "111": 17, "112": 18, "113": 19, "114": 20, "115": 20, "116": 20, "117": 20, "118": 20, "119": 21, "120": 22, "121": 22, "122": 22, "123": 25, "124": 26, "125": 27, "126": 27, "127": 27, "128": 29, "134": 128}}
- __M_END_METADATA
- """
|