diff options
author | clarkzjw <[email protected]> | 2018-01-18 14:48:11 +0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2018-01-18 14:48:11 +0800 |
commit | a9dfeef1267d60d784a6488ae3e0c88f108866ae (patch) | |
tree | 0ff5e5632b623bda7769ee6f919f4f5063aec0b6 | |
parent | a8f67d73413974bbe2f96076d9b7a05aa2813455 (diff) | |
download | blog.jinwei.me-a9dfeef1267d60d784a6488ae3e0c88f108866ae.tar.gz |
+ init
-rw-r--r-- | _templates/layout.html | 5 | ||||
-rw-r--r-- | conf.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/_templates/layout.html b/_templates/layout.html index 23e48f6..04d2577 100644 --- a/_templates/layout.html +++ b/_templates/layout.html | |||
@@ -28,14 +28,14 @@ | |||
28 | 28 | ||
29 | {%- block content %} | 29 | {%- block content %} |
30 | {%- if theme_fixed_sidebar|lower == 'true' %} | 30 | {%- if theme_fixed_sidebar|lower == 'true' %} |
31 | <div class="document han-init-context"> | 31 | <div class="document"> |
32 | {{ sidebar() }} | 32 | {{ sidebar() }} |
33 | {%- block document %} | 33 | {%- block document %} |
34 | <div class="documentwrapper"> | 34 | <div class="documentwrapper"> |
35 | {%- if render_sidebar %} | 35 | {%- if render_sidebar %} |
36 | <div class="bodywrapper"> | 36 | <div class="bodywrapper"> |
37 | {%- endif %} | 37 | {%- endif %} |
38 | <div class="body" role="main"> | 38 | <div class="body han-init-context" role="main"> |
39 | {% block body %} | 39 | {% block body %} |
40 | {% endblock %} | 40 | {% endblock %} |
41 | <div class="just-comments" | 41 | <div class="just-comments" |
@@ -60,4 +60,5 @@ | |||
60 | 60 | ||
61 | {%- block footer -%} | 61 | {%- block footer -%} |
62 | <script async defer type="text/javascript" src="../../../_static/han.min.js"></script> | 62 | <script async defer type="text/javascript" src="../../../_static/han.min.js"></script> |
63 | <script type="text/javascript">Han.init()</script> | ||
63 | {%- endblock %} | 64 | {%- endblock %} |
@@ -35,7 +35,7 @@ extensions = [ | |||
35 | ] | 35 | ] |
36 | 36 | ||
37 | html_title = 'Hello World' | 37 | html_title = 'Hello World' |
38 | 38 | language='zh-Hans-CN' | |
39 | templates_path = ['_templates'] | 39 | templates_path = ['_templates'] |
40 | 40 | ||
41 | source_suffix = '.rst' | 41 | source_suffix = '.rst' |