-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathheader.html
62 lines (61 loc) · 2.59 KB
/
header.html
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
<!doctype html>
<html lang="zh-cn">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1" />
<title>
{% if pageTitle.length %}
{{ pageTitle }}
{% else %}
{{ siteName }}
{% /if %}
</title>
<meta name="keywords" content="{% for tag in post.tags %}{{tag.name}}, {% /for %}{{siteName}}" />
{% if posts.length %}
{% else %}
<meta name="twitter:card" content="summary_large_image" />
{% if ext_twitter %}<meta name="twitter:creator" content="@{{ext_twitter}}" />{% /if %}
<meta property="og:url" content="{{siteURL}}{{ post.url }}" />
<meta property="og:title" content="{{post.title}}" />
{% if post.ext_subtitle.length %}
<meta property="og:description" content="{{post.ext_subtitle}}" />
<meta name="description" content="{{post.ext_subtitle}}" />
{% else %}
<meta property="og:description" content="{{post.title}}" />
{% /if %}
{% if post.ext_featureimg.length %}
<meta property="og:image" content="{{post.ext_featureimg}}" />
<meta name="twitter:image" content="{{post.ext_featureimg}}" />
{% /if %}
<meta property="og:site_name" content="{{ siteName }}" />
{% /if %}
{% if ext_favicon.length %}
<link rel="icon" href="{{ext_favicon}}">
{% /if %}
<link href="atom.xml" rel="alternate" title="{{ siteName }}" type="application/atom+xml">
<script src="https://cdn.bootcss.com/moment.js/2.24.0/moment.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
{{siteOther}}
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="asset/style.css">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<script src="asset/colorscheme.js"></script>
<div class="container">
<div class="head">
<div class="row">
<div class="col-md-12">
<div class="blogname">{{ siteName }}</div>
<nav>
{% for m in siteMenu %}
<div class="item"><a target="{{ m.target }}" href="{{ m.url }}">{{ m.name }}</a></div>
{% /for %}
</nav>
</div>
</div>
</div>
<hr>
</div>