initial commit to seperate repo

This commit is contained in:
Don Harper 2015-06-09 22:59:04 -05:00
commit 8630e4db13
23669 changed files with 1067407 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,51 @@
# -*- coding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1433908600.4428275
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/annotation_helper.tmpl'
_template_uri = 'annotation_helper.tmpl'
_source_encoding = 'ascii'
_exports = ['css', 'code']
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\n')
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_css(context):
__M_caller = context.caller_stack._push_frame()
try:
__M_writer = context.writer()
__M_writer('\n <link rel="stylesheet" href="http://assets.annotateit.org/annotator/v1.2.5/annotator.min.css">\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_code(context):
__M_caller = context.caller_stack._push_frame()
try:
__M_writer = context.writer()
__M_writer('\n <script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>\n <script src="http://assets.annotateit.org/annotator/v1.2.7/annotator-full.js"></script>\n <script>\n jQuery(function ($) {\n $(\'body\').annotator().annotator(\'setupPlugins\', {}, {\n // Disable filter bar\n Filter: false\n });\n });\n </script>\n')
return ''
finally:
context.caller_stack._pop_frame()
"""
__M_BEGIN_METADATA
{"source_encoding": "ascii", "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/annotation_helper.tmpl", "line_map": {"20": 3, "21": 16, "15": 0, "41": 5, "27": 1, "37": 5, "47": 41, "31": 1}, "uri": "annotation_helper.tmpl"}
__M_END_METADATA
"""

245
cache/.mako.tmp/base.tmpl.py vendored Normal file
View file

@ -0,0 +1,245 @@
# -*- 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 = 1433908600.377746
_enable_loop = True
_template_filename = 'themes/cyborg/templates/base.tmpl'
_template_uri = 'base.tmpl'
_source_encoding = 'utf-8'
_exports = ['content', 'belowtitle', 'sourcelink', 'extra_js', 'extra_head']
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('notes', context._clean_inheritance_tokens(), templateuri='annotation_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'notes')] = ns
ns = runtime.TemplateNamespace('base', context._clean_inheritance_tokens(), templateuri='base_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'base')] = ns
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, 'notes')._populate(_import_ns, ['*'])
_mako_get_namespace(context, 'base')._populate(_import_ns, ['*'])
def content():
return render_content(context._locals(__M_locals))
annotations = _import_ns.get('annotations', context.get('annotations', UNDEFINED))
date_fanciness = _import_ns.get('date_fanciness', context.get('date_fanciness', UNDEFINED))
template_hooks = _import_ns.get('template_hooks', context.get('template_hooks', UNDEFINED))
blog_title = _import_ns.get('blog_title', context.get('blog_title', UNDEFINED))
notes = _mako_get_namespace(context, 'notes')
def extra_head():
return render_extra_head(context._locals(__M_locals))
show_sourcelink = _import_ns.get('show_sourcelink', context.get('show_sourcelink', UNDEFINED))
momentjs_locales = _import_ns.get('momentjs_locales', context.get('momentjs_locales', UNDEFINED))
len = _import_ns.get('len', context.get('len', UNDEFINED))
messages = _import_ns.get('messages', context.get('messages', UNDEFINED))
show_blog_title = _import_ns.get('show_blog_title', context.get('show_blog_title', UNDEFINED))
def extra_js():
return render_extra_js(context._locals(__M_locals))
post = _import_ns.get('post', context.get('post', UNDEFINED))
content_footer = _import_ns.get('content_footer', context.get('content_footer', UNDEFINED))
logo_url = _import_ns.get('logo_url', context.get('logo_url', UNDEFINED))
base = _mako_get_namespace(context, 'base')
def sourcelink():
return render_sourcelink(context._locals(__M_locals))
def belowtitle():
return render_belowtitle(context._locals(__M_locals))
js_date_format = _import_ns.get('js_date_format', context.get('js_date_format', UNDEFINED))
set_locale = _import_ns.get('set_locale', context.get('set_locale', UNDEFINED))
abs_link = _import_ns.get('abs_link', context.get('abs_link', UNDEFINED))
lang = _import_ns.get('lang', context.get('lang', UNDEFINED))
search_form = _import_ns.get('search_form', context.get('search_form', UNDEFINED))
body_end = _import_ns.get('body_end', context.get('body_end', UNDEFINED))
translations = _import_ns.get('translations', context.get('translations', UNDEFINED))
__M_writer = context.writer()
__M_writer('\n')
__M_writer('\n')
__M_writer(str(set_locale(lang)))
__M_writer('\n')
__M_writer(str(base.html_headstart()))
__M_writer('\n')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_head'):
context['self'].extra_head(**pageargs)
__M_writer('\n')
__M_writer(str(template_hooks['extra_head']()))
__M_writer('\n</head>\n<body>\n<a href="#content" class="sr-only sr-only-focusable">')
__M_writer(str(messages("Skip to main content")))
__M_writer('</a>\n\n<!-- Menubar -->\n\n<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">\n <div class="container"><!-- This keeps the margins nice -->\n <div class="navbar-header">\n <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n <a class="navbar-brand" href="')
__M_writer(str(abs_link('/')))
__M_writer('">\n')
if logo_url:
__M_writer(' <img src="')
__M_writer(str(logo_url))
__M_writer('" alt="')
__M_writer(str(blog_title))
__M_writer('" id="logo">\n')
__M_writer('\n')
if show_blog_title:
__M_writer(' <span id="blog-title">')
__M_writer(str(blog_title))
__M_writer('</span>\n')
__M_writer(' </a>\n </div><!-- /.navbar-header -->\n <div class="collapse navbar-collapse navbar-ex1-collapse">\n <ul class="nav navbar-nav">\n ')
__M_writer(str(base.html_navigation_links()))
__M_writer('\n ')
__M_writer(str(template_hooks['menu']()))
__M_writer('\n </ul>\n')
if search_form:
__M_writer(' ')
__M_writer(str(search_form))
__M_writer('\n')
__M_writer('\n <ul class="nav navbar-nav navbar-right">\n ')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'belowtitle'):
context['self'].belowtitle(**pageargs)
__M_writer('\n')
if show_sourcelink:
__M_writer(' ')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'sourcelink'):
context['self'].sourcelink(**pageargs)
__M_writer('\n')
__M_writer(' ')
__M_writer(str(template_hooks['menu_alt']()))
__M_writer('\n </ul>\n </div><!-- /.navbar-collapse -->\n </div><!-- /.container -->\n</nav>\n\n<!-- End of Menubar -->\n\n<div class="container" id="content">\n <div class="body-content">\n <!--Body content-->\n <div class="row">\n ')
__M_writer(str(template_hooks['page_header']()))
__M_writer('\n ')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'):
context['self'].content(**pageargs)
__M_writer('\n </div>\n <!--End of body content-->\n\n <footer>\n ')
__M_writer(str(content_footer))
__M_writer('\n ')
__M_writer(str(template_hooks['page_footer']()))
__M_writer('\n </footer>\n </div>\n</div>\n\n')
__M_writer(str(base.late_load_js()))
__M_writer('\n <script>jQuery("a.image-reference").colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>\n <!-- fancy dates -->\n <script>\n moment.locale("')
__M_writer(str(momentjs_locales[lang]))
__M_writer('");\n fancydates(')
__M_writer(str(date_fanciness))
__M_writer(', ')
__M_writer(str(js_date_format))
__M_writer(');\n </script>\n <!-- end fancy dates -->\n ')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_js'):
context['self'].extra_js(**pageargs)
__M_writer('\n')
if annotations and post and not post.meta('noannotations'):
__M_writer(' ')
__M_writer(str(notes.code()))
__M_writer('\n')
elif not annotations and post and post.meta('annotations'):
__M_writer(' ')
__M_writer(str(notes.code()))
__M_writer('\n')
__M_writer(str(body_end))
__M_writer('\n')
__M_writer(str(template_hooks['body_end']()))
__M_writer('\n</body>\n</html>\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, 'notes')._populate(_import_ns, ['*'])
_mako_get_namespace(context, 'base')._populate(_import_ns, ['*'])
def content():
return render_content(context)
__M_writer = context.writer()
return ''
finally:
context.caller_stack._pop_frame()
def render_belowtitle(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
_import_ns = {}
_mako_get_namespace(context, 'notes')._populate(_import_ns, ['*'])
_mako_get_namespace(context, 'base')._populate(_import_ns, ['*'])
def belowtitle():
return render_belowtitle(context)
len = _import_ns.get('len', context.get('len', UNDEFINED))
translations = _import_ns.get('translations', context.get('translations', UNDEFINED))
base = _mako_get_namespace(context, 'base')
__M_writer = context.writer()
__M_writer('\n')
if len(translations) > 1:
__M_writer(' <li>')
__M_writer(str(base.html_translations()))
__M_writer('</li>\n')
__M_writer(' ')
return ''
finally:
context.caller_stack._pop_frame()
def render_sourcelink(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
_import_ns = {}
_mako_get_namespace(context, 'notes')._populate(_import_ns, ['*'])
_mako_get_namespace(context, 'base')._populate(_import_ns, ['*'])
def sourcelink():
return render_sourcelink(context)
__M_writer = context.writer()
return ''
finally:
context.caller_stack._pop_frame()
def render_extra_js(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
_import_ns = {}
_mako_get_namespace(context, 'notes')._populate(_import_ns, ['*'])
_mako_get_namespace(context, 'base')._populate(_import_ns, ['*'])
def extra_js():
return render_extra_js(context)
__M_writer = context.writer()
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, 'notes')._populate(_import_ns, ['*'])
_mako_get_namespace(context, 'base')._populate(_import_ns, ['*'])
def extra_head():
return render_extra_head(context)
__M_writer = context.writer()
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
"""
__M_BEGIN_METADATA
{"source_encoding": "utf-8", "filename": "themes/cyborg/templates/base.tmpl", "line_map": {"128": 71, "129": 72, "130": 72, "131": 77, "132": 77, "133": 81, "134": 81, "135": 82, "136": 82, "137": 82, "138": 82, "190": 47, "143": 85, "144": 86, "145": 87, "146": 87, "147": 87, "148": 88, "149": 89, "22": 3, "151": 89, "152": 91, "25": 2, "154": 92, "155": 92, "28": 0, "150": 89, "161": 66, "198": 51, "226": 6, "175": 45, "187": 45, "188": 46, "189": 47, "153": 91, "191": 47, "192": 49, "67": 2, "68": 3, "69": 4, "70": 4, "71": 5, "72": 5, "212": 85, "77": 8, "78": 9, "79": 9, "80": 12, "81": 12, "82": 25, "83": 25, "84": 26, "85": 27, "86": 27, "87": 27, "88": 27, "89": 27, "90": 29, "91": 30, "92": 31, "93": 31, "94": 31, "95": 33, "96": 37, "97": 37, "98": 38, "99": 38, "100": 40, "101": 41, "102": 41, "103": 41, "104": 43, "235": 6, "109": 49, "110": 50, "111": 51, "241": 235, "116": 51, "117": 53, "118": 53, "119": 53, "120": 65, "121": 65, "126": 66, "127": 71}, "uri": "base.tmpl"}
__M_END_METADATA
"""

308
cache/.mako.tmp/base_helper.tmpl.py vendored Normal file
View file

@ -0,0 +1,308 @@
# -*- 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 = 1433908600.4133606
_enable_loop = True
_template_filename = 'themes/cyborg/templates/base_helper.tmpl'
_template_uri = 'base_helper.tmpl'
_source_encoding = 'utf-8'
_exports = ['late_load_js', 'html_navigation_links', 'html_stylesheets', 'html_translations', 'html_headstart', 'html_feedlinks']
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\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_late_load_js(context):
__M_caller = context.caller_stack._push_frame()
try:
lang = context.get('lang', UNDEFINED)
social_buttons_code = context.get('social_buttons_code', UNDEFINED)
colorbox_locales = context.get('colorbox_locales', UNDEFINED)
use_cdn = context.get('use_cdn', UNDEFINED)
use_bundles = context.get('use_bundles', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if use_bundles:
if use_cdn:
__M_writer(' <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>\n <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>\n <script src="/assets/js/all.js"></script>\n')
else:
__M_writer(' <script src="/assets/js/all-nocdn.js"></script>\n')
else:
if use_cdn:
__M_writer(' <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>\n <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>\n')
else:
__M_writer(' <script src="/assets/js/jquery.min.js"></script>\n <script src="/assets/js/bootstrap.min.js"></script>\n <script src="/assets/js/moment-with-locales.min.js"></script>\n <script src="/assets/js/fancydates.js"></script>\n')
__M_writer(' <script src="/assets/js/jquery.colorbox-min.js"></script>\n')
if colorbox_locales[lang]:
__M_writer(' <script src="/assets/js/colorbox-i18n/jquery.colorbox-')
__M_writer(str(colorbox_locales[lang]))
__M_writer('.js"></script>\n')
__M_writer(' ')
__M_writer(str(social_buttons_code))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_navigation_links(context):
__M_caller = context.caller_stack._push_frame()
try:
navigation_links = context.get('navigation_links', UNDEFINED)
permalink = context.get('permalink', UNDEFINED)
isinstance = context.get('isinstance', UNDEFINED)
rel_link = context.get('rel_link', UNDEFINED)
lang = context.get('lang', UNDEFINED)
tuple = context.get('tuple', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
for url, text in navigation_links[lang]:
if isinstance(url, tuple):
__M_writer(' <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">')
__M_writer(str(text))
__M_writer('<b class="caret"></b></a>\n <ul class="dropdown-menu">\n')
for suburl, text in url:
if rel_link(permalink, suburl) == "#":
__M_writer(' <li class="active"><a href="')
__M_writer(str(permalink))
__M_writer('">')
__M_writer(str(text))
__M_writer('</a>\n')
else:
__M_writer(' <li><a href="')
__M_writer(str(suburl))
__M_writer('">')
__M_writer(str(text))
__M_writer('</a>\n')
__M_writer(' </ul>\n')
else:
if rel_link(permalink, url) == "#":
__M_writer(' <li class="active"><a href="')
__M_writer(str(permalink))
__M_writer('">')
__M_writer(str(text))
__M_writer('</a>\n')
else:
__M_writer(' <li><a href="')
__M_writer(str(url))
__M_writer('">')
__M_writer(str(text))
__M_writer('</a>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_stylesheets(context):
__M_caller = context.caller_stack._push_frame()
try:
use_cdn = context.get('use_cdn', UNDEFINED)
annotations = context.get('annotations', UNDEFINED)
post = context.get('post', UNDEFINED)
use_bundles = context.get('use_bundles', UNDEFINED)
has_custom_css = context.get('has_custom_css', UNDEFINED)
notes = context.get('notes', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if use_bundles:
if use_cdn:
__M_writer(' <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">\n <link href="/assets/css/all.css" rel="stylesheet" type="text/css">\n')
else:
__M_writer(' <link href="/assets/css/all-nocdn.css" rel="stylesheet" type="text/css">\n')
else:
if use_cdn:
__M_writer(' <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">\n')
else:
__M_writer(' <link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">\n')
__M_writer(' <link href="/assets/css/rst.css" rel="stylesheet" type="text/css">\n <link href="/assets/css/code.css" rel="stylesheet" type="text/css">\n <link href="/assets/css/colorbox.css" rel="stylesheet" type="text/css">\n <link href="/assets/css/theme.css" rel="stylesheet" type="text/css">\n')
if has_custom_css:
__M_writer(' <link href="/assets/css/custom.css" rel="stylesheet" type="text/css">\n')
if annotations and post and not post.meta('noannotations'):
__M_writer(' ')
__M_writer(str(notes.css()))
__M_writer('\n')
elif not annotations and post and post.meta('annotations'):
__M_writer(' ')
__M_writer(str(notes.css()))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_translations(context):
__M_caller = context.caller_stack._push_frame()
try:
_link = context.get('_link', UNDEFINED)
messages = context.get('messages', UNDEFINED)
translations = context.get('translations', UNDEFINED)
lang = context.get('lang', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
for langname in translations.keys():
if langname != lang:
__M_writer(' <li><a href="')
__M_writer(str(_link("index", None, langname)))
__M_writer('" rel="alternate" hreflang="')
__M_writer(str(langname))
__M_writer('">')
__M_writer(str(messages("LANGUAGE", langname)))
__M_writer('</a></li>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_headstart(context):
__M_caller = context.caller_stack._push_frame()
try:
prevlink = context.get('prevlink', UNDEFINED)
description = context.get('description', UNDEFINED)
permalink = context.get('permalink', UNDEFINED)
extra_head_data = context.get('extra_head_data', UNDEFINED)
blog_title = context.get('blog_title', UNDEFINED)
use_cdn = context.get('use_cdn', UNDEFINED)
url_replacer = context.get('url_replacer', UNDEFINED)
is_rtl = context.get('is_rtl', UNDEFINED)
mathjax_config = context.get('mathjax_config', UNDEFINED)
def html_stylesheets():
return render_html_stylesheets(context)
use_open_graph = context.get('use_open_graph', UNDEFINED)
title = context.get('title', UNDEFINED)
nextlink = context.get('nextlink', UNDEFINED)
twitter_card = context.get('twitter_card', UNDEFINED)
def html_feedlinks():
return render_html_feedlinks(context)
striphtml = context.get('striphtml', UNDEFINED)
abs_link = context.get('abs_link', UNDEFINED)
lang = context.get('lang', UNDEFINED)
comment_system = context.get('comment_system', UNDEFINED)
comment_system_id = context.get('comment_system_id', UNDEFINED)
favicons = context.get('favicons', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n<!DOCTYPE html>\n<html\n')
if use_open_graph or (twitter_card and twitter_card['use_twitter_cards']) or (comment_system == 'facebook'):
__M_writer("prefix='")
if use_open_graph or (twitter_card and twitter_card['use_twitter_cards']):
__M_writer('og: http://ogp.me/ns# ')
if use_open_graph:
__M_writer('article: http://ogp.me/ns/article# ')
if comment_system == 'facebook':
__M_writer('fb: http://ogp.me/ns/fb# ')
__M_writer("'")
if is_rtl:
__M_writer('dir="rtl" ')
__M_writer('lang="')
__M_writer(str(lang))
__M_writer('">\n <head>\n <meta charset="utf-8">\n')
if description:
__M_writer(' <meta name="description" content="')
__M_writer(str(description))
__M_writer('">\n')
__M_writer(' <meta name="viewport" content="width=device-width, initial-scale=1">\n <title>')
__M_writer(striphtml(str(title)))
__M_writer(' | ')
__M_writer(striphtml(str(blog_title)))
__M_writer('</title>\n\n ')
__M_writer(str(html_stylesheets()))
__M_writer('\n ')
__M_writer(str(html_feedlinks()))
__M_writer('\n')
if permalink:
__M_writer(' <link rel="canonical" href="')
__M_writer(str(abs_link(permalink)))
__M_writer('">\n')
__M_writer('\n')
if favicons:
for name, file, size in favicons:
__M_writer(' <link rel="')
__M_writer(str(name))
__M_writer('" href="')
__M_writer(str(file))
__M_writer('" sizes="')
__M_writer(str(size))
__M_writer('"/>\n')
__M_writer('\n')
if comment_system == 'facebook':
__M_writer(' <meta property="fb:app_id" content="')
__M_writer(str(comment_system_id))
__M_writer('">\n')
__M_writer('\n')
if prevlink:
__M_writer(' <link rel="prev" href="')
__M_writer(str(prevlink))
__M_writer('" type="text/html">\n')
if nextlink:
__M_writer(' <link rel="next" href="')
__M_writer(str(nextlink))
__M_writer('" type="text/html">\n')
__M_writer('\n ')
__M_writer(str(mathjax_config))
__M_writer('\n')
if use_cdn:
__M_writer(' <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->\n')
else:
__M_writer(' <!--[if lt IE 9]><script src="')
__M_writer(str(url_replacer(permalink, '/assets/js/html5.js', lang)))
__M_writer('"></script><![endif]-->\n')
__M_writer('\n ')
__M_writer(str(extra_head_data))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_feedlinks(context):
__M_caller = context.caller_stack._push_frame()
try:
rss_link = context.get('rss_link', UNDEFINED)
len = context.get('len', UNDEFINED)
generate_rss = context.get('generate_rss', UNDEFINED)
translations = context.get('translations', UNDEFINED)
_link = context.get('_link', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if rss_link:
__M_writer(' ')
__M_writer(str(rss_link))
__M_writer('\n')
elif generate_rss:
if len(translations) > 1:
for language in translations:
__M_writer(' <link rel="alternate" type="application/rss+xml" title="RSS (')
__M_writer(str(language))
__M_writer(')" href="')
__M_writer(str(_link('rss', None, language)))
__M_writer('">\n')
else:
__M_writer(' <link rel="alternate" type="application/rss+xml" title="RSS" href="')
__M_writer(str(_link('rss', None)))
__M_writer('">\n')
return ''
finally:
context.caller_stack._pop_frame()
"""
__M_BEGIN_METADATA
{"source_encoding": "utf-8", "filename": "themes/cyborg/templates/base_helper.tmpl", "line_map": {"15": 0, "20": 2, "21": 65, "22": 92, "23": 122, "24": 145, "25": 159, "26": 167, "32": 67, "41": 67, "42": 68, "43": 69, "44": 70, "45": 73, "46": 74, "47": 76, "48": 77, "49": 78, "50": 80, "51": 81, "52": 86, "53": 88, "54": 89, "55": 89, "56": 89, "57": 91, "58": 91, "59": 91, "65": 124, "75": 124, "76": 125, "77": 126, "78": 127, "79": 127, "80": 127, "81": 129, "82": 130, "83": 131, "84": 131, "85": 131, "86": 131, "87": 131, "88": 132, "89": 133, "90": 133, "91": 133, "92": 133, "93": 133, "94": 136, "95": 137, "96": 138, "97": 139, "98": 139, "99": 139, "100": 139, "101": 139, "102": 140, "103": 141, "104": 141, "105": 141, "106": 141, "107": 141, "113": 95, "123": 95, "124": 96, "125": 97, "126": 98, "127": 100, "128": 101, "129": 103, "130": 104, "131": 105, "132": 106, "133": 107, "134": 109, "135": 113, "136": 114, "137": 117, "138": 118, "139": 118, "140": 118, "141": 119, "142": 120, "143": 120, "144": 120, "150": 161, "158": 161, "159": 162, "160": 163, "161": 164, "162": 164, "163": 164, "164": 164, "165": 164, "166": 164, "167": 164, "173": 3, "200": 3, "201": 7, "202": 8, "203": 9, "204": 10, "205": 12, "206": 13, "207": 15, "208": 16, "209": 18, "210": 21, "211": 22, "212": 25, "213": 25, "214": 25, "215": 28, "216": 29, "217": 29, "218": 29, "219": 31, "220": 32, "221": 32, "222": 32, "223": 32, "224": 34, "225": 34, "226": 35, "227": 35, "228": 36, "229": 37, "230": 37, "231": 37, "232": 39, "233": 40, "234": 41, "235": 42, "236": 42, "237": 42, "238": 42, "239": 42, "240": 42, "241": 42, "242": 45, "243": 46, "244": 47, "245": 47, "246": 47, "247": 49, "248": 50, "249": 51, "250": 51, "251": 51, "252": 53, "253": 54, "254": 54, "255": 54, "256": 56, "257": 57, "258": 57, "259": 58, "260": 59, "261": 60, "262": 61, "263": 61, "264": 61, "265": 63, "266": 64, "267": 64, "273": 147, "282": 147, "283": 148, "284": 149, "285": 149, "286": 149, "287": 150, "288": 151, "289": 152, "290": 153, "291": 153, "292": 153, "293": 153, "294": 153, "295": 155, "296": 156, "297": 156, "298": 156, "304": 298}, "uri": "base_helper.tmpl"}
__M_END_METADATA
"""

206
cache/.mako.tmp/comments_helper.tmpl.py vendored Normal file
View file

@ -0,0 +1,206 @@
# -*- 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 = 1433908605.8966293
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper.tmpl'
_template_uri = 'comments_helper.tmpl'
_source_encoding = 'utf-8'
_exports = ['comment_form', 'comment_link_script', 'comment_link']
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('disqus', context._clean_inheritance_tokens(), templateuri='comments_helper_disqus.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'disqus')] = ns
ns = runtime.TemplateNamespace('intensedebate', context._clean_inheritance_tokens(), templateuri='comments_helper_intensedebate.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'intensedebate')] = ns
ns = runtime.TemplateNamespace('isso', context._clean_inheritance_tokens(), templateuri='comments_helper_isso.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'isso')] = ns
ns = runtime.TemplateNamespace('facebook', context._clean_inheritance_tokens(), templateuri='comments_helper_facebook.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'facebook')] = ns
ns = runtime.TemplateNamespace('muut', context._clean_inheritance_tokens(), templateuri='comments_helper_muut.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'muut')] = ns
ns = runtime.TemplateNamespace('livefyre', context._clean_inheritance_tokens(), templateuri='comments_helper_livefyre.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'livefyre')] = ns
ns = runtime.TemplateNamespace('googleplus', context._clean_inheritance_tokens(), templateuri='comments_helper_googleplus.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'googleplus')] = ns
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')
__M_writer('\n')
__M_writer('\n')
__M_writer('\n')
__M_writer('\n')
__M_writer('\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_comment_form(context,url,title,identifier):
__M_caller = context.caller_stack._push_frame()
try:
disqus = _mako_get_namespace(context, 'disqus')
isso = _mako_get_namespace(context, 'isso')
facebook = _mako_get_namespace(context, 'facebook')
intensedebate = _mako_get_namespace(context, 'intensedebate')
googleplus = _mako_get_namespace(context, 'googleplus')
comment_system = context.get('comment_system', UNDEFINED)
livefyre = _mako_get_namespace(context, 'livefyre')
muut = _mako_get_namespace(context, 'muut')
__M_writer = context.writer()
__M_writer('\n')
if comment_system == 'disqus':
__M_writer(' ')
__M_writer(str(disqus.comment_form(url, title, identifier)))
__M_writer('\n')
elif comment_system == 'livefyre':
__M_writer(' ')
__M_writer(str(livefyre.comment_form(url, title, identifier)))
__M_writer('\n')
elif comment_system == 'intensedebate':
__M_writer(' ')
__M_writer(str(intensedebate.comment_form(url, title, identifier)))
__M_writer('\n')
elif comment_system == 'muut':
__M_writer(' ')
__M_writer(str(muut.comment_form(url, title, identifier)))
__M_writer('\n')
elif comment_system == 'googleplus':
__M_writer(' ')
__M_writer(str(googleplus.comment_form(url, title, identifier)))
__M_writer('\n')
elif comment_system == 'facebook':
__M_writer(' ')
__M_writer(str(facebook.comment_form(url, title, identifier)))
__M_writer('\n')
elif comment_system == 'isso':
__M_writer(' ')
__M_writer(str(isso.comment_form(url, title, identifier)))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link_script(context):
__M_caller = context.caller_stack._push_frame()
try:
disqus = _mako_get_namespace(context, 'disqus')
isso = _mako_get_namespace(context, 'isso')
facebook = _mako_get_namespace(context, 'facebook')
googleplus = _mako_get_namespace(context, 'googleplus')
intensedebate = _mako_get_namespace(context, 'intensedebate')
comment_system = context.get('comment_system', UNDEFINED)
livefyre = _mako_get_namespace(context, 'livefyre')
muut = _mako_get_namespace(context, 'muut')
__M_writer = context.writer()
__M_writer('\n')
if comment_system == 'disqus':
__M_writer(' ')
__M_writer(str(disqus.comment_link_script()))
__M_writer('\n')
elif comment_system == 'livefyre':
__M_writer(' ')
__M_writer(str(livefyre.comment_link_script()))
__M_writer('\n')
elif comment_system == 'intensedebate':
__M_writer(' ')
__M_writer(str(intensedebate.comment_link_script()))
__M_writer('\n')
elif comment_system == 'muut':
__M_writer(' ')
__M_writer(str(muut.comment_link_script()))
__M_writer('\n')
elif comment_system == 'googleplus':
__M_writer(' ')
__M_writer(str(googleplus.comment_link_script()))
__M_writer('\n')
elif comment_system == 'facebook':
__M_writer(' ')
__M_writer(str(facebook.comment_link_script()))
__M_writer('\n')
elif comment_system == 'isso':
__M_writer(' ')
__M_writer(str(isso.comment_link_script()))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link(context,link,identifier):
__M_caller = context.caller_stack._push_frame()
try:
disqus = _mako_get_namespace(context, 'disqus')
isso = _mako_get_namespace(context, 'isso')
facebook = _mako_get_namespace(context, 'facebook')
intensedebate = _mako_get_namespace(context, 'intensedebate')
googleplus = _mako_get_namespace(context, 'googleplus')
comment_system = context.get('comment_system', UNDEFINED)
livefyre = _mako_get_namespace(context, 'livefyre')
muut = _mako_get_namespace(context, 'muut')
__M_writer = context.writer()
__M_writer('\n')
if comment_system == 'disqus':
__M_writer(' ')
__M_writer(str(disqus.comment_link(link, identifier)))
__M_writer('\n')
elif comment_system == 'livefyre':
__M_writer(' ')
__M_writer(str(livefyre.comment_link(link, identifier)))
__M_writer('\n')
elif comment_system == 'intensedebate':
__M_writer(' ')
__M_writer(str(intensedebate.comment_link(link, identifier)))
__M_writer('\n')
elif comment_system == 'muut':
__M_writer(' ')
__M_writer(str(muut.comment_link(link, identifier)))
__M_writer('\n')
elif comment_system == 'googleplus':
__M_writer(' ')
__M_writer(str(googleplus.comment_link(link, identifier)))
__M_writer('\n')
elif comment_system == 'facebook':
__M_writer(' ')
__M_writer(str(facebook.comment_link(link, identifier)))
__M_writer('\n')
elif comment_system == 'isso':
__M_writer(' ')
__M_writer(str(isso.comment_link(link, identifier)))
__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/comments_helper.tmpl", "line_map": {"22": 3, "25": 5, "28": 9, "31": 8, "34": 6, "37": 4, "40": 7, "43": 0, "48": 2, "49": 3, "50": 4, "51": 5, "52": 6, "53": 7, "54": 8, "55": 9, "56": 27, "57": 45, "58": 63, "64": 11, "76": 11, "77": 12, "78": 13, "79": 13, "80": 13, "81": 14, "82": 15, "83": 15, "84": 15, "85": 16, "86": 17, "87": 17, "88": 17, "89": 18, "90": 19, "91": 19, "92": 19, "93": 20, "94": 21, "95": 21, "96": 21, "97": 22, "98": 23, "99": 23, "100": 23, "101": 24, "102": 25, "103": 25, "104": 25, "110": 47, "122": 47, "123": 48, "124": 49, "125": 49, "126": 49, "127": 50, "128": 51, "129": 51, "130": 51, "131": 52, "132": 53, "133": 53, "134": 53, "135": 54, "136": 55, "137": 55, "138": 55, "139": 56, "140": 57, "141": 57, "142": 57, "143": 58, "144": 59, "145": 59, "146": 59, "147": 60, "148": 61, "149": 61, "150": 61, "156": 29, "168": 29, "169": 30, "170": 31, "171": 31, "172": 31, "173": 32, "174": 33, "175": 33, "176": 33, "177": 34, "178": 35, "179": 35, "180": 35, "181": 36, "182": 37, "183": 37, "184": 37, "185": 38, "186": 39, "187": 39, "188": 39, "189": 40, "190": 41, "191": 41, "192": 41, "193": 42, "194": 43, "195": 43, "196": 43, "202": 196}, "uri": "comments_helper.tmpl"}
__M_END_METADATA
"""

View file

@ -0,0 +1,100 @@
# -*- 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 = 1433908605.9210005
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper_disqus.tmpl'
_template_uri = 'comments_helper_disqus.tmpl'
_source_encoding = 'utf-8'
_exports = ['comment_form', 'comment_link_script', 'comment_link']
import json
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\n')
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_form(context,url,title,identifier):
__M_caller = context.caller_stack._push_frame()
try:
lang = context.get('lang', UNDEFINED)
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if comment_system_id:
__M_writer(' <div id="disqus_thread"></div>\n <script>\n var disqus_shortname ="')
__M_writer(str(comment_system_id))
__M_writer('",\n')
if url:
__M_writer(' disqus_url="')
__M_writer(str(url))
__M_writer('",\n')
__M_writer(' disqus_title=')
__M_writer(str(json.dumps(title)))
__M_writer(',\n disqus_identifier="')
__M_writer(str(identifier))
__M_writer('",\n disqus_config = function () {\n')
if lang == 'es':
__M_writer(' this.language = "es_ES";\n')
else:
__M_writer(' this.language = "')
__M_writer(str(lang))
__M_writer('";\n')
__M_writer(' };\n (function() {\n var dsq = document.createElement(\'script\'); dsq.async = true;\n dsq.src = \'//\' + disqus_shortname + \'.disqus.com/embed.js\';\n (document.getElementsByTagName(\'head\')[0] || document.getElementsByTagName(\'body\')[0]).appendChild(dsq);\n })();\n </script>\n <noscript>Please enable JavaScript to view the <a href="//disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>\n <a href="//disqus.com" class="dsq-brlink" rel="nofollow">Comments powered by <span class="logo-disqus">Disqus</span></a>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link_script(context):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if comment_system_id:
__M_writer(' <script>var disqus_shortname="')
__M_writer(str(comment_system_id))
__M_writer('";(function(){var a=document.createElement("script");a.async=true;a.src="//"+disqus_shortname+".disqus.com/count.js";(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)}());</script>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link(context,link,identifier):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if comment_system_id:
__M_writer(' <a href="')
__M_writer(str(link))
__M_writer('#disqus_thread" data-disqus-identifier="')
__M_writer(str(identifier))
__M_writer('">Comments</a>\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/comments_helper_disqus.tmpl", "line_map": {"15": 3, "17": 0, "22": 2, "23": 3, "24": 31, "25": 37, "26": 44, "32": 5, "38": 5, "39": 6, "40": 7, "41": 9, "42": 9, "43": 10, "44": 11, "45": 11, "46": 11, "47": 13, "48": 13, "49": 13, "50": 14, "51": 14, "52": 16, "53": 17, "54": 18, "55": 19, "56": 19, "57": 19, "58": 21, "64": 40, "69": 40, "70": 41, "71": 42, "72": 42, "73": 42, "79": 33, "84": 33, "85": 34, "86": 35, "87": 35, "88": 35, "89": 35, "90": 35, "96": 90}, "uri": "comments_helper_disqus.tmpl"}
__M_END_METADATA
"""

View file

@ -0,0 +1,72 @@
# -*- 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 = 1433908605.9600098
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper_facebook.tmpl'
_template_uri = 'comments_helper_facebook.tmpl'
_source_encoding = 'utf-8'
_exports = ['comment_form', 'comment_link_script', 'comment_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\n')
__M_writer('\n\n')
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_form(context,url,title,identifier):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n<div id="fb-root"></div>\n<script>\n window.fbAsyncInit = function() {\n // init the FB JS SDK\n FB.init({\n appId : \'')
__M_writer(str(comment_system_id))
__M_writer('\',\n status : true,\n xfbml : true\n });\n\n };\n\n // Load the SDK asynchronously\n (function(d, s, id){\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) {return;}\n js = d.createElement(s); js.id = id;\n js.src = "//connect.facebook.net/en_US/all.js";\n fjs.parentNode.insertBefore(js, fjs);\n }(document, \'script\', \'facebook-jssdk\'));\n</script>\n\n<div class="fb-comments" data-href="')
__M_writer(str(url))
__M_writer('" data-width="470"></div>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link_script(context):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n<div id="fb-root"></div>\n<script>\n // thank lxml for this\n $(\'.fb-comments-count\').each(function(i, obj) {\n var url = obj.attributes[\'data-url\'].value;\n // change here if you dislike the default way of displaying\n // this\n obj.innerHTML = \'<fb:comments-count href="\' + url + \'"></fb:comments-count> comments\';\n });\n\n window.fbAsyncInit = function() {\n // init the FB JS SDK\n FB.init({\n appId : \'')
__M_writer(str(comment_system_id))
__M_writer('\',\n status : true,\n xfbml : true\n });\n\n };\n\n // Load the SDK asynchronously\n (function(d, s, id){\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) {return;}\n js = d.createElement(s); js.id = id;\n js.src = "//connect.facebook.net/en_US/all.js";\n fjs.parentNode.insertBefore(js, fjs);\n }(document, \'script\', \'facebook-jssdk\'));\n</script>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link(context,link,identifier):
__M_caller = context.caller_stack._push_frame()
try:
__M_writer = context.writer()
__M_writer('\n<span class="fb-comments-count" data-url="')
__M_writer(str(link))
__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/comments_helper_facebook.tmpl", "line_map": {"33": 2, "34": 8, "35": 8, "36": 25, "37": 25, "60": 28, "43": 32, "15": 0, "48": 32, "49": 46, "50": 46, "20": 26, "21": 30, "22": 62, "56": 28, "68": 62, "28": 2, "61": 29, "62": 29}, "uri": "comments_helper_facebook.tmpl"}
__M_END_METADATA
"""

View file

@ -0,0 +1,66 @@
# -*- 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 = 1433908605.9538429
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper_googleplus.tmpl'
_template_uri = 'comments_helper_googleplus.tmpl'
_source_encoding = 'utf-8'
_exports = ['comment_form', 'comment_link_script', 'comment_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\n')
__M_writer('\n\n')
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_form(context,url,title,identifier):
__M_caller = context.caller_stack._push_frame()
try:
__M_writer = context.writer()
__M_writer('\n<script src="https://apis.google.com/js/plusone.js"></script>\n<div class="g-comments"\n data-href="')
__M_writer(str(url))
__M_writer('"\n data-first_party_property="BLOGGER"\n data-view_type="FILTERED_POSTMOD">\n</div>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link_script(context):
__M_caller = context.caller_stack._push_frame()
try:
__M_writer = context.writer()
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link(context,link,identifier):
__M_caller = context.caller_stack._push_frame()
try:
__M_writer = context.writer()
__M_writer('\n<div class="g-commentcount" data-href="')
__M_writer(str(link))
__M_writer('"></div>\n<script src="https://apis.google.com/js/plusone.js"></script>\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/comments_helper_googleplus.tmpl", "line_map": {"32": 2, "33": 5, "34": 5, "54": 11, "40": 16, "44": 16, "15": 0, "50": 11, "20": 9, "21": 14, "22": 17, "55": 12, "56": 12, "28": 2, "62": 56}, "uri": "comments_helper_googleplus.tmpl"}
__M_END_METADATA
"""

View file

@ -0,0 +1,80 @@
# -*- 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 = 1433908605.9393663
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper_intensedebate.tmpl'
_template_uri = 'comments_helper_intensedebate.tmpl'
_source_encoding = 'utf-8'
_exports = ['comment_form', 'comment_link_script', 'comment_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\n')
__M_writer('\n\n')
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_form(context,url,title,identifier):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer("\n<script>\nvar idcomments_acct = '")
__M_writer(str(comment_system_id))
__M_writer('\';\nvar idcomments_post_id = "')
__M_writer(str(identifier))
__M_writer('";\nvar idcomments_post_url = "')
__M_writer(str(url))
__M_writer('";\n</script>\n<span id="IDCommentsPostTitle" style="display:none"></span>\n<script src=\'http://www.intensedebate.com/js/genericCommentWrapperV2.js\'></script>\n</script>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link_script(context):
__M_caller = context.caller_stack._push_frame()
try:
__M_writer = context.writer()
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link(context,link,identifier):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n<a href="{link}" onclick="this.href=\'')
__M_writer(str(link))
__M_writer('\'; this.target=\'_self\';"><span class=\'IDCommentsReplace\' style=\'display:none\'>')
__M_writer(str(identifier))
__M_writer("</span>\n<script>\nvar idcomments_acct = '")
__M_writer(str(comment_system_id))
__M_writer('\';\nvar idcomments_post_id = "')
__M_writer(str(identifier))
__M_writer('";\nvar idcomments_post_url = "')
__M_writer(str(link))
__M_writer('";\n</script>\n<script src="http://www.intensedebate.com/js/genericLinkWrapperV2.js"></script>\n</a>\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/comments_helper_intensedebate.tmpl", "line_map": {"64": 14, "65": 16, "66": 16, "67": 17, "68": 17, "69": 18, "70": 18, "76": 70, "15": 0, "20": 11, "21": 22, "22": 25, "28": 2, "33": 2, "34": 4, "35": 4, "36": 5, "37": 5, "38": 6, "39": 6, "45": 24, "49": 24, "55": 13, "60": 13, "61": 14, "62": 14, "63": 14}, "uri": "comments_helper_intensedebate.tmpl"}
__M_END_METADATA
"""

View file

@ -0,0 +1,83 @@
# -*- 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 = 1433908605.9680676
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper_isso.tmpl'
_template_uri = 'comments_helper_isso.tmpl'
_source_encoding = 'utf-8'
_exports = ['comment_form', 'comment_link_script', 'comment_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\n')
__M_writer('\n\n\n')
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_form(context,url,title,identifier):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if comment_system_id:
__M_writer(' <div data-title="')
__M_writer(filters.url_escape(str(title)))
__M_writer('" id="isso-thread"></div>\n <script src="')
__M_writer(str(comment_system_id))
__M_writer('js/embed.min.js" data-isso="')
__M_writer(str(comment_system_id))
__M_writer('"></script>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link_script(context):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if comment_system_id:
__M_writer(' <script src="')
__M_writer(str(comment_system_id))
__M_writer('js/count.min.js" data-isso="')
__M_writer(str(comment_system_id))
__M_writer('"></script>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link(context,link,identifier):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if comment_system_id:
__M_writer(' <a href="')
__M_writer(str(link))
__M_writer('#isso-thread">Comments</a>\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/comments_helper_isso.tmpl", "line_map": {"64": 9, "69": 9, "70": 10, "71": 11, "72": 11, "73": 11, "15": 0, "20": 7, "21": 13, "22": 20, "79": 73, "28": 2, "33": 2, "34": 3, "35": 4, "36": 4, "37": 4, "38": 5, "39": 5, "40": 5, "41": 5, "47": 16, "52": 16, "53": 17, "54": 18, "55": 18, "56": 18, "57": 18, "58": 18}, "uri": "comments_helper_isso.tmpl"}
__M_END_METADATA
"""

View file

@ -0,0 +1,74 @@
# -*- 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 = 1433908605.9313903
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper_livefyre.tmpl'
_template_uri = 'comments_helper_livefyre.tmpl'
_source_encoding = 'utf-8'
_exports = ['comment_form', 'comment_link_script', 'comment_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\n')
__M_writer('\n\n\n')
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_form(context,url,title,identifier):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n<div id="livefyre-comments"></div>\n<script src="http://zor.livefyre.com/wjs/v3.0/javascripts/livefyre.js"></script>\n<script>\n(function () {\n var articleId = "')
__M_writer(str(identifier))
__M_writer('";\n fyre.conv.load({}, [{\n el: \'livefyre-comments\',\n network: "livefyre.com",\n siteId: "')
__M_writer(str(comment_system_id))
__M_writer('",\n articleId: articleId,\n signed: false,\n collectionMeta: {\n articleId: articleId,\n url: fyre.conv.load.makeCollectionUrl(),\n }\n }], function() {});\n}());\n</script>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link_script(context):
__M_caller = context.caller_stack._push_frame()
try:
__M_writer = context.writer()
__M_writer('\n<script src="http://zor.livefyre.com/wjs/v1.0/javascripts/CommentCount.js"></script>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link(context,link,identifier):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n <a href="')
__M_writer(str(link))
__M_writer('">\n <span class="livefyre-commentcount" data-lf-site-id="')
__M_writer(str(comment_system_id))
__M_writer('" data-lf-article-id="')
__M_writer(str(identifier))
__M_writer('">\n 0 Comments\n </span>\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/comments_helper_livefyre.tmpl", "line_map": {"64": 25, "33": 2, "34": 7, "35": 7, "36": 11, "37": 11, "70": 64, "60": 24, "43": 31, "63": 25, "15": 0, "59": 24, "20": 21, "21": 28, "22": 33, "58": 23, "47": 31, "28": 2, "61": 25, "62": 25, "53": 23}, "uri": "comments_helper_livefyre.tmpl"}
__M_END_METADATA
"""

View file

@ -0,0 +1,70 @@
# -*- 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 = 1433908605.947817
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper_muut.tmpl'
_template_uri = 'comments_helper_muut.tmpl'
_source_encoding = 'utf-8'
_exports = ['comment_form', 'comment_link_script', 'comment_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\n')
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_form(context,url,title,identifier):
__M_caller = context.caller_stack._push_frame()
try:
comment_system_id = context.get('comment_system_id', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n <a class="muut" href="https://muut.com/i/')
__M_writer(str(comment_system_id))
__M_writer('/')
__M_writer(str(identifier))
__M_writer('">')
__M_writer(str(comment_system_id))
__M_writer(' forums</a>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link_script(context):
__M_caller = context.caller_stack._push_frame()
try:
__M_writer = context.writer()
__M_writer('\n<script src="//cdn.muut.com/1/moot.min.js"></script>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_comment_link(context,link,identifier):
__M_caller = context.caller_stack._push_frame()
try:
__M_writer = context.writer()
__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/comments_helper_muut.tmpl", "line_map": {"34": 3, "35": 4, "36": 4, "37": 4, "38": 4, "39": 4, "40": 4, "66": 60, "46": 11, "15": 0, "50": 11, "20": 2, "21": 5, "22": 8, "23": 13, "56": 7, "60": 7, "29": 3}, "uri": "comments_helper_muut.tmpl"}
__M_END_METADATA
"""

57
cache/.mako.tmp/crumbs.tmpl.py vendored Normal file
View file

@ -0,0 +1,57 @@
# -*- 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 = 1433908600.4474182
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/crumbs.tmpl'
_template_uri = 'crumbs.tmpl'
_source_encoding = 'utf-8'
_exports = ['bar']
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')
return ''
finally:
context.caller_stack._pop_frame()
def render_bar(context,crumbs):
__M_caller = context.caller_stack._push_frame()
try:
index_file = context.get('index_file', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if crumbs:
__M_writer('<nav class="breadcrumbs">\n<ul class="breadcrumb">\n')
for link, text in crumbs:
if text != index_file:
if link == '#':
__M_writer(' <li>')
__M_writer(str(text.rsplit('.html', 1)[0]))
__M_writer('</li>\n')
else:
__M_writer(' <li><a href="')
__M_writer(str(link))
__M_writer('">')
__M_writer(str(text))
__M_writer('</a></li>\n')
__M_writer('</ul>\n</nav>\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/crumbs.tmpl", "line_map": {"32": 3, "33": 4, "34": 5, "35": 7, "36": 8, "37": 9, "38": 10, "39": 10, "40": 10, "41": 11, "42": 12, "43": 12, "44": 12, "45": 12, "46": 12, "15": 0, "47": 16, "20": 2, "21": 19, "27": 3, "53": 47}, "uri": "crumbs.tmpl"}
__M_END_METADATA
"""

170
cache/.mako.tmp/index.tmpl.py vendored Normal file
View file

@ -0,0 +1,170 @@
# -*- 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 = 1433908605.86203
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/index.tmpl'
_template_uri = 'index.tmpl'
_source_encoding = 'utf-8'
_exports = ['content', 'content_header', 'extra_head']
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('helper', context._clean_inheritance_tokens(), templateuri='index_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'helper')] = ns
ns = runtime.TemplateNamespace('comments', context._clean_inheritance_tokens(), templateuri='comments_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'comments')] = 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)
def content():
return render_content(context._locals(__M_locals))
permalink = context.get('permalink', UNDEFINED)
site_has_comments = context.get('site_has_comments', UNDEFINED)
parent = context.get('parent', UNDEFINED)
def content_header():
return render_content_header(context._locals(__M_locals))
comments = _mako_get_namespace(context, 'comments')
index_teasers = context.get('index_teasers', UNDEFINED)
index_file = context.get('index_file', UNDEFINED)
date_format = context.get('date_format', UNDEFINED)
def extra_head():
return render_extra_head(context._locals(__M_locals))
posts = context.get('posts', UNDEFINED)
helper = _mako_get_namespace(context, 'helper')
__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_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
def content():
return render_content(context)
site_has_comments = context.get('site_has_comments', UNDEFINED)
def content_header():
return render_content_header(context)
comments = _mako_get_namespace(context, 'comments')
index_teasers = context.get('index_teasers', UNDEFINED)
date_format = context.get('date_format', UNDEFINED)
posts = context.get('posts', UNDEFINED)
helper = _mako_get_namespace(context, 'helper')
__M_writer = context.writer()
__M_writer('\n')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'content_header'):
context['self'].content_header(**pageargs)
__M_writer('\n<div class="postindex">\n')
for post in posts:
__M_writer(' <article class="h-entry post-')
__M_writer(str(post.meta('type')))
__M_writer('">\n <header>\n <h1 class="p-name entry-title"><a href="')
__M_writer(str(post.permalink()))
__M_writer('" class="u-url">')
__M_writer(filters.html_escape(str(post.title())))
__M_writer('</a></h1>\n <div class="metadata">\n <p class="byline author vcard"><span class="byline-name fn">')
__M_writer(str(post.author()))
__M_writer('</span></p>\n <p class="dateline"><a href="')
__M_writer(str(post.permalink()))
__M_writer('" rel="bookmark"><time class="published dt-published" datetime="')
__M_writer(str(post.date.isoformat()))
__M_writer('" title="')
__M_writer(str(post.formatted_date(date_format)))
__M_writer('">')
__M_writer(str(post.formatted_date(date_format)))
__M_writer('</time></a></p>\n')
if not post.meta('nocomments') and site_has_comments:
__M_writer(' <p class="commentline">')
__M_writer(str(comments.comment_link(post.permalink(), post._base_path)))
__M_writer('\n')
__M_writer(' </div>\n </header>\n')
if index_teasers:
__M_writer(' <div class="p-summary entry-summary">\n ')
__M_writer(str(post.text(teaser_only=True)))
__M_writer('\n')
else:
__M_writer(' <div class="e-content entry-content">\n ')
__M_writer(str(post.text(teaser_only=False)))
__M_writer('\n')
__M_writer(' </div>\n </article>\n')
__M_writer('</div>\n')
__M_writer(str(helper.html_pager()))
__M_writer('\n')
__M_writer(str(comments.comment_link_script()))
__M_writer('\n')
__M_writer(str(helper.mathjax_script(posts)))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_content_header(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
def content_header():
return render_content_header(context)
__M_writer = context.writer()
return ''
finally:
context.caller_stack._pop_frame()
def render_extra_head(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
parent = context.get('parent', UNDEFINED)
posts = context.get('posts', UNDEFINED)
permalink = context.get('permalink', UNDEFINED)
index_file = context.get('index_file', UNDEFINED)
def extra_head():
return render_extra_head(context)
__M_writer = context.writer()
__M_writer('\n ')
__M_writer(str(parent.extra_head()))
__M_writer('\n')
if posts and (permalink == '/' or permalink == '/' + index_file):
__M_writer(' <link rel="prefetch" href="')
__M_writer(str(posts[0].permalink()))
__M_writer('" type="text/html">\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/index.tmpl", "line_map": {"133": 14, "144": 6, "22": 2, "25": 3, "154": 6, "155": 7, "156": 7, "157": 8, "158": 9, "31": 0, "160": 9, "166": 160, "51": 2, "52": 3, "53": 4, "58": 11, "159": 9, "63": 42, "69": 13, "83": 13, "88": 14, "89": 16, "90": 17, "91": 17, "92": 17, "93": 19, "94": 19, "95": 19, "96": 19, "97": 21, "98": 21, "99": 22, "100": 22, "101": 22, "102": 22, "103": 22, "104": 22, "105": 22, "106": 22, "107": 23, "108": 24, "109": 24, "110": 24, "111": 26, "112": 28, "113": 29, "114": 30, "115": 30, "116": 31, "117": 32, "118": 33, "119": 33, "120": 35, "121": 38, "122": 39, "123": 39, "124": 40, "125": 40, "126": 41, "127": 41}, "uri": "index.tmpl"}
__M_END_METADATA
"""

72
cache/.mako.tmp/index_helper.tmpl.py vendored Normal file
View file

@ -0,0 +1,72 @@
# -*- 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 = 1433908605.8797932
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/index_helper.tmpl'
_template_uri = 'index_helper.tmpl'
_source_encoding = 'utf-8'
_exports = ['mathjax_script', 'html_pager']
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\n')
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_mathjax_script(context,posts):
__M_caller = context.caller_stack._push_frame()
try:
any = context.get('any', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if any(post.is_mathjax for post in posts):
__M_writer(' <script type="text/x-mathjax-config">\n MathJax.Hub.Config({tex2jax: {inlineMath: [[\'$latex \',\'$\'], [\'\\\\(\',\'\\\\)\']]}});</script>\n <script src="/assets/js/mathjax.js"></script>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_pager(context):
__M_caller = context.caller_stack._push_frame()
try:
prevlink = context.get('prevlink', UNDEFINED)
nextlink = context.get('nextlink', UNDEFINED)
messages = context.get('messages', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if prevlink or nextlink:
__M_writer(' <nav class="postindexpager">\n <ul class="pager">\n')
if prevlink:
__M_writer(' <li class="previous">\n <a href="')
__M_writer(str(prevlink))
__M_writer('" rel="prev">')
__M_writer(str(messages("Newer posts")))
__M_writer('</a>\n </li>\n')
if nextlink:
__M_writer(' <li class="next">\n <a href="')
__M_writer(str(nextlink))
__M_writer('" rel="next">')
__M_writer(str(messages("Older posts")))
__M_writer('</a>\n </li>\n')
__M_writer(' </ul>\n </nav>\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/index_helper.tmpl", "line_map": {"68": 62, "15": 0, "20": 19, "21": 27, "27": 21, "32": 21, "33": 22, "34": 23, "40": 2, "47": 2, "48": 3, "49": 4, "50": 6, "51": 7, "52": 8, "53": 8, "54": 8, "55": 8, "56": 11, "57": 12, "58": 13, "59": 13, "60": 13, "61": 13, "62": 16}, "uri": "index_helper.tmpl"}
__M_END_METADATA
"""

82
cache/.mako.tmp/list.tmpl.py vendored Normal file
View file

@ -0,0 +1,82 @@
# -*- 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 = 1433908605.7963426
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/list.tmpl'
_template_uri = 'list.tmpl'
_source_encoding = 'utf-8'
_exports = ['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):
pass
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)
def content():
return render_content(context._locals(__M_locals))
items = context.get('items', UNDEFINED)
messages = context.get('messages', UNDEFINED)
title = context.get('title', UNDEFINED)
__M_writer = context.writer()
__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_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
def content():
return render_content(context)
items = context.get('items', UNDEFINED)
messages = context.get('messages', UNDEFINED)
title = context.get('title', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n<article class="listpage">\n <header>\n <h1>')
__M_writer(str(title))
__M_writer('</h1>\n </header>\n')
if items:
__M_writer(' <ul class="postlist">\n')
for text, link in items:
__M_writer(' <li><a href="')
__M_writer(str(link))
__M_writer('">')
__M_writer(str(text))
__M_writer('</a>\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
{"source_encoding": "utf-8", "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/list.tmpl", "line_map": {"64": 12, "65": 12, "66": 12, "67": 14, "68": 15, "69": 16, "70": 16, "71": 16, "72": 18, "78": 72, "26": 0, "36": 2, "41": 19, "47": 4, "56": 4, "57": 7, "58": 7, "59": 9, "60": 10, "61": 11, "62": 12, "63": 12}, "uri": "list.tmpl"}
__M_END_METADATA
"""

90
cache/.mako.tmp/list_post.tmpl.py vendored Normal file
View file

@ -0,0 +1,90 @@
# -*- 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 = 1433908605.8141048
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/list_post.tmpl'
_template_uri = 'list_post.tmpl'
_source_encoding = 'utf-8'
_exports = ['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):
pass
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)
def content():
return render_content(context._locals(__M_locals))
posts = context.get('posts', UNDEFINED)
date_format = context.get('date_format', UNDEFINED)
messages = context.get('messages', UNDEFINED)
title = context.get('title', UNDEFINED)
__M_writer = context.writer()
__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_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
def content():
return render_content(context)
posts = context.get('posts', UNDEFINED)
date_format = context.get('date_format', UNDEFINED)
messages = context.get('messages', UNDEFINED)
title = context.get('title', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n<article class="listpage">\n <header>\n <h1>')
__M_writer(str(title))
__M_writer('</h1>\n </header>\n')
if posts:
__M_writer(' <ul class="postlist">\n')
for post in posts:
__M_writer(' <li><a href="')
__M_writer(str(post.permalink()))
__M_writer('" class="listtitle">')
__M_writer(filters.html_escape(str(post.title())))
__M_writer('</a> <time class="listdate" datetime="')
__M_writer(str(post.date.isoformat()))
__M_writer('" title="')
__M_writer(str(post.formatted_date(date_format)))
__M_writer('">')
__M_writer(str(post.formatted_date(date_format)))
__M_writer('</time></li>\n')
__M_writer(' </ul>\n')
else:
__M_writer(' <p>')
__M_writer(str(messages("No posts found.")))
__M_writer('</p>\n')
__M_writer('</article>\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/list_post.tmpl", "line_map": {"64": 12, "65": 12, "66": 12, "67": 12, "68": 12, "69": 12, "70": 12, "71": 12, "72": 12, "73": 12, "74": 12, "75": 14, "76": 15, "77": 16, "78": 16, "79": 16, "80": 18, "86": 80, "26": 0, "37": 2, "42": 19, "48": 4, "58": 4, "59": 7, "60": 7, "61": 9, "62": 10, "63": 11}, "uri": "list_post.tmpl"}
__M_END_METADATA
"""

129
cache/.mako.tmp/listing.tmpl.py vendored Normal file
View file

@ -0,0 +1,129 @@
# -*- 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 = 1433908600.3600838
_enable_loop = True
_template_filename = 'themes/cyborg/templates/listing.tmpl'
_template_uri = 'listing.tmpl'
_source_encoding = 'utf-8'
_exports = ['content', 'sourcelink']
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('ui', context._clean_inheritance_tokens(), templateuri='crumbs.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'ui')] = 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, 'ui')._populate(_import_ns, ['bar'])
def content():
return render_content(context._locals(__M_locals))
source_link = _import_ns.get('source_link', context.get('source_link', UNDEFINED))
files = _import_ns.get('files', context.get('files', UNDEFINED))
def sourcelink():
return render_sourcelink(context._locals(__M_locals))
ui = _mako_get_namespace(context, 'ui')
crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED))
folders = _import_ns.get('folders', context.get('folders', UNDEFINED))
messages = _import_ns.get('messages', context.get('messages', UNDEFINED))
code = _import_ns.get('code', context.get('code', UNDEFINED))
__M_writer = context.writer()
__M_writer('\n')
__M_writer('\n\n')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'):
context['self'].content(**pageargs)
__M_writer('\n\n')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'sourcelink'):
context['self'].sourcelink(**pageargs)
__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, 'ui')._populate(_import_ns, ['bar'])
def content():
return render_content(context)
files = _import_ns.get('files', context.get('files', UNDEFINED))
ui = _mako_get_namespace(context, 'ui')
crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED))
folders = _import_ns.get('folders', context.get('folders', UNDEFINED))
code = _import_ns.get('code', context.get('code', UNDEFINED))
__M_writer = context.writer()
__M_writer('\n')
__M_writer(str(ui.bar(crumbs)))
__M_writer('\n')
if folders or files:
__M_writer('<ul class="list-unstyled">\n')
for name in folders:
__M_writer(' <li><a href="')
__M_writer(str(name))
__M_writer('"><i class="glyphicon glyphicon-folder-open"></i> ')
__M_writer(str(name))
__M_writer('</a>\n')
for name in files:
__M_writer(' <li><a href="')
__M_writer(str(name))
__M_writer('.html"><i class="glyphicon glyphicon-file"></i> ')
__M_writer(str(name))
__M_writer('</a>\n')
__M_writer('</ul>\n')
if code:
__M_writer(' ')
__M_writer(str(code))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_sourcelink(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
_import_ns = {}
_mako_get_namespace(context, 'ui')._populate(_import_ns, ['bar'])
messages = _import_ns.get('messages', context.get('messages', UNDEFINED))
source_link = _import_ns.get('source_link', context.get('source_link', UNDEFINED))
def sourcelink():
return render_sourcelink(context)
__M_writer = context.writer()
__M_writer('\n')
if source_link:
__M_writer(' <li>\n <a href="')
__M_writer(str(source_link))
__M_writer('" id="sourcelink">')
__M_writer(str(messages("Source")))
__M_writer('</a>\n </li>\n')
return ''
finally:
context.caller_stack._pop_frame()
"""
__M_BEGIN_METADATA
{"source_encoding": "utf-8", "filename": "themes/cyborg/templates/listing.tmpl", "line_map": {"22": 3, "76": 5, "77": 6, "78": 6, "79": 7, "80": 8, "81": 9, "82": 10, "83": 10, "84": 10, "85": 10, "86": 10, "87": 12, "88": 13, "89": 13, "90": 13, "91": 13, "28": 0, "93": 15, "94": 17, "95": 18, "96": 18, "97": 18, "116": 25, "103": 22, "92": 13, "46": 2, "47": 3, "113": 22, "114": 23, "115": 24, "52": 20, "117": 25, "118": 25, "119": 25, "57": 28, "125": 119, "63": 5}, "uri": "listing.tmpl"}
__M_END_METADATA
"""

190
cache/.mako.tmp/post.tmpl.py vendored Normal file
View file

@ -0,0 +1,190 @@
# -*- 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.6545436
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/bootstrap/templates/post.tmpl'
_template_uri = 'post.tmpl'
_source_encoding = 'utf-8'
_exports = ['content', 'sourcelink', 'extra_head']
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('comments', context._clean_inheritance_tokens(), templateuri='comments_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'comments')] = ns
ns = runtime.TemplateNamespace('helper', context._clean_inheritance_tokens(), templateuri='post_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'helper')] = ns
ns = runtime.TemplateNamespace('pheader', context._clean_inheritance_tokens(), templateuri='post_header.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'pheader')] = 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)
def content():
return render_content(context._locals(__M_locals))
site_has_comments = context.get('site_has_comments', UNDEFINED)
post = context.get('post', UNDEFINED)
parent = context.get('parent', UNDEFINED)
pheader = _mako_get_namespace(context, 'pheader')
comments = _mako_get_namespace(context, 'comments')
def sourcelink():
return render_sourcelink(context._locals(__M_locals))
def extra_head():
return render_extra_head(context._locals(__M_locals))
show_sourcelink = context.get('show_sourcelink', UNDEFINED)
messages = context.get('messages', UNDEFINED)
helper = _mako_get_namespace(context, 'helper')
__M_writer = context.writer()
__M_writer('\n')
__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\n')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'sourcelink'):
context['self'].sourcelink(**pageargs)
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
def content():
return render_content(context)
site_has_comments = context.get('site_has_comments', UNDEFINED)
post = context.get('post', UNDEFINED)
messages = context.get('messages', UNDEFINED)
pheader = _mako_get_namespace(context, 'pheader')
comments = _mako_get_namespace(context, 'comments')
helper = _mako_get_namespace(context, 'helper')
__M_writer = context.writer()
__M_writer('\n<article class="post-')
__M_writer(str(post.meta('type')))
__M_writer(' h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article">\n ')
__M_writer(str(pheader.html_post_header()))
__M_writer('\n <div class="e-content entry-content" itemprop="articleBody text">\n ')
__M_writer(str(post.text()))
__M_writer('\n </div>\n <aside class="postpromonav">\n <nav>\n ')
__M_writer(str(helper.html_tags(post)))
__M_writer('\n ')
__M_writer(str(helper.html_pager(post)))
__M_writer('\n </nav>\n </aside>\n')
if not post.meta('nocomments') and site_has_comments:
__M_writer(' <section class="comments">\n <h2>')
__M_writer(str(messages("Comments")))
__M_writer('</h2>\n ')
__M_writer(str(comments.comment_form(post.permalink(absolute=True), post.title(), post._base_path)))
__M_writer('\n </section>\n')
__M_writer(' ')
__M_writer(str(helper.mathjax_script(post)))
__M_writer('\n</article>\n')
__M_writer(str(comments.comment_link_script()))
__M_writer('\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_sourcelink(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
show_sourcelink = context.get('show_sourcelink', UNDEFINED)
messages = context.get('messages', UNDEFINED)
post = context.get('post', UNDEFINED)
def sourcelink():
return render_sourcelink(context)
__M_writer = context.writer()
__M_writer('\n')
if show_sourcelink:
__M_writer(' <li>\n <a href="')
__M_writer(str(post.source_link()))
__M_writer('" id="sourcelink">')
__M_writer(str(messages("Source")))
__M_writer('</a>\n </li>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_extra_head(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
parent = context.get('parent', UNDEFINED)
helper = _mako_get_namespace(context, 'helper')
post = context.get('post', UNDEFINED)
def extra_head():
return render_extra_head(context)
__M_writer = context.writer()
__M_writer('\n ')
__M_writer(str(parent.extra_head()))
__M_writer('\n')
if post.meta('keywords'):
__M_writer(' <meta name="keywords" content="')
__M_writer(filters.html_escape(str(post.meta('keywords'))))
__M_writer('">\n')
if post.description():
__M_writer(' <meta name="description" itemprop="description" content="')
__M_writer(str(post.description()))
__M_writer('">\n')
__M_writer(' <meta name="author" content="')
__M_writer(str(post.author()))
__M_writer('">\n')
if post.prev_post:
__M_writer(' <link rel="prev" href="')
__M_writer(str(post.prev_post.permalink()))
__M_writer('" title="')
__M_writer(filters.html_escape(str(post.prev_post.title())))
__M_writer('" type="text/html">\n')
if post.next_post:
__M_writer(' <link rel="next" href="')
__M_writer(str(post.next_post.permalink()))
__M_writer('" title="')
__M_writer(filters.html_escape(str(post.next_post.title())))
__M_writer('" type="text/html">\n')
if post.is_draft:
__M_writer(' <meta name="robots" content="noindex">\n')
__M_writer(' ')
__M_writer(str(helper.open_graph_metadata(post)))
__M_writer('\n ')
__M_writer(str(helper.twitter_card_information(post)))
__M_writer('\n ')
__M_writer(str(helper.meta_translations(post)))
__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/bootstrap/templates/post.tmpl", "line_map": {"128": 56, "129": 56, "130": 56, "131": 56, "150": 10, "162": 17, "137": 7, "146": 7, "147": 8, "148": 8, "149": 9, "22": 4, "151": 10, "152": 10, "25": 2, "154": 13, "155": 13, "28": 3, "157": 15, "158": 15, "159": 15, "160": 16, "161": 17, "34": 0, "163": 17, "164": 17, "165": 17, "166": 19, "167": 20, "168": 20, "156": 13, "170": 20, "171": 20, "172": 22, "173": 23, "174": 25, "175": 25, "176": 25, "177": 26, "178": 26, "179": 27, "180": 27, "53": 2, "54": 3, "55": 4, "56": 5, "186": 180, "61": 28, "66": 51, "71": 59, "77": 30, "89": 30, "90": 31, "91": 31, "92": 32, "93": 32, "94": 34, "95": 34, "96": 38, "97": 38, "98": 39, "99": 39, "100": 42, "101": 43, "102": 44, "103": 44, "104": 45, "105": 45, "106": 48, "107": 48, "108": 48, "109": 50, "110": 50, "116": 53, "169": 20, "153": 12, "125": 53, "126": 54, "127": 55}, "uri": "post.tmpl"}
__M_END_METADATA
"""

166
cache/.mako.tmp/post_header.tmpl.py vendored Normal file
View file

@ -0,0 +1,166 @@
# -*- 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.7192698
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_header.tmpl'
_template_uri = 'post_header.tmpl'
_source_encoding = 'utf-8'
_exports = ['html_post_header', 'html_title', 'html_translations', 'html_sourcelink']
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('helper', context._clean_inheritance_tokens(), templateuri='post_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'helper')] = ns
ns = runtime.TemplateNamespace('comments', context._clean_inheritance_tokens(), templateuri='comments_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'comments')] = ns
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')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_post_header(context):
__M_caller = context.caller_stack._push_frame()
try:
def html_title():
return render_html_title(context)
site_has_comments = context.get('site_has_comments', UNDEFINED)
post = context.get('post', UNDEFINED)
comments = _mako_get_namespace(context, 'comments')
def html_sourcelink():
return render_html_sourcelink(context)
date_format = context.get('date_format', UNDEFINED)
def html_translations(post):
return render_html_translations(context,post)
messages = context.get('messages', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n <header>\n ')
__M_writer(str(html_title()))
__M_writer('\n <div class="metadata">\n <p class="byline author vcard"><span class="byline-name fn">')
__M_writer(str(post.author()))
__M_writer('</span></p>\n <p class="dateline"><a href="')
__M_writer(str(post.permalink()))
__M_writer('" rel="bookmark"><time class="published dt-published" datetime="')
__M_writer(str(post.date.isoformat()))
__M_writer('" itemprop="datePublished" title="')
__M_writer(str(post.formatted_date(date_format)))
__M_writer('">')
__M_writer(str(post.formatted_date(date_format)))
__M_writer('</time></a></p>\n')
if not post.meta('nocomments') and site_has_comments:
__M_writer(' <p class="commentline">')
__M_writer(str(comments.comment_link(post.permalink(), post._base_path)))
__M_writer('\n')
__M_writer(' ')
__M_writer(str(html_sourcelink()))
__M_writer('\n')
if post.meta('link'):
__M_writer(" <p><a href='")
__M_writer(str(post.meta('link')))
__M_writer("'>")
__M_writer(str(messages("Original site")))
__M_writer('</a></p>\n')
if post.description():
__M_writer(' <meta name="description" itemprop="description" content="')
__M_writer(str(post.description()))
__M_writer('">\n')
__M_writer(' </div>\n ')
__M_writer(str(html_translations(post)))
__M_writer('\n </header>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_title(context):
__M_caller = context.caller_stack._push_frame()
try:
title = context.get('title', UNDEFINED)
post = context.get('post', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if title and not post.meta('hidetitle'):
__M_writer(' <h1 class="p-name entry-title" itemprop="headline name"><a href="')
__M_writer(str(post.permalink()))
__M_writer('" class="u-url">')
__M_writer(filters.html_escape(str(post.title())))
__M_writer('</a></h1>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_translations(context,post):
__M_caller = context.caller_stack._push_frame()
try:
len = context.get('len', UNDEFINED)
messages = context.get('messages', UNDEFINED)
translations = context.get('translations', UNDEFINED)
lang = context.get('lang', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if len(post.translated_to) > 1:
__M_writer(' <div class="metadata posttranslations translations">\n <h3 class="posttranslations-intro">')
__M_writer(str(messages("Also available in:")))
__M_writer('</h3>\n')
for langname in translations.keys():
if langname != lang and post.is_translation_available(langname):
__M_writer(' <p><a href="')
__M_writer(str(post.permalink(langname)))
__M_writer('" rel="alternate" hreflang="')
__M_writer(str(langname))
__M_writer('">')
__M_writer(str(messages("LANGUAGE", langname)))
__M_writer('</a></p>\n')
__M_writer(' </div>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_html_sourcelink(context):
__M_caller = context.caller_stack._push_frame()
try:
messages = context.get('messages', UNDEFINED)
post = context.get('post', UNDEFINED)
show_sourcelink = context.get('show_sourcelink', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if show_sourcelink:
__M_writer(' <p class="sourceline"><a href="')
__M_writer(str(post.source_link()))
__M_writer('" id="sourcelink">')
__M_writer(str(messages("Source")))
__M_writer('</a></p>\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_header.tmpl", "line_map": {"128": 15, "129": 16, "130": 17, "131": 17, "132": 17, "133": 17, "134": 17, "135": 17, "136": 17, "137": 20, "143": 24, "22": 2, "151": 25, "152": 26, "25": 3, "154": 26, "155": 26, "28": 0, "150": 24, "33": 2, "34": 3, "35": 9, "36": 22, "37": 28, "38": 49, "156": 26, "44": 30, "162": 156, "59": 30, "60": 32, "61": 32, "62": 34, "63": 34, "64": 35, "65": 35, "66": 35, "67": 35, "68": 35, "69": 35, "70": 35, "71": 35, "72": 36, "73": 37, "74": 37, "75": 37, "76": 39, "77": 39, "78": 39, "79": 40, "80": 41, "81": 41, "82": 41, "83": 41, "84": 41, "85": 43, "86": 44, "87": 44, "88": 44, "89": 46, "90": 47, "91": 47, "97": 5, "103": 5, "104": 6, "105": 7, "106": 7, "107": 7, "108": 7, "109": 7, "115": 11, "153": 26, "123": 11, "124": 12, "125": 13, "126": 14, "127": 14}, "uri": "post_header.tmpl"}
__M_END_METADATA
"""

199
cache/.mako.tmp/post_helper.tmpl.py vendored Normal file
View file

@ -0,0 +1,199 @@
# -*- 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(' <script type="text/x-mathjax-config">\n MathJax.Hub.Config({tex2jax: {inlineMath: [[\'$latex \',\'$\'], [\'\\\\(\',\'\\\\)\']]}});</script>\n <script src="/assets/js/mathjax.js"></script>\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(' <link rel="alternate" hreflang="')
__M_writer(str(langname))
__M_writer('" href="')
__M_writer(str(post.permalink(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(' <meta property="og:site_name" content="')
__M_writer(striphtml(str(blog_title)))
__M_writer('">\n <meta property="og:title" content="')
__M_writer(filters.html_escape(str(post.title()[:70])))
__M_writer('">\n <meta property="og:url" content="')
__M_writer(str(abs_link(permalink)))
__M_writer('">\n')
if post.description():
__M_writer(' <meta property="og:description" content="')
__M_writer(filters.html_escape(str(post.description()[:200])))
__M_writer('">\n')
else:
__M_writer(' <meta property="og:description" content="')
__M_writer(filters.html_escape(str(post.text(strip_html=True)[:200])))
__M_writer('">\n')
if post.previewimage:
__M_writer(' <meta property="og:image" content="')
__M_writer(str(url_replacer(permalink, post.previewimage, lang, 'absolute')))
__M_writer('">\n')
__M_writer(' <meta property="og:type" content="article">\n')
if post.date.isoformat():
__M_writer(' <meta property="article:published_time" content="')
__M_writer(str(post.date.isoformat()))
__M_writer('">\n')
if post.tags:
for tag in post.tags:
__M_writer(' <meta property="article:tag" content="')
__M_writer(str(tag))
__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(' <ul class="pager">\n')
if post.prev_post:
__M_writer(' <li class="previous">\n <a href="')
__M_writer(str(post.prev_post.permalink()))
__M_writer('" rel="prev" title="')
__M_writer(filters.html_escape(str(post.prev_post.title())))
__M_writer('">')
__M_writer(str(messages("Previous post")))
__M_writer('</a>\n </li>\n')
if post.next_post:
__M_writer(' <li class="next">\n <a href="')
__M_writer(str(post.next_post.permalink()))
__M_writer('" rel="next" title="')
__M_writer(filters.html_escape(str(post.next_post.title())))
__M_writer('">')
__M_writer(str(messages("Next post")))
__M_writer('</a>\n </li>\n')
__M_writer(' </ul>\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(' <ul itemprop="keywords" class="tags">\n')
for tag in post.tags:
if tag not in hidden_tags:
__M_writer(' <li><a class="tag p-category" href="')
__M_writer(str(_link('tag', tag)))
__M_writer('" rel="tag">')
__M_writer(str(tag))
__M_writer('</a></li>\n')
__M_writer(' </ul>\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(' <meta name="twitter:card" content="')
__M_writer(filters.html_escape(str(twitter_card.get('card', 'summary'))))
__M_writer('">\n')
if 'site:id' in twitter_card:
__M_writer(' <meta name="twitter:site:id" content="')
__M_writer(str(twitter_card['site:id']))
__M_writer('">\n')
elif 'site' in twitter_card:
__M_writer(' <meta name="twitter:site" content="')
__M_writer(str(twitter_card['site']))
__M_writer('">\n')
if 'creator:id' in twitter_card:
__M_writer(' <meta name="twitter:creator:id" content="')
__M_writer(str(twitter_card['creator:id']))
__M_writer('">\n')
elif 'creator' in twitter_card:
__M_writer(' <meta name="twitter:creator" content="')
__M_writer(str(twitter_card['creator']))
__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
"""

100
cache/.mako.tmp/story.tmpl.py vendored Normal file
View file

@ -0,0 +1,100 @@
# -*- 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 = 1433908607.5537312
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/story.tmpl'
_template_uri = 'story.tmpl'
_source_encoding = 'utf-8'
_exports = ['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('comments', context._clean_inheritance_tokens(), templateuri='comments_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'comments')] = ns
ns = runtime.TemplateNamespace('helper', context._clean_inheritance_tokens(), templateuri='post_helper.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'helper')] = ns
ns = runtime.TemplateNamespace('pheader', context._clean_inheritance_tokens(), templateuri='post_header.tmpl', callables=None, calling_uri=_template_uri)
context.namespaces[(__name__, 'pheader')] = ns
def _mako_inherit(template, context):
_mako_generate_namespaces(context)
return runtime._inherit_from(context, 'post.tmpl', _template_uri)
def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
__M_locals = __M_dict_builtin(pageargs=pageargs)
def content():
return render_content(context._locals(__M_locals))
site_has_comments = context.get('site_has_comments', UNDEFINED)
enable_comments = context.get('enable_comments', UNDEFINED)
post = context.get('post', UNDEFINED)
pheader = _mako_get_namespace(context, 'pheader')
comments = _mako_get_namespace(context, 'comments')
messages = context.get('messages', UNDEFINED)
helper = _mako_get_namespace(context, 'helper')
__M_writer = context.writer()
__M_writer('\n')
__M_writer('\n')
__M_writer('\n')
__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_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
def content():
return render_content(context)
site_has_comments = context.get('site_has_comments', UNDEFINED)
enable_comments = context.get('enable_comments', UNDEFINED)
post = context.get('post', UNDEFINED)
pheader = _mako_get_namespace(context, 'pheader')
comments = _mako_get_namespace(context, 'comments')
messages = context.get('messages', UNDEFINED)
helper = _mako_get_namespace(context, 'helper')
__M_writer = context.writer()
__M_writer('\n<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article">\n <header>\n ')
__M_writer(str(pheader.html_title()))
__M_writer('\n ')
__M_writer(str(pheader.html_translations(post)))
__M_writer('\n </header>\n <div class="e-content entry-content" itemprop="articleBody text">\n ')
__M_writer(str(post.text()))
__M_writer('\n </div>\n')
if site_has_comments and enable_comments and not post.meta('nocomments'):
__M_writer(' <section class="comments">\n <h2>')
__M_writer(str(messages("Comments")))
__M_writer('</h2>\n ')
__M_writer(str(comments.comment_form(post.permalink(absolute=True), post.title(), post.base_path)))
__M_writer('\n </section>\n')
__M_writer(' ')
__M_writer(str(helper.mathjax_script(post)))
__M_writer('\n</article>\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/story.tmpl", "line_map": {"86": 19, "75": 7, "76": 10, "77": 10, "78": 11, "79": 11, "80": 14, "81": 14, "82": 16, "83": 17, "84": 18, "85": 18, "22": 4, "87": 19, "88": 22, "25": 2, "90": 22, "28": 3, "96": 90, "34": 0, "48": 2, "49": 3, "50": 4, "51": 5, "89": 22, "56": 24, "62": 7}, "uri": "story.tmpl"}
__M_END_METADATA
"""

184
cache/.mako.tmp/tag.tmpl.py vendored Normal file
View file

@ -0,0 +1,184 @@
# -*- 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 = 1433908608.2580645
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/tag.tmpl'
_template_uri = 'tag.tmpl'
_source_encoding = 'utf-8'
_exports = ['content', 'extra_head']
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):
pass
def _mako_inherit(template, context):
_mako_generate_namespaces(context)
return runtime._inherit_from(context, 'list_post.tmpl', _template_uri)
def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
__M_locals = __M_dict_builtin(pageargs=pageargs)
def content():
return render_content(context._locals(__M_locals))
description = context.get('description', UNDEFINED)
title = context.get('title', UNDEFINED)
kind = context.get('kind', UNDEFINED)
parent = context.get('parent', UNDEFINED)
tag = context.get('tag', UNDEFINED)
_link = context.get('_link', UNDEFINED)
generate_rss = context.get('generate_rss', UNDEFINED)
subcategories = context.get('subcategories', UNDEFINED)
def extra_head():
return render_extra_head(context._locals(__M_locals))
date_format = context.get('date_format', UNDEFINED)
posts = context.get('posts', UNDEFINED)
len = context.get('len', UNDEFINED)
messages = context.get('messages', UNDEFINED)
translations = context.get('translations', UNDEFINED)
__M_writer = context.writer()
__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\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_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
def content():
return render_content(context)
description = context.get('description', UNDEFINED)
title = context.get('title', UNDEFINED)
kind = context.get('kind', UNDEFINED)
tag = context.get('tag', UNDEFINED)
_link = context.get('_link', UNDEFINED)
generate_rss = context.get('generate_rss', UNDEFINED)
subcategories = context.get('subcategories', UNDEFINED)
date_format = context.get('date_format', UNDEFINED)
posts = context.get('posts', UNDEFINED)
messages = context.get('messages', UNDEFINED)
len = context.get('len', UNDEFINED)
translations = context.get('translations', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n<article class="tagpage">\n <header>\n <h1>')
__M_writer(filters.html_escape(str(title)))
__M_writer('</h1>\n')
if description:
__M_writer(' <p>')
__M_writer(str(description))
__M_writer('</p>\n')
if subcategories:
__M_writer(' ')
__M_writer(str(messages('Subcategories:')))
__M_writer('\n <ul>\n')
for name, link in subcategories:
__M_writer(' <li><a href="')
__M_writer(str(link))
__M_writer('">')
__M_writer(str(name))
__M_writer('</a></li>\n')
__M_writer(' </ul>\n')
__M_writer(' <div class="metadata">\n')
if len(translations) > 1 and generate_rss:
for language in translations:
__M_writer(' <p class="feedlink">\n <a href="')
__M_writer(str(_link(kind + "_rss", tag, language)))
__M_writer('" hreflang="')
__M_writer(str(language))
__M_writer('" type="application/rss+xml">')
__M_writer(str(messages('RSS feed', language)))
__M_writer(' (')
__M_writer(str(language))
__M_writer(')</a>&nbsp;\n </p>\n')
elif generate_rss:
__M_writer(' <p class="feedlink"><a href="')
__M_writer(str(_link(kind + "_rss", tag)))
__M_writer('" type="application/rss+xml">')
__M_writer(str(messages('RSS feed')))
__M_writer('</a></p>\n')
__M_writer(' </div>\n </header>\n')
if posts:
__M_writer(' <ul class="postlist">\n')
for post in posts:
__M_writer(' <li><a href="')
__M_writer(str(post.permalink()))
__M_writer('" class="listtitle">')
__M_writer(filters.html_escape(str(post.title())))
__M_writer('</a> <time class="listdate" datetime="')
__M_writer(str(post.date.isoformat()))
__M_writer('" title="')
__M_writer(str(post.formatted_date(date_format)))
__M_writer('">')
__M_writer(str(post.formatted_date(date_format)))
__M_writer('</time></li>\n')
__M_writer(' </ul>\n')
__M_writer('</article>\n')
return ''
finally:
context.caller_stack._pop_frame()
def render_extra_head(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
kind = context.get('kind', UNDEFINED)
parent = context.get('parent', UNDEFINED)
tag = context.get('tag', UNDEFINED)
_link = context.get('_link', UNDEFINED)
generate_rss = context.get('generate_rss', UNDEFINED)
def extra_head():
return render_extra_head(context)
len = context.get('len', UNDEFINED)
translations = context.get('translations', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n ')
__M_writer(str(parent.extra_head()))
__M_writer('\n')
if len(translations) > 1 and generate_rss:
for language in translations:
__M_writer(' <link rel="alternate" type="application/rss+xml" type="application/rss+xml" title="RSS for ')
__M_writer(str(kind))
__M_writer(' ')
__M_writer(str(tag))
__M_writer(' (')
__M_writer(str(language))
__M_writer(')" href="')
__M_writer(str(_link(kind + "_rss", tag, language)))
__M_writer('">\n')
elif generate_rss:
__M_writer(' <link rel="alternate" type="application/rss+xml" type="application/rss+xml" title="RSS for ')
__M_writer(str(kind))
__M_writer(' ')
__M_writer(str(tag))
__M_writer('" href="')
__M_writer(str(_link(kind + "_rss", tag)))
__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/tag.tmpl", "line_map": {"128": 46, "129": 46, "130": 46, "131": 46, "132": 46, "133": 48, "134": 50, "140": 4, "153": 4, "26": 0, "155": 5, "156": 6, "154": 5, "158": 8, "159": 8, "160": 8, "161": 8, "162": 8, "163": 8, "164": 8, "165": 8, "166": 8, "167": 10, "168": 11, "169": 11, "170": 11, "171": 11, "172": 11, "173": 11, "174": 11, "157": 7, "48": 2, "180": 174, "53": 13, "58": 51, "64": 16, "82": 16, "83": 19, "84": 19, "85": 20, "86": 21, "87": 21, "88": 21, "89": 23, "90": 24, "91": 24, "92": 24, "93": 26, "94": 27, "95": 27, "96": 27, "97": 27, "98": 27, "99": 29, "100": 31, "101": 32, "102": 33, "103": 34, "104": 35, "105": 35, "106": 35, "107": 35, "108": 35, "109": 35, "110": 35, "111": 35, "112": 38, "113": 39, "114": 39, "115": 39, "116": 39, "117": 39, "118": 41, "119": 43, "120": 44, "121": 45, "122": 46, "123": 46, "124": 46, "125": 46, "126": 46, "127": 46}, "uri": "tag.tmpl"}
__M_END_METADATA
"""

111
cache/.mako.tmp/tags.tmpl.py vendored Normal file
View file

@ -0,0 +1,111 @@
# -*- 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 = 1433908608.2369065
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/bootstrap/templates/tags.tmpl'
_template_uri = 'tags.tmpl'
_source_encoding = 'utf-8'
_exports = ['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):
pass
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)
def content():
return render_content(context._locals(__M_locals))
title = context.get('title', UNDEFINED)
cat_items = context.get('cat_items', UNDEFINED)
items = context.get('items', UNDEFINED)
range = context.get('range', UNDEFINED)
hidden_tags = context.get('hidden_tags', UNDEFINED)
messages = context.get('messages', UNDEFINED)
len = context.get('len', UNDEFINED)
cat_hierarchy = context.get('cat_hierarchy', UNDEFINED)
__M_writer = context.writer()
__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_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
def content():
return render_content(context)
title = context.get('title', UNDEFINED)
cat_items = context.get('cat_items', UNDEFINED)
items = context.get('items', UNDEFINED)
range = context.get('range', UNDEFINED)
hidden_tags = context.get('hidden_tags', UNDEFINED)
messages = context.get('messages', UNDEFINED)
len = context.get('len', UNDEFINED)
cat_hierarchy = context.get('cat_hierarchy', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n<h1>')
__M_writer(str(title))
__M_writer('</h1>\n')
if cat_items:
if items:
__M_writer(' <h2>')
__M_writer(str(messages("Categories")))
__M_writer('</h2>\n')
for text, full_name, path, link, indent_levels, indent_change_before, indent_change_after in cat_hierarchy:
for i in range(indent_change_before):
__M_writer(' <ul class="unstyled">\n')
__M_writer(' <li><a class="reference badge" href="')
__M_writer(str(link))
__M_writer('">')
__M_writer(str(text))
__M_writer('</a>\n')
if indent_change_after <= 0:
__M_writer(' </li>\n')
for i in range(-indent_change_after):
__M_writer(' </ul>\n')
if i + 1 < len(indent_levels):
__M_writer(' </li>\n')
if items:
__M_writer(' <h2>')
__M_writer(str(messages("Tags")))
__M_writer('</h2>\n')
if items:
__M_writer(' <ul class="list-inline">\n')
for text, link in items:
if text not in hidden_tags:
__M_writer(' <li><a class="reference badge" href="')
__M_writer(str(link))
__M_writer('">')
__M_writer(str(text))
__M_writer('</a></li>\n')
__M_writer(' </ul>\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/bootstrap/templates/tags.tmpl", "line_map": {"66": 4, "67": 5, "68": 5, "69": 6, "70": 7, "71": 8, "72": 8, "73": 8, "74": 10, "75": 11, "76": 12, "77": 14, "78": 14, "79": 14, "80": 14, "81": 14, "82": 15, "83": 16, "84": 18, "85": 19, "86": 20, "87": 21, "88": 25, "89": 26, "26": 0, "91": 26, "92": 29, "90": 26, "94": 31, "95": 32, "96": 33, "97": 33, "98": 33, "99": 33, "100": 33, "101": 36, "41": 2, "107": 101, "46": 38, "93": 30, "52": 4}, "uri": "tags.tmpl"}
__M_END_METADATA
"""