mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 10:30:04 +08:00
chore(website): clear website
1. remove google tag 2. remove baidu meta 3. remove search box
This commit is contained in:
parent
874f72ce94
commit
5de1889197
@ -1,6 +1,7 @@
|
|||||||
theme: jekyll-theme-midnight
|
theme: jekyll-theme-midnight
|
||||||
title: SpaceVim
|
title: SpaceVim
|
||||||
description: A modular Vim/Neovim configuration
|
description: A modular Vim/Neovim configuration
|
||||||
|
description_cn: 一个模块化的 Vim/Neovim 配置集合
|
||||||
show_downloads: false
|
show_downloads: false
|
||||||
google_analytics: UA-89745542-1
|
google_analytics: UA-89745542-1
|
||||||
gitment_client_id: 8f0cd1f544d1e4219798
|
gitment_client_id: 8f0cd1f544d1e4219798
|
||||||
|
@ -8,14 +8,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>{{ page.title }} | SpaceVim</title>
|
<title>{{ page.title }} | SpaceVim</title>
|
||||||
<meta name="baidu-site-verification" content="AN14j6xQVd" />
|
<meta name="author" content="Eric Wong" />
|
||||||
<!-- 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 }}" />
|
<meta name="description" content="{{ page.description }}" />
|
||||||
{% if page.type %}
|
{% if page.type %}
|
||||||
<meta property="og:type" content="{{ page.type }}" />
|
<meta property="og:type" content="{{ page.type }}" />
|
||||||
@ -59,7 +52,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% if page.lang == "zh" %}
|
{% if page.lang == "zh" %}
|
||||||
<div id="title">
|
<div id="title">
|
||||||
<p>{{ site.description | default: site.github.project_tagline }}</p>
|
<p>{{ site.description_cn }}</p>
|
||||||
<hr />
|
<hr />
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<b><a href="{{ site.url }}/cn/">主页</a></b> |
|
<b><a href="{{ site.url }}/cn/">主页</a></b> |
|
||||||
@ -75,7 +68,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div id="title">
|
<div id="title">
|
||||||
<p>{{ site.description | default: site.github.project_tagline }}</p>
|
<p>{{ site.description }}</p>
|
||||||
<hr />
|
<hr />
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<b><a href="{{ site.url }}">Home</a></b> |
|
<b><a href="{{ site.url }}">Home</a></b> |
|
||||||
@ -89,43 +82,10 @@
|
|||||||
</p>
|
</p>
|
||||||
<hr />
|
<hr />
|
||||||
</div>
|
</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 %}
|
{% endif %}
|
||||||
|
{{ content }}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</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>
|
</body>
|
||||||
<root>
|
<root>
|
||||||
{% if page.lang == "zh" %}
|
{% if page.lang == "zh" %}
|
||||||
@ -133,26 +93,12 @@
|
|||||||
<span class="credits right"
|
<span class="credits right"
|
||||||
>由Jekyll强力驱动
|
>由Jekyll强力驱动
|
||||||
</span>
|
</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>
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<span class="credits right"
|
<span class="credits right"
|
||||||
>Powered by Jekyll
|
>Powered by Jekyll
|
||||||
</span>
|
</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>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</root>
|
</root>
|
||||||
|
Loading…
Reference in New Issue
Block a user