forked from beiyuu/Github-Pages-Example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost.html
More file actions
executable file
·69 lines (59 loc) · 2.06 KB
/
post.html
File metadata and controls
executable file
·69 lines (59 loc) · 2.06 KB
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
63
64
65
66
67
68
69
---
layout: default
---
<link rel="stylesheet" href="/js/prettify/prettify.css" />
<style type="text/css">
body { background:#e8e8e8; }
@media screen and (max-width: 750px){
body { background:#fff; }
}
@media screen and (max-width: 1020px){
body { background:#fff; }
}
</style>
<div id="content">
<div class="entry">
<h1 class="entry-title"><a href="{{ page.url }}" title="{{ page.title }}">{{ page.title }}</a></h1>
<p class="entry-date">{{ page.date|date:"%Y-%m-%d" }}</p>
{{ content }}
<div id="disqus_container">
<!-- 多说评论框 start -->
<div class="ds-thread" data-title="{{ page.title }}" data-url="{{ site.url }}{{ page.url }}"></div>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"yangqian"};
(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);
})();
</script>
<!-- 多说公共JS代码 end -->
</div>
</div>
<div class="sidenav">
<h2>Blog</h2>
<ul class="artical-list">
{% for post in site.categories.blog%}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
<h2>Life</h2>
<ul class="artical-list">
{% for post in site.categories.life%}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
<h2>Project</h2>
<ul class="artical-list">
{% for post in site.categories.project%}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
</div>
<script src="/js/post.js" type="text/javascript"></script>