aboutsummaryrefslogtreecommitdiffstats
path: root/ops/templates/base.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2017-04-08 13:44:58 +0200
committerGitHub <noreply@github.com>2017-04-08 13:44:58 +0200
commit88f21b95e3a6dc91c6a344e90ec50afbedc5bdd7 (patch)
tree6e6c99fab6a0c45ba96bfb501f581b3a71e7917a /ops/templates/base.html
parent5ebcbdac1f43f04a47eb121aa3b5a8ee4ae35da6 (diff)
parent3a009cc2c24552366b823c69e393029c14fe8758 (diff)
downloadpelican-themes-88f21b95e3a6dc91c6a344e90ec50afbedc5bdd7.tar.gz
Merge branch 'master' into bricabractheme
Diffstat (limited to 'ops/templates/base.html')
-rw-r--r--ops/templates/base.html84
1 files changed, 84 insertions, 0 deletions
diff --git a/ops/templates/base.html b/ops/templates/base.html
new file mode 100644
index 0000000..7db825b
--- /dev/null
+++ b/ops/templates/base.html
@@ -0,0 +1,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>