forked from iissnan/hexo-theme-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_layout.swig
76 lines (60 loc) · 2.32 KB
/
_layout.swig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
{% set html_class = 'theme-next ' + theme.scheme %}
{% if theme.use_motion %}
{% set html_class = html_class + ' use-motion' %}
{% endif %}
<html class="{{ html_class | lower }}">
<head>
{% include '_partials/head.swig' %}
<title>{% block title %}{% endblock %}</title>
</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="{{ config.language }}">
{% include '_scripts/third-party/analytics.swig' %}
{% set container_class = "container one-collumn " %}
{% if theme.sidebar.position %}
{% set container_class = container_class + 'sidebar-position-' + theme.sidebar.position %}
{% endif %}
<div class="{{ container_class }} {% block page_class %}{% endblock %} ">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"> {%- include '_partials/header.swig' %} </div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
{% block content %}{% endblock %}
</div>
{% include '_partials/duoshuo-hot-articles.swig' %}
{% include '_partials/comments.swig' %}
</div>
{% if theme.sidebar.display !== 'remove' %}
{% block sidebar %}{% endblock %}
{% endif %}
</div>
</main>
<footer id="footer" class="footer">
<div class="footer-inner">
{% include '_partials/footer.swig' %}
{% include '_scripts/third-party/analytics/busuanzi-counter.swig' %}
{% block footer %}{% endblock %}
</div>
</footer>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
</div>
</div>
{% include '_scripts/vendors.swig' %}
{% include '_scripts/commons.swig' %}
{% set scheme_script = '_scripts/schemes/' + theme.scheme | lower + '.swig' %}
{% include scheme_script %}
{% block script_extra %}{% endblock %}
{% include '_scripts/boostrap.swig' %}
{% include '_scripts/third-party/comments.swig' %}
{% include '_scripts/third-party/tinysou.swig' %}
{% include '_scripts/third-party/localsearch.swig' %}
{% include '_scripts/third-party/mathjax.swig' %}
{% include '_scripts/third-party/lean-analytics.swig' %}
{% include '_scripts/baidu-push.swig' %}
</body>
</html>