Skip to content

Commit 3cc41d5

Browse files
committed
working on post
1 parent 8f4b2ac commit 3cc41d5

File tree

13 files changed

+73
-32
lines changed

13 files changed

+73
-32
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@
2323
* http://liuyuping459.github.io/
2424
* http://vjudge1.github.io/
2525
* http://liberize.me/
26+
* http://huangxuan.me/

_includes/footer.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ <h2 class="footer-heading">{{ site.title }}</h2>
1616
<ul class="social-media-list">
1717
{% if site.github_username %}
1818
<li>
19-
<!-- {% include icon-github.html username=site.github_username %} -->
2019
<a href="{{site.github_url}}"><i class="fa fa-github"></i><span class="username">{{ site.github_username }}</span></a>
2120
</li>
2221
{% endif %}
2322

2423
{% if site.twitter_username %}
2524
<li>
26-
{% include icon-twitter.html username=site.twitter_username %}
2725
</li>
2826
{% endif %}
2927
</ul>

_includes/icon-github.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

_includes/icon-github.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

_includes/icon-twitter.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

_includes/icon-twitter.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

_layouts/default.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77

88
{% include header.html %}
99

10-
<div class="page-content">
11-
<div class="wrapper">
1210
{{ content }}
13-
</div>
14-
</div>
1511

1612
{% include footer.html %}
1713

_layouts/post.html

Lines changed: 60 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,66 @@
11
---
22
layout: default
33
---
4-
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
54

6-
<header class="post-header">
7-
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
8-
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
9-
</header>
5+
<!--
6+
文章 左边大部分区域
7+
目录 右上
8+
相关文章 右下
9+
-->
1010

11-
<div class="post-content" itemprop="articleBody">
12-
{{ content }}
13-
</div>
11+
<div class="post-page">
12+
<div class="post">
13+
<h1>{{ page.title }}</h1>
14+
<p>
15+
<i class="fa fa-calendar"></i>{{ page.date | date: "%b %-d, %Y" }}
16+
{% if page.author %} • <i class="fa fa-user"></i>{{ page.author }}
17+
{% endif %}{% if page.meta %} • <i class="fa fa-key"></i>{{ page.meta }}{% endif %}
18+
<span class="cate"></span>
19+
<span class="tag"></span>
20+
</p>
1421

15-
</article>
22+
<article itemscope itemtype="http://schema.org/BlogPosting">
23+
24+
<!-- <header class="post-header">
25+
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
26+
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
27+
</header>
28+
29+
<div class="post-content" itemprop="articleBody">
30+
{{ content }}
31+
</div> -->
32+
33+
{{ content }}
34+
35+
</article>
36+
</div>
37+
<div class="content"></div>
38+
<div class="related-post">
39+
{% assign hasSimilar = '' %}
40+
{% for post in site.related_posts %}
41+
{% assign postHasSimilar = false %}
42+
{% for tag in post.tags %}
43+
{% for thisTag in page.tags %}
44+
{% if postHasSimilar == false and hasSimilar.size < 6 and post != page and tag == thisTag %}
45+
{% if hasSimilar.size == 0 %}
46+
<h4>Similar Posts</h4>
47+
<ul>
48+
{% endif %}
49+
<li class="relatedPost">
50+
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}
51+
{% if post.series %}
52+
(Series: {{ post.series }})
53+
{% endif %}
54+
</a>
55+
</li>
56+
{% capture hasSimilar %}{{ hasSimilar }}*{% endcapture %}
57+
{% assign postHasSimilar = true %}
58+
{% endif %}
59+
{% endfor %}
60+
{% endfor %}
61+
{% endfor %}
62+
{% if hasSimilar.size > 0 %}
63+
</ul>
64+
{% endif %}
65+
</div>
66+
</div>

_posts/2016-03-12-jekyll-theme-version-1.5.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ layout: post
33
title: "对本博客主题的改版"
44
date: 2016-03-12 11:40:18 +0800
55
categories: jekyll
6-
tags: jekyll 端口 markdown
6+
tags: jekyll 端口 markdown
77
---
88

9-
* [TOC]
10-
9+
* content
10+
{:toc}
1111

1212

1313
## 改版重构说明

_sass/_post.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)