aboutsummaryrefslogtreecommitdiffstats
path: root/ops/templates/base.html
blob: 7db825b48fb53e5254e24bd440b5033e2bb37a81 (plain) (blame)
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
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %} {{ SITENAME }}{% endblock %}</title>

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta property="wb:webmaster" content="ba29596b8c7c7ae7" /> 

    <meta name="description" content="{{ SITEDESCRIPTION }}">
    <meta name="author" content="{{ AUTHOR }}">

    <link href="{{ SITEURL }}/theme/css/fonts.css" rel="stylesheet" />

    <link href="{{ SITEURL }}/theme/css/normalize.css" rel="stylesheet"/>
    <link href="{{ SITEURL }}/theme/css/skeleton.css" rel="stylesheet"/>
    <link href="{{ SITEURL }}/theme/css/github-prettify-theme.css" rel="stylesheet"/>
    <link href="{{ SITEURL }}/theme/css/custom.css" rel="stylesheet"/>
    <link href="{{ SITEURL }}/theme/css/pygement.css" rel="stylesheet"/>

    <script src="{{ SITEURL }}/theme/js/jquery.min.js"></script>
    <script src="{{ SITEURL }}/theme/js/run_prettify.js"></script>
    <script src="{{ SITEURL }}/theme/js/site.js"></script>
</head>
<body class="code-snippets-visible">

<div class="navbar-spacer"></div>
<nav class="navbar">
    <div class="container">
        <ul class="navbar-list">
            <li class="navbar-item">
                <a class="navbar-link" href="{{ SITEURL }}/">
                    HOME
                </a>
            </li>
            {% for page in pages|sort %}
                <li class="navbar-item">
                    <a class="navbar-link" href="{{ SITEURL }}/{{ page.url }}">
                        {{ page.title }}
                    </a>
                </li>
            {% endfor %}
        </ul>
        <div class="navbar-link">
            <a href="{{ SITEURL }}/"><img src="{{ SITEURL }}/{{ SITEICON }}" class="site-icon"/></a>
        </div>
    </div>
</nav>
<div class="container">
    {% block container %}
    {% endblock %}
</div>

{% block footer %}
{% endblock %}

<script>
{% if BAIDUID %}
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?{{ BAIDUID }}";
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(hm, s);
    })();
{% endif %}
{% if DUOSHUONAME %}
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
var duoshuoQuery = {short_name:"{{ DUOSHUONAME }}"};
	(function() {
		var ds = document.createElement('script');
		ds.type = 'text/javascript';ds.async = true;
		ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
		ds.charset = 'UTF-8';
		(document.getElementsByTagName('head')[0] 
		 || document.getElementsByTagName('body')[0]).appendChild(ds);
	})();
<!-- 多说公共JS代码 end -->
{% endif %}
</script>
</body>
</html>