initial commit to seperate repo
This commit is contained in:
commit
8630e4db13
23669 changed files with 1067407 additions and 0 deletions
72
cache/.mako.tmp/index_helper.tmpl.py
vendored
Normal file
72
cache/.mako.tmp/index_helper.tmpl.py
vendored
Normal 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
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue