1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00
SpaceVim/docs/_layouts/default.html

162 lines
5.9 KiB
HTML

<!DOCTYPE html>
<html
lang="{{ page.lang | default: site.lang }}"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml"
>
<head>
<meta charset="utf-8" />
<title>{{ page.title }} | SpaceVim</title>
<meta name="baidu-site-verification" content="AN14j6xQVd" />
<!-- This is for google search console -->
<meta
name="google-site-verification"
content="2QrXyd7Wz5_ahXqefiYC_4-HvynQrefWDWORb7EjLCU"
/>
<meta name="yandex-verification" content="8de09d07572b8dcc" />
<meta name="author" content="Shidong Wang" />
<meta name="description" content="{{ page.description }}" />
{% if page.type %}
<meta property="og:type" content="{{ page.type }}" />
{% else %}
<meta property="og:type" content="webpage" />
{% endif %}
<meta property="og:title" content="{{ page.title }} | SpaceVim" />
<meta property="og:description" content="{{ page.description }}" />
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
<meta
property="og:image"
content="{{ page.image | default: site.image }}"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@SpaceVim" />
<meta name="twitter:creator" content="@wsdtty" />
<meta
name="twitter:image:src"
content="{{ page.image | default: site.image }}"
/>
<meta name="twitter:title" content="{{ page.title }} | SpaceVim" />
<meta name="twitter:description" content="{{ page.description }}" />
<script
defer
src="https://use.fontawesome.com/releases/v5.7.2/js/all.js"
></script>
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}" />
<script src="{{ '/assets/js/respond.js' | relative_url }}"></script>
<script src="{{ '/assets/js/jquery.1.7.1.min.js' | relative_url }}"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div class="wrapper">
<section>
<div id="titlex">
<p align="center">
{{ site.title | default: site.github.repository_name }}
</p>
</div>
{% if page.lang == "zh" %}
<div id="title">
<p>{{ site.description | default: site.github.project_tagline }}</p>
<hr />
<p align="center">
<b><a href="{{ site.url }}/cn/">主页</a></b> |
<b><a href="{{ site.url }}/cn/about/">关于我们</a></b> |
<b><a href="{{ site.url }}/cn/quick-start-guide/">入门指南</a></b> |
<b><a href="{{ site.url }}/cn/documentation/">使用文档</a></b> |
<b><a href="{{ site.url }}/cn/development/">开发指南</a></b> |
<b><a href="{{ site.url }}/cn/community/">用户社区</a></b> |
<b><a href="{{ site.url }}/cn/sponsors/">赞助</a></b> |
<b><a href="{{ site.url }}{{ page.url | remove_first: "/cn" }}">English</a></b>
</p>
<hr />
</div>
{% else %}
<div id="title">
<p>{{ site.description | default: site.github.project_tagline }}</p>
<hr />
<p align="center">
<b><a href="{{ site.url }}">Home</a></b> |
<b><a href="{{ site.url }}/about/">About</a></b> |
<b><a href="{{ site.url }}/quick-start-guide/">Quick start guide</a></b> |
<b><a href="{{ site.url }}/documentation/">Documentation</a></b> |
<b><a href="{{ site.url }}/development/">Development</a></b> |
<b><a href="{{ site.url }}/community/">Community</a></b> |
<b><a href="{{ site.url }}/sponsors/">Sponsors</a></b> |
<b><a href="{{ site.url }}/cn{{ page.url }}">中文</a></b>
</p>
<hr />
</div>
{% endif %} {{ content }} {% if page.comments %}
<div id="container"></div>
<script src="https://wsdjeg.github.io/gitment/dist/gitment.browser.js"></script>
<script>
var gitment = new Gitment({
id: "{{ page.commentsID | default: page.title }}", // 可选。默认为 location.href
owner: "wsdjeg",
repo: "SpaceVim-comments",
oauth: {
client_id: "{{ site.gitment_client_id }}",
client_secret: "{{ site.gitment_client_secret }}",
},
});
gitment.render("container");
</script>
{% endif %}
</section>
</div>
{% if site.google_analytics %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "{{ site.google_analytics }}");
</script>
{% endif %}
</body>
<root>
{% if page.lang == "zh" %}
<p align="center">
<span class="credits right"
>由Jekyll强力驱动
</span>
<br />
<input
id="textbox"
type="text"
placeholder="Search on Google..."
onkeydown="if (event.keyCode == 13 || event.which == 13) { location='https://www.google.com/search?q=' + encodeURIComponent(document.getElementById('textbox').value) + '+site%3Aspacevim.org';}"
/>
</p>
{% else %}
<p align="center">
<span class="credits right"
>Powered by Jekyll
</span>
<br />
<input
id="textbox"
type="text"
placeholder="Search on Google..."
onkeydown="if (event.keyCode == 13 || event.which == 13) { location='https://www.google.com/search?q=' + encodeURIComponent(document.getElementById('textbox').value) + '+site%3Aspacevim.org';}"
/>
</p>
{% endif %}
</root>
</html>
<!-- vim:set nowrap: -->