')
__M_writer(str(title))
@@ -77,6 +77,6 @@ def render_content(context,**pageargs):
"""
__M_BEGIN_METADATA
-{"source_encoding": "utf-8", "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", "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}, "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/list.tmpl", "source_encoding": "utf-8", "uri": "list.tmpl"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/list_post.tmpl.py b/cache/.mako.tmp/list_post.tmpl.py
index 56baee52..c5ef7054 100644
--- a/cache/.mako.tmp/list_post.tmpl.py
+++ b/cache/.mako.tmp/list_post.tmpl.py
@@ -4,7 +4,7 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
-_modified_time = 1434096007.909374
+_modified_time = 1434099608.0975869
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/list_post.tmpl'
_template_uri = 'list_post.tmpl'
@@ -27,12 +27,12 @@ def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
__M_locals = __M_dict_builtin(pageargs=pageargs)
- messages = context.get('messages', UNDEFINED)
title = context.get('title', UNDEFINED)
+ posts = context.get('posts', UNDEFINED)
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)
__M_writer = context.writer()
__M_writer('\n\n')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'):
@@ -48,12 +48,12 @@ def render_body(context,**pageargs):
def render_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
- messages = context.get('messages', UNDEFINED)
title = context.get('title', UNDEFINED)
+ posts = context.get('posts', UNDEFINED)
def content():
return render_content(context)
- posts = context.get('posts', UNDEFINED)
date_format = context.get('date_format', UNDEFINED)
+ messages = context.get('messages', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n\n \n ')
__M_writer(str(title))
@@ -85,6 +85,6 @@ def render_content(context,**pageargs):
"""
__M_BEGIN_METADATA
-{"source_encoding": "utf-8", "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", "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}, "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/list_post.tmpl", "source_encoding": "utf-8", "uri": "list_post.tmpl"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/listing.tmpl.py b/cache/.mako.tmp/listing.tmpl.py
index 3b67e310..f1ab53a8 100644
--- a/cache/.mako.tmp/listing.tmpl.py
+++ b/cache/.mako.tmp/listing.tmpl.py
@@ -4,12 +4,12 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
-_modified_time = 1434096007.8628561
+_modified_time = 1434099608.0510387
_enable_loop = True
_template_filename = 'themes/bootstrap3/templates/listing.tmpl'
_template_uri = 'listing.tmpl'
_source_encoding = 'utf-8'
-_exports = ['sourcelink', 'content']
+_exports = ['content', 'sourcelink']
def _mako_get_namespace(context, name):
@@ -31,17 +31,17 @@ def render_body(context,**pageargs):
__M_locals = __M_dict_builtin(pageargs=pageargs)
_import_ns = {}
_mako_get_namespace(context, 'ui')._populate(_import_ns, ['bar'])
- source_link = _import_ns.get('source_link', context.get('source_link', UNDEFINED))
- crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED))
messages = _import_ns.get('messages', context.get('messages', UNDEFINED))
- code = _import_ns.get('code', context.get('code', UNDEFINED))
ui = _mako_get_namespace(context, 'ui')
- folders = _import_ns.get('folders', context.get('folders', UNDEFINED))
def sourcelink():
return render_sourcelink(context._locals(__M_locals))
+ files = _import_ns.get('files', context.get('files', UNDEFINED))
+ code = _import_ns.get('code', context.get('code', UNDEFINED))
def content():
return render_content(context._locals(__M_locals))
- files = _import_ns.get('files', context.get('files', UNDEFINED))
+ folders = _import_ns.get('folders', context.get('folders', UNDEFINED))
+ source_link = _import_ns.get('source_link', context.get('source_link', UNDEFINED))
+ crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED))
__M_writer = context.writer()
__M_writer('\n')
__M_writer('\n\n')
@@ -60,40 +60,18 @@ def render_body(context,**pageargs):
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'])
- source_link = _import_ns.get('source_link', context.get('source_link', UNDEFINED))
- def sourcelink():
- return render_sourcelink(context)
- messages = _import_ns.get('messages', context.get('messages', UNDEFINED))
- __M_writer = context.writer()
- __M_writer('\n')
- if source_link:
- __M_writer('
\n ')
- __M_writer(str(messages("Source")))
- __M_writer('\n \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'])
- crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED))
- code = _import_ns.get('code', context.get('code', UNDEFINED))
ui = _mako_get_namespace(context, 'ui')
- folders = _import_ns.get('folders', context.get('folders', UNDEFINED))
+ files = _import_ns.get('files', context.get('files', UNDEFINED))
+ code = _import_ns.get('code', context.get('code', UNDEFINED))
def content():
return render_content(context)
- files = _import_ns.get('files', context.get('files', UNDEFINED))
+ folders = _import_ns.get('folders', context.get('folders', UNDEFINED))
+ crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED))
__M_writer = context.writer()
__M_writer('\n')
__M_writer(str(ui.bar(crumbs)))
@@ -122,8 +100,30 @@ def render_content(context,**pageargs):
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(' \n ')
+ __M_writer(str(messages("Source")))
+ __M_writer('\n \n')
+ return ''
+ finally:
+ context.caller_stack._pop_frame()
+
+
"""
__M_BEGIN_METADATA
-{"source_encoding": "utf-8", "line_map": {"73": 22, "74": 23, "75": 24, "76": 25, "77": 25, "78": 25, "79": 25, "85": 5, "22": 3, "110": 13, "111": 13, "28": 0, "116": 17, "98": 5, "99": 6, "100": 6, "101": 7, "102": 8, "103": 9, "104": 10, "105": 10, "106": 10, "107": 10, "108": 10, "109": 12, "46": 2, "47": 3, "112": 13, "113": 13, "114": 13, "115": 15, "52": 20, "117": 18, "118": 18, "119": 18, "57": 28, "125": 119, "63": 22}, "uri": "listing.tmpl", "filename": "themes/bootstrap3/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}, "filename": "themes/bootstrap3/templates/listing.tmpl", "source_encoding": "utf-8", "uri": "listing.tmpl"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/post.tmpl.py b/cache/.mako.tmp/post.tmpl.py
index 86d32437..613ce5cd 100644
--- a/cache/.mako.tmp/post.tmpl.py
+++ b/cache/.mako.tmp/post.tmpl.py
@@ -4,7 +4,7 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
-_modified_time = 1434096007.9368937
+_modified_time = 1434099608.1252708
_enable_loop = True
_template_filename = 'themes/bootstrap/templates/post.tmpl'
_template_uri = 'post.tmpl'
@@ -22,12 +22,12 @@ 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('pheader', context._clean_inheritance_tokens(), templateuri='post_header.tmpl', callables=None, calling_uri=_template_uri)
- context.namespaces[(__name__, 'pheader')] = ns
-
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('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)
@@ -35,20 +35,20 @@ def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
__M_locals = __M_dict_builtin(pageargs=pageargs)
+ show_sourcelink = context.get('show_sourcelink', UNDEFINED)
+ site_has_comments = context.get('site_has_comments', UNDEFINED)
+ messages = context.get('messages', UNDEFINED)
+ comments = _mako_get_namespace(context, 'comments')
+ def sourcelink():
+ return render_sourcelink(context._locals(__M_locals))
+ helper = _mako_get_namespace(context, 'helper')
+ def content():
+ return render_content(context._locals(__M_locals))
+ pheader = _mako_get_namespace(context, 'pheader')
+ post = context.get('post', UNDEFINED)
parent = context.get('parent', UNDEFINED)
def extra_head():
return render_extra_head(context._locals(__M_locals))
- comments = _mako_get_namespace(context, 'comments')
- messages = context.get('messages', UNDEFINED)
- show_sourcelink = context.get('show_sourcelink', UNDEFINED)
- post = context.get('post', UNDEFINED)
- helper = _mako_get_namespace(context, 'helper')
- def sourcelink():
- return render_sourcelink(context._locals(__M_locals))
- pheader = _mako_get_namespace(context, 'pheader')
- def content():
- return render_content(context._locals(__M_locals))
- site_has_comments = context.get('site_has_comments', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
__M_writer('\n')
@@ -77,11 +77,11 @@ def render_body(context,**pageargs):
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)
- post = context.get('post', UNDEFINED)
- show_sourcelink = context.get('show_sourcelink', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if show_sourcelink:
@@ -98,14 +98,14 @@ def render_sourcelink(context,**pageargs):
def render_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
+ site_has_comments = context.get('site_has_comments', UNDEFINED)
+ messages = context.get('messages', UNDEFINED)
+ comments = _mako_get_namespace(context, 'comments')
post = context.get('post', UNDEFINED)
helper = _mako_get_namespace(context, 'helper')
- comments = _mako_get_namespace(context, 'comments')
- messages = context.get('messages', UNDEFINED)
- pheader = _mako_get_namespace(context, 'pheader')
def content():
return render_content(context)
- site_has_comments = context.get('site_has_comments', UNDEFINED)
+ pheader = _mako_get_namespace(context, 'pheader')
__M_writer = context.writer()
__M_writer('\n')
- __M_writer(str(messages("Source")))
- __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_translations(post):
- return render_html_translations(context,post)
+ site_has_comments = context.get('site_has_comments', UNDEFINED)
comments = _mako_get_namespace(context, 'comments')
+ messages = context.get('messages', UNDEFINED)
date_format = context.get('date_format', UNDEFINED)
- def html_sourcelink():
- return render_html_sourcelink(context)
+ post = context.get('post', UNDEFINED)
def html_title():
return render_html_title(context)
- messages = context.get('messages', UNDEFINED)
- post = context.get('post', UNDEFINED)
- site_has_comments = context.get('site_has_comments', UNDEFINED)
+ def html_translations(post):
+ return render_html_translations(context,post)
+ def html_sourcelink():
+ return render_html_sourcelink(context)
__M_writer = context.writer()
__M_writer('\n \n ')
__M_writer(str(html_title()))
@@ -113,13 +94,31 @@ def render_html_post_header(context):
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(' ')
+ __M_writer(filters.html_escape(str(post.title())))
+ __M_writer('
\n')
+ return ''
+ finally:
+ context.caller_stack._pop_frame()
+
+
def render_html_translations(context,post):
__M_caller = context.caller_stack._push_frame()
try:
- messages = context.get('messages', UNDEFINED)
- len = context.get('len', UNDEFINED)
- translations = context.get('translations', UNDEFINED)
lang = context.get('lang', UNDEFINED)
+ translations = context.get('translations', UNDEFINED)
+ len = context.get('len', UNDEFINED)
+ messages = context.get('messages', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if len(post.translated_to) > 1:
@@ -141,19 +140,20 @@ def render_html_translations(context,post):
context.caller_stack._pop_frame()
-def render_html_title(context):
+def render_html_sourcelink(context):
__M_caller = context.caller_stack._push_frame()
try:
- title = context.get('title', UNDEFINED)
+ show_sourcelink = context.get('show_sourcelink', UNDEFINED)
+ messages = context.get('messages', UNDEFINED)
post = context.get('post', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
- if title and not post.meta('hidetitle'):
- __M_writer(' ')
- __M_writer(filters.html_escape(str(post.title())))
- __M_writer('
\n')
+ if show_sourcelink:
+ __M_writer(' ')
+ __M_writer(str(messages("Source")))
+ __M_writer('
\n')
return ''
finally:
context.caller_stack._pop_frame()
@@ -161,6 +161,6 @@ def render_html_title(context):
"""
__M_BEGIN_METADATA
-{"source_encoding": "utf-8", "line_map": {"128": 14, "129": 15, "130": 16, "131": 17, "132": 17, "133": 17, "134": 17, "135": 17, "136": 17, "137": 17, "138": 20, "144": 5, "22": 2, "151": 6, "152": 7, "25": 3, "154": 7, "155": 7, "28": 0, "150": 5, "33": 2, "34": 3, "35": 9, "36": 22, "37": 28, "38": 49, "156": 7, "44": 24, "51": 24, "52": 25, "53": 26, "54": 26, "55": 26, "56": 26, "57": 26, "63": 30, "162": 156, "78": 30, "79": 32, "80": 32, "81": 34, "82": 34, "83": 35, "84": 35, "85": 35, "86": 35, "87": 35, "88": 35, "89": 35, "90": 35, "91": 36, "92": 37, "93": 37, "94": 37, "95": 39, "96": 39, "97": 39, "98": 40, "99": 41, "100": 41, "101": 41, "102": 41, "103": 41, "104": 43, "105": 44, "106": 44, "107": 44, "108": 46, "109": 47, "110": 47, "116": 11, "153": 7, "124": 11, "125": 12, "126": 13, "127": 14}, "uri": "post_header.tmpl", "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}, "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_header.tmpl", "source_encoding": "utf-8", "uri": "post_header.tmpl"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/post_helper.tmpl.py b/cache/.mako.tmp/post_helper.tmpl.py
index 40b34526..f0a121d4 100644
--- a/cache/.mako.tmp/post_helper.tmpl.py
+++ b/cache/.mako.tmp/post_helper.tmpl.py
@@ -4,12 +4,12 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
-_modified_time = 1434096007.9683206
+_modified_time = 1434099608.156749
_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 = ['html_pager', 'meta_translations', 'html_tags', 'mathjax_script', 'open_graph_metadata', 'twitter_card_information']
+_exports = ['html_tags', 'html_pager', 'open_graph_metadata', 'meta_translations', 'twitter_card_information', 'mathjax_script']
def render_body(context,**pageargs):
@@ -29,6 +29,28 @@ def render_body(context,**pageargs):
context.caller_stack._pop_frame()
+def render_html_tags(context,post):
+ __M_caller = context.caller_stack._push_frame()
+ try:
+ hidden_tags = context.get('hidden_tags', UNDEFINED)
+ _link = context.get('_link', UNDEFINED)
+ __M_writer = context.writer()
+ __M_writer('\n')
+ if post.tags:
+ __M_writer(' \n')
+ return ''
+ finally:
+ context.caller_stack._pop_frame()
+
+
def render_html_pager(context,post):
__M_caller = context.caller_stack._push_frame()
try:
@@ -59,71 +81,16 @@ def render_html_pager(context,post):
context.caller_stack._pop_frame()
-def render_meta_translations(context,post):
- __M_caller = context.caller_stack._push_frame()
- try:
- len = context.get('len', UNDEFINED)
- translations = context.get('translations', UNDEFINED)
- lang = context.get('lang', UNDEFINED)
- __M_writer = context.writer()
- __M_writer('\n')
- if len(translations) > 1:
- for langname in translations.keys():
- if langname != lang and post.is_translation_available(langname):
- __M_writer(' \n')
- return ''
- finally:
- context.caller_stack._pop_frame()
-
-
-def render_html_tags(context,post):
- __M_caller = context.caller_stack._push_frame()
- try:
- hidden_tags = context.get('hidden_tags', UNDEFINED)
- _link = context.get('_link', UNDEFINED)
- __M_writer = context.writer()
- __M_writer('\n')
- if post.tags:
- __M_writer(' \n')
- return ''
- finally:
- context.caller_stack._pop_frame()
-
-
-def render_mathjax_script(context,post):
- __M_caller = context.caller_stack._push_frame()
- try:
- __M_writer = context.writer()
- __M_writer('\n')
- if post.is_mathjax:
- __M_writer(' \n \n')
- return ''
- finally:
- context.caller_stack._pop_frame()
-
-
def render_open_graph_metadata(context,post):
__M_caller = context.caller_stack._push_frame()
try:
- permalink = context.get('permalink', UNDEFINED)
- abs_link = context.get('abs_link', UNDEFINED)
- use_open_graph = context.get('use_open_graph', UNDEFINED)
- lang = context.get('lang', UNDEFINED)
- striphtml = context.get('striphtml', UNDEFINED)
- url_replacer = context.get('url_replacer', UNDEFINED)
blog_title = context.get('blog_title', UNDEFINED)
+ url_replacer = context.get('url_replacer', UNDEFINED)
+ striphtml = context.get('striphtml', UNDEFINED)
+ use_open_graph = context.get('use_open_graph', UNDEFINED)
+ abs_link = context.get('abs_link', UNDEFINED)
+ lang = context.get('lang', UNDEFINED)
+ permalink = context.get('permalink', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if use_open_graph:
@@ -161,6 +128,27 @@ def render_open_graph_metadata(context,post):
context.caller_stack._pop_frame()
+def render_meta_translations(context,post):
+ __M_caller = context.caller_stack._push_frame()
+ try:
+ lang = context.get('lang', UNDEFINED)
+ translations = context.get('translations', UNDEFINED)
+ len = context.get('len', UNDEFINED)
+ __M_writer = context.writer()
+ __M_writer('\n')
+ if len(translations) > 1:
+ for langname in translations.keys():
+ if langname != lang and post.is_translation_available(langname):
+ __M_writer(' \n')
+ return ''
+ finally:
+ context.caller_stack._pop_frame()
+
+
def render_twitter_card_information(context,post):
__M_caller = context.caller_stack._push_frame()
try:
@@ -192,8 +180,20 @@ def render_twitter_card_information(context,post):
context.caller_stack._pop_frame()
+def render_mathjax_script(context,post):
+ __M_caller = context.caller_stack._push_frame()
+ try:
+ __M_writer = context.writer()
+ __M_writer('\n')
+ if post.is_mathjax:
+ __M_writer(' \n \n')
+ return ''
+ finally:
+ context.caller_stack._pop_frame()
+
+
"""
__M_BEGIN_METADATA
-{"source_encoding": "utf-8", "line_map": {"15": 0, "20": 2, "21": 11, "22": 23, "23": 40, "24": 69, "25": 85, "26": 93, "32": 25, "37": 25, "38": 26, "39": 27, "40": 28, "41": 29, "42": 30, "43": 30, "44": 30, "45": 30, "46": 30, "47": 30, "48": 33, "49": 34, "50": 35, "51": 35, "52": 35, "53": 35, "54": 35, "55": 35, "56": 38, "62": 3, "69": 3, "70": 4, "71": 5, "72": 6, "73": 7, "74": 7, "75": 7, "76": 7, "77": 7, "83": 13, "89": 13, "90": 14, "91": 15, "92": 16, "93": 17, "94": 18, "95": 18, "96": 18, "97": 18, "98": 18, "99": 21, "105": 87, "109": 87, "110": 88, "111": 89, "117": 42, "128": 42, "129": 43, "130": 44, "131": 44, "132": 44, "133": 45, "134": 45, "135": 46, "136": 46, "137": 47, "138": 48, "139": 48, "140": 48, "141": 49, "142": 50, "143": 50, "144": 50, "145": 52, "146": 53, "147": 53, "148": 53, "149": 55, "150": 60, "151": 61, "152": 61, "153": 61, "154": 63, "155": 64, "156": 65, "157": 65, "158": 65, "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", "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": 13, "38": 13, "39": 14, "40": 15, "41": 16, "42": 17, "43": 18, "44": 18, "45": 18, "46": 18, "47": 18, "48": 21, "54": 25, "59": 25, "60": 26, "61": 27, "62": 28, "63": 29, "64": 30, "65": 30, "66": 30, "67": 30, "68": 30, "69": 30, "70": 33, "71": 34, "72": 35, "73": 35, "74": 35, "75": 35, "76": 35, "77": 35, "78": 38, "84": 42, "95": 42, "96": 43, "97": 44, "98": 44, "99": 44, "100": 45, "101": 45, "102": 46, "103": 46, "104": 47, "105": 48, "106": 48, "107": 48, "108": 49, "109": 50, "110": 50, "111": 50, "112": 52, "113": 53, "114": 53, "115": 53, "116": 55, "117": 60, "118": 61, "119": 61, "120": 61, "121": 63, "122": 64, "123": 65, "124": 65, "125": 65, "131": 3, "138": 3, "139": 4, "140": 5, "141": 6, "142": 7, "143": 7, "144": 7, "145": 7, "146": 7, "152": 71, "157": 71, "158": 72, "159": 73, "160": 73, "161": 73, "162": 74, "163": 75, "164": 75, "165": 75, "166": 76, "167": 77, "168": 77, "169": 77, "170": 79, "171": 80, "172": 80, "173": 80, "174": 81, "175": 82, "176": 82, "177": 82, "183": 87, "187": 87, "188": 88, "189": 89, "195": 189}, "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_helper.tmpl", "source_encoding": "utf-8", "uri": "post_helper.tmpl"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/story.tmpl.py b/cache/.mako.tmp/story.tmpl.py
index 8c7c8057..5ef47a44 100644
--- a/cache/.mako.tmp/story.tmpl.py
+++ b/cache/.mako.tmp/story.tmpl.py
@@ -4,7 +4,7 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
-_modified_time = 1434096008.024417
+_modified_time = 1434099608.2131305
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/story.tmpl'
_template_uri = 'story.tmpl'
@@ -22,12 +22,12 @@ 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('pheader', context._clean_inheritance_tokens(), templateuri='post_header.tmpl', callables=None, calling_uri=_template_uri)
- context.namespaces[(__name__, 'pheader')] = ns
-
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('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)
@@ -35,15 +35,15 @@ def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
__M_locals = __M_dict_builtin(pageargs=pageargs)
- enable_comments = context.get('enable_comments', UNDEFINED)
- comments = _mako_get_namespace(context, 'comments')
+ site_has_comments = context.get('site_has_comments', UNDEFINED)
messages = context.get('messages', UNDEFINED)
- post = context.get('post', UNDEFINED)
+ comments = _mako_get_namespace(context, 'comments')
helper = _mako_get_namespace(context, 'helper')
- pheader = _mako_get_namespace(context, 'pheader')
def content():
return render_content(context._locals(__M_locals))
- site_has_comments = context.get('site_has_comments', UNDEFINED)
+ pheader = _mako_get_namespace(context, 'pheader')
+ post = context.get('post', UNDEFINED)
+ enable_comments = context.get('enable_comments', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
__M_writer('\n')
@@ -62,15 +62,15 @@ def render_body(context,**pageargs):
def render_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
- enable_comments = context.get('enable_comments', UNDEFINED)
- comments = _mako_get_namespace(context, 'comments')
+ site_has_comments = context.get('site_has_comments', UNDEFINED)
messages = context.get('messages', UNDEFINED)
- post = context.get('post', UNDEFINED)
+ comments = _mako_get_namespace(context, 'comments')
helper = _mako_get_namespace(context, 'helper')
- pheader = _mako_get_namespace(context, 'pheader')
def content():
return render_content(context)
- site_has_comments = context.get('site_has_comments', UNDEFINED)
+ pheader = _mako_get_namespace(context, 'pheader')
+ post = context.get('post', UNDEFINED)
+ enable_comments = context.get('enable_comments', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n\n \n ')
__M_writer(str(pheader.html_title()))
@@ -95,6 +95,6 @@ def render_content(context,**pageargs):
"""
__M_BEGIN_METADATA
-{"source_encoding": "utf-8", "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": 2, "87": 19, "88": 22, "25": 3, "90": 22, "28": 4, "96": 90, "34": 0, "48": 2, "49": 3, "50": 4, "51": 5, "89": 22, "56": 24, "62": 7}, "uri": "story.tmpl", "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": 2, "87": 19, "88": 22, "25": 4, "90": 22, "28": 3, "96": 90, "34": 0, "48": 2, "49": 3, "50": 4, "51": 5, "89": 22, "56": 24, "62": 7}, "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/story.tmpl", "source_encoding": "utf-8", "uri": "story.tmpl"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/tag.tmpl.py b/cache/.mako.tmp/tag.tmpl.py
index a07de503..230cafab 100644
--- a/cache/.mako.tmp/tag.tmpl.py
+++ b/cache/.mako.tmp/tag.tmpl.py
@@ -4,7 +4,7 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
-_modified_time = 1434096008.0773354
+_modified_time = 1434099608.266137
_enable_loop = True
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/tag.tmpl'
_template_uri = 'tag.tmpl'
@@ -27,23 +27,23 @@ def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
__M_locals = __M_dict_builtin(pageargs=pageargs)
+ _link = context.get('_link', UNDEFINED)
+ messages = context.get('messages', UNDEFINED)
+ title = context.get('title', UNDEFINED)
+ translations = context.get('translations', UNDEFINED)
+ len = context.get('len', UNDEFINED)
+ def content():
+ return render_content(context._locals(__M_locals))
+ subcategories = context.get('subcategories', UNDEFINED)
+ tag = context.get('tag', UNDEFINED)
+ kind = context.get('kind', UNDEFINED)
+ description = context.get('description', UNDEFINED)
+ posts = context.get('posts', UNDEFINED)
+ date_format = context.get('date_format', UNDEFINED)
parent = context.get('parent', UNDEFINED)
generate_rss = context.get('generate_rss', UNDEFINED)
def extra_head():
return render_extra_head(context._locals(__M_locals))
- date_format = context.get('date_format', UNDEFINED)
- messages = context.get('messages', UNDEFINED)
- title = context.get('title', UNDEFINED)
- subcategories = context.get('subcategories', UNDEFINED)
- tag = context.get('tag', UNDEFINED)
- _link = context.get('_link', UNDEFINED)
- len = context.get('len', UNDEFINED)
- translations = context.get('translations', UNDEFINED)
- description = context.get('description', UNDEFINED)
- posts = context.get('posts', UNDEFINED)
- def content():
- return render_content(context._locals(__M_locals))
- kind = context.get('kind', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n\n')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_head'):
@@ -64,20 +64,20 @@ def render_body(context,**pageargs):
def render_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
- generate_rss = context.get('generate_rss', UNDEFINED)
- date_format = context.get('date_format', UNDEFINED)
messages = context.get('messages', UNDEFINED)
title = context.get('title', UNDEFINED)
- subcategories = context.get('subcategories', UNDEFINED)
- tag = context.get('tag', UNDEFINED)
- _link = context.get('_link', UNDEFINED)
- len = context.get('len', UNDEFINED)
translations = context.get('translations', UNDEFINED)
- description = context.get('description', UNDEFINED)
- posts = context.get('posts', UNDEFINED)
def content():
return render_content(context)
+ len = context.get('len', UNDEFINED)
+ subcategories = context.get('subcategories', UNDEFINED)
+ tag = context.get('tag', UNDEFINED)
kind = context.get('kind', UNDEFINED)
+ description = context.get('description', UNDEFINED)
+ posts = context.get('posts', UNDEFINED)
+ date_format = context.get('date_format', UNDEFINED)
+ generate_rss = context.get('generate_rss', UNDEFINED)
+ _link = context.get('_link', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n\n \n ')
__M_writer(filters.html_escape(str(title)))
@@ -140,15 +140,15 @@ def render_content(context,**pageargs):
def render_extra_head(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
+ _link = context.get('_link', UNDEFINED)
+ translations = context.get('translations', UNDEFINED)
+ len = context.get('len', UNDEFINED)
+ tag = context.get('tag', UNDEFINED)
+ kind = context.get('kind', UNDEFINED)
parent = context.get('parent', UNDEFINED)
generate_rss = context.get('generate_rss', UNDEFINED)
def extra_head():
return render_extra_head(context)
- tag = context.get('tag', UNDEFINED)
- _link = context.get('_link', UNDEFINED)
- len = context.get('len', UNDEFINED)
- translations = context.get('translations', UNDEFINED)
- kind = context.get('kind', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n ')
__M_writer(str(parent.extra_head()))
@@ -179,6 +179,6 @@ def render_extra_head(context,**pageargs):
"""
__M_BEGIN_METADATA
-{"source_encoding": "utf-8", "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", "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}, "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/tag.tmpl", "source_encoding": "utf-8", "uri": "tag.tmpl"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/tags.tmpl.py b/cache/.mako.tmp/tags.tmpl.py
index 46be4928..1697b78b 100644
--- a/cache/.mako.tmp/tags.tmpl.py
+++ b/cache/.mako.tmp/tags.tmpl.py
@@ -4,7 +4,7 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
-_modified_time = 1434096008.0579374
+_modified_time = 1434099608.2466552
_enable_loop = True
_template_filename = 'themes/bootstrap/templates/tags.tmpl'
_template_uri = 'tags.tmpl'
@@ -27,12 +27,12 @@ def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
__M_locals = __M_dict_builtin(pageargs=pageargs)
- messages = context.get('messages', UNDEFINED)
- cat_items = context.get('cat_items', UNDEFINED)
title = context.get('title', UNDEFINED)
- items = context.get('items', UNDEFINED)
+ cat_items = context.get('cat_items', UNDEFINED)
def content():
return render_content(context._locals(__M_locals))
+ messages = context.get('messages', UNDEFINED)
+ items = context.get('items', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n\n')
if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'):
@@ -48,12 +48,12 @@ def render_body(context,**pageargs):
def render_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
- messages = context.get('messages', UNDEFINED)
- cat_items = context.get('cat_items', UNDEFINED)
title = context.get('title', UNDEFINED)
- items = context.get('items', UNDEFINED)
+ cat_items = context.get('cat_items', UNDEFINED)
def content():
return render_content(context)
+ messages = context.get('messages', UNDEFINED)
+ items = context.get('items', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
__M_writer(str(title))
@@ -90,6 +90,6 @@ def render_content(context,**pageargs):
"""
__M_BEGIN_METADATA
-{"source_encoding": "utf-8", "line_map": {"64": 7, "65": 9, "66": 10, "67": 11, "68": 11, "69": 11, "70": 11, "71": 11, "72": 14, "73": 15, "74": 16, "75": 16, "76": 16, "77": 19, "78": 20, "79": 21, "80": 22, "81": 22, "82": 22, "83": 22, "84": 22, "85": 24, "26": 0, "91": 85, "37": 2, "42": 26, "48": 4, "58": 4, "59": 5, "60": 5, "61": 6, "62": 7, "63": 7}, "uri": "tags.tmpl", "filename": "themes/bootstrap/templates/tags.tmpl"}
+{"line_map": {"64": 7, "65": 9, "66": 10, "67": 11, "68": 11, "69": 11, "70": 11, "71": 11, "72": 14, "73": 15, "74": 16, "75": 16, "76": 16, "77": 19, "78": 20, "79": 21, "80": 22, "81": 22, "82": 22, "83": 22, "84": 22, "85": 24, "26": 0, "91": 85, "37": 2, "42": 26, "48": 4, "58": 4, "59": 5, "60": 5, "61": 6, "62": 7, "63": 7}, "filename": "themes/bootstrap/templates/tags.tmpl", "source_encoding": "utf-8", "uri": "tags.tmpl"}
__M_END_METADATA
"""
diff --git a/cache/lastdeploy b/cache/lastdeploy
index e5e57b5c..5cf8f529 100644
--- a/cache/lastdeploy
+++ b/cache/lastdeploy
@@ -1 +1 @@
-2015-06-12T08:00:11.203049
\ No newline at end of file
+2015-06-12T09:00:11.198004
\ No newline at end of file
') __M_writer(str(title)) @@ -85,6 +85,6 @@ def render_content(context,**pageargs): """ __M_BEGIN_METADATA -{"source_encoding": "utf-8", "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", "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}, "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/list_post.tmpl", "source_encoding": "utf-8", "uri": "list_post.tmpl"} __M_END_METADATA """ diff --git a/cache/.mako.tmp/listing.tmpl.py b/cache/.mako.tmp/listing.tmpl.py index 3b67e310..f1ab53a8 100644 --- a/cache/.mako.tmp/listing.tmpl.py +++ b/cache/.mako.tmp/listing.tmpl.py @@ -4,12 +4,12 @@ UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 -_modified_time = 1434096007.8628561 +_modified_time = 1434099608.0510387 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/listing.tmpl' _template_uri = 'listing.tmpl' _source_encoding = 'utf-8' -_exports = ['sourcelink', 'content'] +_exports = ['content', 'sourcelink'] def _mako_get_namespace(context, name): @@ -31,17 +31,17 @@ def render_body(context,**pageargs): __M_locals = __M_dict_builtin(pageargs=pageargs) _import_ns = {} _mako_get_namespace(context, 'ui')._populate(_import_ns, ['bar']) - source_link = _import_ns.get('source_link', context.get('source_link', UNDEFINED)) - crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED)) messages = _import_ns.get('messages', context.get('messages', UNDEFINED)) - code = _import_ns.get('code', context.get('code', UNDEFINED)) ui = _mako_get_namespace(context, 'ui') - folders = _import_ns.get('folders', context.get('folders', UNDEFINED)) def sourcelink(): return render_sourcelink(context._locals(__M_locals)) + files = _import_ns.get('files', context.get('files', UNDEFINED)) + code = _import_ns.get('code', context.get('code', UNDEFINED)) def content(): return render_content(context._locals(__M_locals)) - files = _import_ns.get('files', context.get('files', UNDEFINED)) + folders = _import_ns.get('folders', context.get('folders', UNDEFINED)) + source_link = _import_ns.get('source_link', context.get('source_link', UNDEFINED)) + crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED)) __M_writer = context.writer() __M_writer('\n') __M_writer('\n\n') @@ -60,40 +60,18 @@ def render_body(context,**pageargs): 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']) - source_link = _import_ns.get('source_link', context.get('source_link', UNDEFINED)) - def sourcelink(): - return render_sourcelink(context) - messages = _import_ns.get('messages', context.get('messages', UNDEFINED)) - __M_writer = context.writer() - __M_writer('\n') - if source_link: - __M_writer('
') + __M_writer(filters.html_escape(str(post.title()))) + __M_writer('
\n') + return '' + finally: + context.caller_stack._pop_frame() + + def render_html_translations(context,post): __M_caller = context.caller_stack._push_frame() try: - messages = context.get('messages', UNDEFINED) - len = context.get('len', UNDEFINED) - translations = context.get('translations', UNDEFINED) lang = context.get('lang', UNDEFINED) + translations = context.get('translations', UNDEFINED) + len = context.get('len', UNDEFINED) + messages = context.get('messages', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if len(post.translated_to) > 1: @@ -141,19 +140,20 @@ def render_html_translations(context,post): context.caller_stack._pop_frame() -def render_html_title(context): +def render_html_sourcelink(context): __M_caller = context.caller_stack._push_frame() try: - title = context.get('title', UNDEFINED) + show_sourcelink = context.get('show_sourcelink', UNDEFINED) + messages = context.get('messages', UNDEFINED) post = context.get('post', UNDEFINED) __M_writer = context.writer() __M_writer('\n') - if title and not post.meta('hidetitle'): - __M_writer('') - __M_writer(filters.html_escape(str(post.title()))) - __M_writer('
\n') + if show_sourcelink: + __M_writer('') + __M_writer(str(messages("Source"))) + __M_writer('
\n') return '' finally: context.caller_stack._pop_frame() @@ -161,6 +161,6 @@ def render_html_title(context): """ __M_BEGIN_METADATA -{"source_encoding": "utf-8", "line_map": {"128": 14, "129": 15, "130": 16, "131": 17, "132": 17, "133": 17, "134": 17, "135": 17, "136": 17, "137": 17, "138": 20, "144": 5, "22": 2, "151": 6, "152": 7, "25": 3, "154": 7, "155": 7, "28": 0, "150": 5, "33": 2, "34": 3, "35": 9, "36": 22, "37": 28, "38": 49, "156": 7, "44": 24, "51": 24, "52": 25, "53": 26, "54": 26, "55": 26, "56": 26, "57": 26, "63": 30, "162": 156, "78": 30, "79": 32, "80": 32, "81": 34, "82": 34, "83": 35, "84": 35, "85": 35, "86": 35, "87": 35, "88": 35, "89": 35, "90": 35, "91": 36, "92": 37, "93": 37, "94": 37, "95": 39, "96": 39, "97": 39, "98": 40, "99": 41, "100": 41, "101": 41, "102": 41, "103": 41, "104": 43, "105": 44, "106": 44, "107": 44, "108": 46, "109": 47, "110": 47, "116": 11, "153": 7, "124": 11, "125": 12, "126": 13, "127": 14}, "uri": "post_header.tmpl", "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}, "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_header.tmpl", "source_encoding": "utf-8", "uri": "post_header.tmpl"} __M_END_METADATA """ diff --git a/cache/.mako.tmp/post_helper.tmpl.py b/cache/.mako.tmp/post_helper.tmpl.py index 40b34526..f0a121d4 100644 --- a/cache/.mako.tmp/post_helper.tmpl.py +++ b/cache/.mako.tmp/post_helper.tmpl.py @@ -4,12 +4,12 @@ UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 -_modified_time = 1434096007.9683206 +_modified_time = 1434099608.156749 _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 = ['html_pager', 'meta_translations', 'html_tags', 'mathjax_script', 'open_graph_metadata', 'twitter_card_information'] +_exports = ['html_tags', 'html_pager', 'open_graph_metadata', 'meta_translations', 'twitter_card_information', 'mathjax_script'] def render_body(context,**pageargs): @@ -29,6 +29,28 @@ def render_body(context,**pageargs): context.caller_stack._pop_frame() +def render_html_tags(context,post): + __M_caller = context.caller_stack._push_frame() + try: + hidden_tags = context.get('hidden_tags', UNDEFINED) + _link = context.get('_link', UNDEFINED) + __M_writer = context.writer() + __M_writer('\n') + if post.tags: + __M_writer(' \n') + return '' + finally: + context.caller_stack._pop_frame() + + def render_html_pager(context,post): __M_caller = context.caller_stack._push_frame() try: @@ -59,71 +81,16 @@ def render_html_pager(context,post): context.caller_stack._pop_frame() -def render_meta_translations(context,post): - __M_caller = context.caller_stack._push_frame() - try: - len = context.get('len', UNDEFINED) - translations = context.get('translations', UNDEFINED) - lang = context.get('lang', UNDEFINED) - __M_writer = context.writer() - __M_writer('\n') - if len(translations) > 1: - for langname in translations.keys(): - if langname != lang and post.is_translation_available(langname): - __M_writer(' \n') - return '' - finally: - context.caller_stack._pop_frame() - - -def render_html_tags(context,post): - __M_caller = context.caller_stack._push_frame() - try: - hidden_tags = context.get('hidden_tags', UNDEFINED) - _link = context.get('_link', UNDEFINED) - __M_writer = context.writer() - __M_writer('\n') - if post.tags: - __M_writer(' \n') - return '' - finally: - context.caller_stack._pop_frame() - - -def render_mathjax_script(context,post): - __M_caller = context.caller_stack._push_frame() - try: - __M_writer = context.writer() - __M_writer('\n') - if post.is_mathjax: - __M_writer(' \n \n') - return '' - finally: - context.caller_stack._pop_frame() - - def render_open_graph_metadata(context,post): __M_caller = context.caller_stack._push_frame() try: - permalink = context.get('permalink', UNDEFINED) - abs_link = context.get('abs_link', UNDEFINED) - use_open_graph = context.get('use_open_graph', UNDEFINED) - lang = context.get('lang', UNDEFINED) - striphtml = context.get('striphtml', UNDEFINED) - url_replacer = context.get('url_replacer', UNDEFINED) blog_title = context.get('blog_title', UNDEFINED) + url_replacer = context.get('url_replacer', UNDEFINED) + striphtml = context.get('striphtml', UNDEFINED) + use_open_graph = context.get('use_open_graph', UNDEFINED) + abs_link = context.get('abs_link', UNDEFINED) + lang = context.get('lang', UNDEFINED) + permalink = context.get('permalink', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if use_open_graph: @@ -161,6 +128,27 @@ def render_open_graph_metadata(context,post): context.caller_stack._pop_frame() +def render_meta_translations(context,post): + __M_caller = context.caller_stack._push_frame() + try: + lang = context.get('lang', UNDEFINED) + translations = context.get('translations', UNDEFINED) + len = context.get('len', UNDEFINED) + __M_writer = context.writer() + __M_writer('\n') + if len(translations) > 1: + for langname in translations.keys(): + if langname != lang and post.is_translation_available(langname): + __M_writer(' \n') + return '' + finally: + context.caller_stack._pop_frame() + + def render_twitter_card_information(context,post): __M_caller = context.caller_stack._push_frame() try: @@ -192,8 +180,20 @@ def render_twitter_card_information(context,post): context.caller_stack._pop_frame() +def render_mathjax_script(context,post): + __M_caller = context.caller_stack._push_frame() + try: + __M_writer = context.writer() + __M_writer('\n') + if post.is_mathjax: + __M_writer(' \n \n') + return '' + finally: + context.caller_stack._pop_frame() + + """ __M_BEGIN_METADATA -{"source_encoding": "utf-8", "line_map": {"15": 0, "20": 2, "21": 11, "22": 23, "23": 40, "24": 69, "25": 85, "26": 93, "32": 25, "37": 25, "38": 26, "39": 27, "40": 28, "41": 29, "42": 30, "43": 30, "44": 30, "45": 30, "46": 30, "47": 30, "48": 33, "49": 34, "50": 35, "51": 35, "52": 35, "53": 35, "54": 35, "55": 35, "56": 38, "62": 3, "69": 3, "70": 4, "71": 5, "72": 6, "73": 7, "74": 7, "75": 7, "76": 7, "77": 7, "83": 13, "89": 13, "90": 14, "91": 15, "92": 16, "93": 17, "94": 18, "95": 18, "96": 18, "97": 18, "98": 18, "99": 21, "105": 87, "109": 87, "110": 88, "111": 89, "117": 42, "128": 42, "129": 43, "130": 44, "131": 44, "132": 44, "133": 45, "134": 45, "135": 46, "136": 46, "137": 47, "138": 48, "139": 48, "140": 48, "141": 49, "142": 50, "143": 50, "144": 50, "145": 52, "146": 53, "147": 53, "148": 53, "149": 55, "150": 60, "151": 61, "152": 61, "153": 61, "154": 63, "155": 64, "156": 65, "157": 65, "158": 65, "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", "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": 13, "38": 13, "39": 14, "40": 15, "41": 16, "42": 17, "43": 18, "44": 18, "45": 18, "46": 18, "47": 18, "48": 21, "54": 25, "59": 25, "60": 26, "61": 27, "62": 28, "63": 29, "64": 30, "65": 30, "66": 30, "67": 30, "68": 30, "69": 30, "70": 33, "71": 34, "72": 35, "73": 35, "74": 35, "75": 35, "76": 35, "77": 35, "78": 38, "84": 42, "95": 42, "96": 43, "97": 44, "98": 44, "99": 44, "100": 45, "101": 45, "102": 46, "103": 46, "104": 47, "105": 48, "106": 48, "107": 48, "108": 49, "109": 50, "110": 50, "111": 50, "112": 52, "113": 53, "114": 53, "115": 53, "116": 55, "117": 60, "118": 61, "119": 61, "120": 61, "121": 63, "122": 64, "123": 65, "124": 65, "125": 65, "131": 3, "138": 3, "139": 4, "140": 5, "141": 6, "142": 7, "143": 7, "144": 7, "145": 7, "146": 7, "152": 71, "157": 71, "158": 72, "159": 73, "160": 73, "161": 73, "162": 74, "163": 75, "164": 75, "165": 75, "166": 76, "167": 77, "168": 77, "169": 77, "170": 79, "171": 80, "172": 80, "173": 80, "174": 81, "175": 82, "176": 82, "177": 82, "183": 87, "187": 87, "188": 88, "189": 89, "195": 189}, "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_helper.tmpl", "source_encoding": "utf-8", "uri": "post_helper.tmpl"} __M_END_METADATA """ diff --git a/cache/.mako.tmp/story.tmpl.py b/cache/.mako.tmp/story.tmpl.py index 8c7c8057..5ef47a44 100644 --- a/cache/.mako.tmp/story.tmpl.py +++ b/cache/.mako.tmp/story.tmpl.py @@ -4,7 +4,7 @@ UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 -_modified_time = 1434096008.024417 +_modified_time = 1434099608.2131305 _enable_loop = True _template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/story.tmpl' _template_uri = 'story.tmpl' @@ -22,12 +22,12 @@ 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('pheader', context._clean_inheritance_tokens(), templateuri='post_header.tmpl', callables=None, calling_uri=_template_uri) - context.namespaces[(__name__, 'pheader')] = ns - 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('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) @@ -35,15 +35,15 @@ def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) - enable_comments = context.get('enable_comments', UNDEFINED) - comments = _mako_get_namespace(context, 'comments') + site_has_comments = context.get('site_has_comments', UNDEFINED) messages = context.get('messages', UNDEFINED) - post = context.get('post', UNDEFINED) + comments = _mako_get_namespace(context, 'comments') helper = _mako_get_namespace(context, 'helper') - pheader = _mako_get_namespace(context, 'pheader') def content(): return render_content(context._locals(__M_locals)) - site_has_comments = context.get('site_has_comments', UNDEFINED) + pheader = _mako_get_namespace(context, 'pheader') + post = context.get('post', UNDEFINED) + enable_comments = context.get('enable_comments', UNDEFINED) __M_writer = context.writer() __M_writer('\n') __M_writer('\n') @@ -62,15 +62,15 @@ def render_body(context,**pageargs): def render_content(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: - enable_comments = context.get('enable_comments', UNDEFINED) - comments = _mako_get_namespace(context, 'comments') + site_has_comments = context.get('site_has_comments', UNDEFINED) messages = context.get('messages', UNDEFINED) - post = context.get('post', UNDEFINED) + comments = _mako_get_namespace(context, 'comments') helper = _mako_get_namespace(context, 'helper') - pheader = _mako_get_namespace(context, 'pheader') def content(): return render_content(context) - site_has_comments = context.get('site_has_comments', UNDEFINED) + pheader = _mako_get_namespace(context, 'pheader') + post = context.get('post', UNDEFINED) + enable_comments = context.get('enable_comments', UNDEFINED) __M_writer = context.writer() __M_writer('\n