')
__M_writer(str(title))
@@ -77,6 +77,6 @@ def render_content(context,**pageargs):
"""
__M_BEGIN_METADATA
-{"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}, "source_encoding": "utf-8"}
+{"uri": "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"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/list_post.tmpl.py b/cache/.mako.tmp/list_post.tmpl.py
index 6f774547..1b6ee182 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 = 1433962807.1154368
+_modified_time = 1433966407.3473911
_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,10 +27,10 @@ def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
__M_locals = __M_dict_builtin(pageargs=pageargs)
- title = context.get('title', UNDEFINED)
- date_format = context.get('date_format', UNDEFINED)
- posts = context.get('posts', UNDEFINED)
messages = context.get('messages', UNDEFINED)
+ posts = context.get('posts', UNDEFINED)
+ date_format = context.get('date_format', UNDEFINED)
+ title = context.get('title', UNDEFINED)
def content():
return render_content(context._locals(__M_locals))
__M_writer = context.writer()
@@ -48,10 +48,10 @@ def render_body(context,**pageargs):
def render_content(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
- title = context.get('title', UNDEFINED)
- date_format = context.get('date_format', UNDEFINED)
- posts = context.get('posts', UNDEFINED)
messages = context.get('messages', UNDEFINED)
+ posts = context.get('posts', UNDEFINED)
+ date_format = context.get('date_format', UNDEFINED)
+ title = context.get('title', UNDEFINED)
def content():
return render_content(context)
__M_writer = context.writer()
@@ -85,6 +85,6 @@ def render_content(context,**pageargs):
"""
__M_BEGIN_METADATA
-{"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}, "source_encoding": "utf-8"}
+{"uri": "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"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/listing.tmpl.py b/cache/.mako.tmp/listing.tmpl.py
index 53378944..7a1a9b5b 100644
--- a/cache/.mako.tmp/listing.tmpl.py
+++ b/cache/.mako.tmp/listing.tmpl.py
@@ -4,7 +4,7 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
-_modified_time = 1433962807.0687656
+_modified_time = 1433966407.3007407
_enable_loop = True
_template_filename = 'themes/bootstrap3/templates/listing.tmpl'
_template_uri = 'listing.tmpl'
@@ -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))
code = _import_ns.get('code', context.get('code', UNDEFINED))
messages = _import_ns.get('messages', context.get('messages', UNDEFINED))
+ files = _import_ns.get('files', context.get('files', UNDEFINED))
def content():
return render_content(context._locals(__M_locals))
+ folders = _import_ns.get('folders', context.get('folders', UNDEFINED))
+ ui = _mako_get_namespace(context, 'ui')
def sourcelink():
return render_sourcelink(context._locals(__M_locals))
- files = _import_ns.get('files', context.get('files', UNDEFINED))
crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED))
- ui = _mako_get_namespace(context, 'ui')
- folders = _import_ns.get('folders', context.get('folders', UNDEFINED))
- source_link = _import_ns.get('source_link', context.get('source_link', UNDEFINED))
__M_writer = context.writer()
__M_writer('\n')
__M_writer('\n\n')
@@ -88,12 +88,12 @@ def render_content(context,**pageargs):
_import_ns = {}
_mako_get_namespace(context, 'ui')._populate(_import_ns, ['bar'])
code = _import_ns.get('code', context.get('code', UNDEFINED))
+ files = _import_ns.get('files', context.get('files', UNDEFINED))
def content():
return render_content(context)
- files = _import_ns.get('files', context.get('files', UNDEFINED))
- crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED))
- ui = _mako_get_namespace(context, 'ui')
folders = _import_ns.get('folders', context.get('folders', UNDEFINED))
+ ui = _mako_get_namespace(context, 'ui')
+ crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED))
__M_writer = context.writer()
__M_writer('\n')
__M_writer(str(ui.bar(crumbs)))
@@ -124,6 +124,6 @@ def render_content(context,**pageargs):
"""
__M_BEGIN_METADATA
-{"uri": "listing.tmpl", "filename": "themes/bootstrap3/templates/listing.tmpl", "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}, "source_encoding": "utf-8"}
+{"uri": "listing.tmpl", "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}, "filename": "themes/bootstrap3/templates/listing.tmpl", "source_encoding": "utf-8"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/post.tmpl.py b/cache/.mako.tmp/post.tmpl.py
index 1fdf6478..0ff2f34a 100644
--- a/cache/.mako.tmp/post.tmpl.py
+++ b/cache/.mako.tmp/post.tmpl.py
@@ -4,12 +4,12 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
-_modified_time = 1433962807.1431293
+_modified_time = 1433966407.3752494
_enable_loop = True
_template_filename = 'themes/bootstrap/templates/post.tmpl'
_template_uri = 'post.tmpl'
_source_encoding = 'utf-8'
-_exports = ['sourcelink', 'extra_head', 'content']
+_exports = ['sourcelink', 'content', 'extra_head']
def _mako_get_namespace(context, name):
@@ -35,20 +35,20 @@ def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
__M_locals = __M_dict_builtin(pageargs=pageargs)
- def extra_head():
- return render_extra_head(context._locals(__M_locals))
- post = context.get('post', UNDEFINED)
- comments = _mako_get_namespace(context, 'comments')
- messages = context.get('messages', UNDEFINED)
- def content():
- return render_content(context._locals(__M_locals))
- def sourcelink():
- return render_sourcelink(context._locals(__M_locals))
- pheader = _mako_get_namespace(context, 'pheader')
site_has_comments = context.get('site_has_comments', UNDEFINED)
parent = context.get('parent', UNDEFINED)
+ messages = context.get('messages', UNDEFINED)
+ comments = _mako_get_namespace(context, 'comments')
helper = _mako_get_namespace(context, 'helper')
show_sourcelink = context.get('show_sourcelink', UNDEFINED)
+ def content():
+ return render_content(context._locals(__M_locals))
+ pheader = _mako_get_namespace(context, 'pheader')
+ post = context.get('post', UNDEFINED)
+ def extra_head():
+ return render_extra_head(context._locals(__M_locals))
+ def sourcelink():
+ return render_sourcelink(context._locals(__M_locals))
__M_writer = context.writer()
__M_writer('\n')
__M_writer('\n')
@@ -95,14 +95,53 @@ def render_sourcelink(context,**pageargs):
context.caller_stack._pop_frame()
+def render_content(context,**pageargs):
+ __M_caller = context.caller_stack._push_frame()
+ try:
+ site_has_comments = context.get('site_has_comments', UNDEFINED)
+ pheader = _mako_get_namespace(context, 'pheader')
+ post = context.get('post', UNDEFINED)
+ messages = context.get('messages', UNDEFINED)
+ comments = _mako_get_namespace(context, 'comments')
+ helper = _mako_get_namespace(context, 'helper')
+ def content():
+ return render_content(context)
+ __M_writer = context.writer()
+ __M_writer('\n\n ')
+ __M_writer(str(pheader.html_post_header()))
+ __M_writer('\n \n ')
+ __M_writer(str(post.text()))
+ __M_writer('\n \n \n')
+ if not post.meta('nocomments') and site_has_comments:
+ __M_writer(' \n')
+ __M_writer(str(comments.comment_link_script()))
+ __M_writer('\n')
+ return ''
+ finally:
+ context.caller_stack._pop_frame()
+
+
def render_extra_head(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
+ post = context.get('post', UNDEFINED)
parent = context.get('parent', UNDEFINED)
+ helper = _mako_get_namespace(context, 'helper')
def extra_head():
return render_extra_head(context)
- helper = _mako_get_namespace(context, 'helper')
- post = context.get('post', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n ')
__M_writer(str(parent.extra_head()))
@@ -142,47 +181,8 @@ def render_extra_head(context,**pageargs):
context.caller_stack._pop_frame()
-def render_content(context,**pageargs):
- __M_caller = context.caller_stack._push_frame()
- try:
- pheader = _mako_get_namespace(context, 'pheader')
- site_has_comments = context.get('site_has_comments', UNDEFINED)
- post = context.get('post', UNDEFINED)
- comments = _mako_get_namespace(context, 'comments')
- messages = context.get('messages', UNDEFINED)
- helper = _mako_get_namespace(context, 'helper')
- def content():
- return render_content(context)
- __M_writer = context.writer()
- __M_writer('\n\n ')
- __M_writer(str(pheader.html_post_header()))
- __M_writer('\n \n ')
- __M_writer(str(post.text()))
- __M_writer('\n \n \n')
- if not post.meta('nocomments') and site_has_comments:
- __M_writer(' \n ')
- __M_writer(str(messages("Comments")))
- __M_writer('
\n ')
- __M_writer(str(comments.comment_form(post.permalink(absolute=True), post.title(), post._base_path)))
- __M_writer('\n \n')
- __M_writer(' ')
- __M_writer(str(helper.mathjax_script(post)))
- __M_writer('\n \n')
- __M_writer(str(comments.comment_link_script()))
- __M_writer('\n')
- return ''
- finally:
- context.caller_stack._pop_frame()
-
-
"""
__M_BEGIN_METADATA
-{"uri": "post.tmpl", "filename": "themes/bootstrap/templates/post.tmpl", "line_map": {"128": 20, "129": 20, "130": 20, "131": 20, "132": 20, "133": 22, "134": 22, "135": 22, "136": 23, "137": 23, "138": 24, "139": 24, "145": 27, "22": 3, "25": 2, "28": 4, "157": 27, "158": 28, "159": 28, "160": 29, "161": 29, "34": 0, "163": 31, "162": 31, "165": 35, "166": 36, "167": 36, "168": 39, "169": 40, "170": 41, "171": 41, "172": 42, "173": 42, "174": 45, "175": 45, "176": 45, "177": 47, "178": 47, "53": 2, "54": 3, "55": 4, "56": 5, "61": 25, "66": 48, "164": 35, "71": 56, "77": 50, "184": 178, "86": 50, "87": 51, "88": 52, "89": 53, "90": 53, "91": 53, "92": 53, "98": 7, "107": 7, "108": 8, "109": 8, "110": 9, "111": 10, "112": 10, "113": 10, "114": 12, "115": 13, "116": 13, "117": 13, "118": 15, "119": 15, "120": 15, "121": 16, "122": 17, "123": 17, "124": 17, "125": 17, "126": 17, "127": 19}, "source_encoding": "utf-8"}
+{"uri": "post.tmpl", "line_map": {"128": 45, "129": 45, "130": 47, "131": 47, "150": 10, "162": 17, "137": 7, "146": 7, "147": 8, "148": 8, "149": 9, "22": 3, "151": 10, "152": 10, "25": 2, "154": 13, "155": 13, "28": 4, "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": 22, "174": 22, "175": 23, "176": 23, "177": 24, "178": 24, "53": 2, "54": 3, "55": 4, "56": 5, "61": 25, "153": 12, "66": 48, "71": 56, "77": 50, "184": 178, "86": 50, "87": 51, "88": 52, "89": 53, "90": 53, "91": 53, "92": 53, "98": 27, "169": 20, "110": 27, "111": 28, "112": 28, "113": 29, "114": 29, "115": 31, "116": 31, "117": 35, "118": 35, "119": 36, "120": 36, "121": 39, "122": 40, "123": 41, "124": 41, "125": 42, "126": 42, "127": 45}, "filename": "themes/bootstrap/templates/post.tmpl", "source_encoding": "utf-8"}
__M_END_METADATA
"""
diff --git a/cache/.mako.tmp/post_header.tmpl.py b/cache/.mako.tmp/post_header.tmpl.py
index 63b05536..ff91235c 100644
--- a/cache/.mako.tmp/post_header.tmpl.py
+++ b/cache/.mako.tmp/post_header.tmpl.py
@@ -4,12 +4,12 @@ UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
-_modified_time = 1433962807.2070467
+_modified_time = 1433966407.4394143
_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_translations', 'html_post_header', 'html_sourcelink', 'html_title']
+_exports = ['html_translations', 'html_title', 'html_sourcelink', 'html_post_header']
def _mako_get_namespace(context, name):
@@ -19,12 +19,12 @@ def _mako_get_namespace(context, name):
_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
+ ns = runtime.TemplateNamespace('helper', context._clean_inheritance_tokens(), templateuri='post_helper.tmpl', callables=None, calling_uri=_template_uri)
+ context.namespaces[(__name__, 'helper')] = ns
+
def render_body(context,**pageargs):
__M_caller = context.caller_stack._push_frame()
try:
@@ -46,8 +46,8 @@ def render_html_translations(context,post):
try:
messages = context.get('messages', UNDEFINED)
lang = context.get('lang', UNDEFINED)
- len = context.get('len', UNDEFINED)
translations = context.get('translations', UNDEFINED)
+ len = context.get('len', UNDEFINED)
__M_writer = context.writer()
__M_writer('\n')
if len(post.translated_to) > 1:
@@ -69,20 +69,57 @@ def render_html_translations(context,post):
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_sourcelink(context):
+ __M_caller = context.caller_stack._push_frame()
+ try:
+ messages = context.get('messages', UNDEFINED)
+ show_sourcelink = context.get('show_sourcelink', UNDEFINED)
+ post = context.get('post', UNDEFINED)
+ __M_writer = context.writer()
+ __M_writer('\n')
+ if show_sourcelink:
+ __M_writer('
') - __M_writer(str(messages("Comments"))) - __M_writer('
\n ') - __M_writer(str(comments.comment_form(post.permalink(absolute=True), post.title(), post._base_path))) - __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) - comments = _mako_get_namespace(context, 'comments') - post = context.get('post', UNDEFINED) - messages = context.get('messages', UNDEFINED) - date_format = context.get('date_format', UNDEFINED) site_has_comments = context.get('site_has_comments', UNDEFINED) - def html_sourcelink(): - return render_html_sourcelink(context) + date_format = context.get('date_format', UNDEFINED) def html_title(): return render_html_title(context) + messages = context.get('messages', UNDEFINED) + comments = _mako_get_namespace(context, 'comments') + def html_translations(post): + return render_html_translations(context,post) + post = context.get('post', UNDEFINED) + def html_sourcelink(): + return render_html_sourcelink(context) __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_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() - - """ __M_BEGIN_METADATA -{"uri": "post_header.tmpl", "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_header.tmpl", "line_map": {"132": 24, "133": 25, "134": 26, "135": 26, "136": 26, "137": 26, "138": 26, "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": 11, "52": 11, "53": 12, "54": 13, "55": 14, "56": 14, "57": 15, "58": 16, "59": 17, "60": 17, "61": 17, "62": 17, "63": 17, "64": 17, "65": 17, "66": 20, "72": 30, "162": 156, "87": 30, "88": 32, "89": 32, "90": 34, "91": 34, "92": 35, "93": 35, "94": 35, "95": 35, "96": 35, "97": 35, "98": 35, "99": 35, "100": 36, "101": 37, "102": 37, "103": 37, "104": 39, "105": 39, "106": 39, "107": 40, "108": 41, "109": 41, "110": 41, "111": 41, "112": 41, "113": 43, "114": 44, "115": 44, "116": 44, "117": 46, "118": 47, "119": 47, "153": 7, "125": 24}, "source_encoding": "utf-8"} +{"uri": "post_header.tmpl", "line_map": {"128": 34, "129": 35, "130": 35, "131": 35, "132": 35, "133": 35, "134": 35, "135": 35, "136": 35, "137": 36, "138": 37, "139": 37, "140": 37, "141": 39, "142": 39, "143": 39, "144": 40, "145": 41, "146": 41, "147": 41, "148": 41, "149": 41, "22": 3, "151": 44, "152": 44, "25": 2, "154": 46, "155": 47, "28": 0, "150": 43, "33": 2, "34": 3, "35": 9, "36": 22, "37": 28, "38": 49, "156": 47, "44": 11, "52": 11, "53": 12, "54": 13, "55": 14, "56": 14, "57": 15, "58": 16, "59": 17, "60": 17, "61": 17, "62": 17, "63": 17, "64": 17, "65": 17, "66": 20, "72": 5, "162": 156, "78": 5, "79": 6, "80": 7, "81": 7, "82": 7, "83": 7, "84": 7, "90": 24, "97": 24, "98": 25, "99": 26, "100": 26, "101": 26, "102": 26, "103": 26, "109": 30, "153": 44, "124": 30, "125": 32, "126": 32, "127": 34}, "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/post_header.tmpl", "source_encoding": "utf-8"} __M_END_METADATA """ diff --git a/cache/.mako.tmp/post_helper.tmpl.py b/cache/.mako.tmp/post_helper.tmpl.py index 914c8f78..2e842042 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 = 1433962807.174649 +_modified_time = 1433966407.4069395 _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 = ['open_graph_metadata', 'html_pager', 'mathjax_script', 'twitter_card_information', 'meta_translations', 'html_tags'] +_exports = ['twitter_card_information', 'meta_translations', 'html_tags', 'mathjax_script', 'html_pager', 'open_graph_metadata'] def render_body(context,**pageargs): @@ -29,95 +29,6 @@ def render_body(context,**pageargs): context.caller_stack._pop_frame() -def render_open_graph_metadata(context,post): - __M_caller = context.caller_stack._push_frame() - try: - url_replacer = context.get('url_replacer', UNDEFINED) - blog_title = context.get('blog_title', UNDEFINED) - striphtml = context.get('striphtml', UNDEFINED) - lang = context.get('lang', UNDEFINED) - use_open_graph = context.get('use_open_graph', UNDEFINED) - abs_link = context.get('abs_link', UNDEFINED) - permalink = context.get('permalink', UNDEFINED) - __M_writer = context.writer() - __M_writer('\n') - if use_open_graph: - __M_writer(' \n \n \n') - if post.description(): - __M_writer(' \n') - else: - __M_writer(' \n') - if post.previewimage: - __M_writer(' \n') - __M_writer(' \n') - if post.date.isoformat(): - __M_writer(' \n') - if post.tags: - for tag in post.tags: - __M_writer(' \n') - return '' - finally: - context.caller_stack._pop_frame() - - -def render_html_pager(context,post): - __M_caller = context.caller_stack._push_frame() - try: - messages = context.get('messages', UNDEFINED) - __M_writer = context.writer() - __M_writer('\n') - if post.prev_post or post.next_post: - __M_writer('- \n')
- if post.prev_post:
- __M_writer('
- \n ') - __M_writer(str(messages("Previous post"))) - __M_writer('\n \n') - if post.next_post: - __M_writer('
- \n ') - __M_writer(str(messages("Next post"))) - __M_writer('\n \n') - __M_writer('
- \n')
+ if post.prev_post:
+ __M_writer('
- \n ') + __M_writer(str(messages("Previous post"))) + __M_writer('\n \n') + if post.next_post: + __M_writer('
- \n ') + __M_writer(str(messages("Next post"))) + __M_writer('\n \n') + __M_writer('
') + __M_writer(str(messages("Comments"))) + __M_writer('
\n ') + __M_writer(str(comments.comment_form(post.permalink(absolute=True), post.title(), post._base_path))) + __M_writer('\n