You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.8 KiB
91 lines
2.8 KiB
3 years ago
|
---
|
||
|
layout: default
|
||
|
---
|
||
|
|
||
|
<small>{{ page.date | date: "%-d %B %Y" }} - 字数统计:{% if page.layout == "encrypt" %}God Knows {% else %}{{ page.content | strip_html | strip_newlines | remove: " " | size }} - 阅读大约需要{{ page.content | strip_html | strip_newlines | remove: " " | size | divided_by: 350 | plus: 1 }}分钟{% endif %} - Hits: <span id="{{ page.url }}" class="visitors" >Loading...</span>
|
||
|
</small>
|
||
|
<h1>{{ page.title }}</h1>
|
||
|
|
||
|
<p class="view">by <a href="//github.com/{{ page.author | default: "Mabbs" }}">{{ page.author | default: site.author }}</a></p>
|
||
|
<div id="outdate" style="display:none;">
|
||
|
<hr />
|
||
|
这是一篇创建于 <span id="outime"></span> 天前的文章,其中的信息可能已经有所发展或是发生改变。
|
||
|
<br /><br />
|
||
|
</div>
|
||
|
<script>
|
||
|
BirthDay = new Date("{{ page.date | date: "%m/%d/%Y" }} 00:00:00");
|
||
|
today = new Date();
|
||
|
timeold = (today.getTime() - BirthDay.getTime());
|
||
|
secondsold = Math.floor(timeold / 1000);
|
||
|
e_daysold = timeold / (24 * 60 * 60 * 1000);
|
||
|
daysold = Math.floor(e_daysold);
|
||
|
if (daysold > 90) {
|
||
|
document.getElementById("outdate").style.display = "block";
|
||
|
document.getElementById("outime").innerHTML = daysold;
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<hr />
|
||
|
|
||
|
{% include toc.html html=content sanitize=true %}
|
||
|
|
||
|
{{content}}
|
||
|
|
||
|
{% if page.tags %}
|
||
|
<small>tags: <em>{{ page.tags | join: "</em> - <em>" }}</em></small>
|
||
|
{% endif %}
|
||
|
|
||
|
<div class="pagination">
|
||
|
{% if page.previous.url %}
|
||
|
<span class="prev" >
|
||
|
<a href="{{ site.baseurl }}{{ page.previous.url }}">
|
||
|
上一篇:{{ page.previous.title }}
|
||
|
</a>
|
||
|
</span>
|
||
|
{% endif %}
|
||
|
<br />
|
||
|
{% if page.next.url %}
|
||
|
<span class="next" >
|
||
|
<a href="{{ site.baseurl }}{{ page.next.url }}">
|
||
|
下一篇:{{ page.next.title }}
|
||
|
</a>
|
||
|
</span>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
|
||
|
<!--[if !IE]> -->
|
||
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css">
|
||
|
<script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
|
||
|
|
||
|
<div id="gitalk-container"></div>
|
||
|
|
||
|
<script>
|
||
|
if (window.location.host != "mabbs.github.io")
|
||
|
{
|
||
|
var gitalk = new Gitalk({
|
||
|
clientID: '098934a2556425f19d6e',
|
||
|
clientSecret: '0bd44eed8425e5437ce43c4ba9b2791fbc04581d',
|
||
|
repo: 'mabbs.github.io',
|
||
|
owner: 'Mabbs',
|
||
|
admin: ['Mabbs'],
|
||
|
id: '{{ page.id }}', // Ensure uniqueness and length less than 50
|
||
|
distractionFreeMode: false // Facebook-like distraction free mode
|
||
|
})
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
var gitalk = new Gitalk({
|
||
|
clientID: '36557aec4c3cb04f7ac6',
|
||
|
clientSecret: 'ac32993299751cb5a9ba81cf2b171cca65879cdb',
|
||
|
repo: 'mabbs.github.io',
|
||
|
owner: 'Mabbs',
|
||
|
admin: ['Mabbs'],
|
||
|
id: '{{ page.id }}', // Ensure uniqueness and length less than 50
|
||
|
distractionFreeMode: false // Facebook-like distraction free mode
|
||
|
})
|
||
|
}
|
||
|
|
||
|
gitalk.render('gitalk-container')
|
||
|
</script>
|
||
|
<!-- <![endif]-->
|