-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
4,942 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
extends ../_partial/layout | ||
|
||
block content | ||
.container.post | ||
section.article | ||
.title= page.title | ||
.date 写于#{moment(page.date).format(theme.date_format)} | ||
.content!= page.content | ||
if page.tags | ||
.tags!= list_tags(page.tags, { show_count: false, class: 'tag', style: false, separator: '' }) | ||
|
||
.container | ||
ul.nav | ||
if page.prev | ||
li 上一篇: | ||
a(href=url_for(page.prev.path))= page.prev.title || '未命名' | ||
if page.next | ||
li 下一篇: | ||
a(href=url_for(page.next.path))= page.next.title || '未命名' | ||
|
||
if !index && config.disqus_shortname | ||
.comments | ||
#disqus_thread | ||
noscript Please enable JavaScript to view the | ||
a(href="http://disqus.com/?ref_noscript") comments powered by Disqus | ||
|
||
block js | ||
!= js('script/post') | ||
if config.disqus_shortname | ||
script | ||
| var disqus_shortname = '!{config.disqus_shortname}'; | ||
if page.permalink | ||
| var disqus_url = '!{page.permalink}'; | ||
| (function(){ | ||
| var dsq = document.createElement('script'); | ||
| dsq.type = 'text/javascript'; | ||
| dsq.async = true; | ||
| dsq.src = '//' + disqus_shortname + '.disqus.com/!{page.comments ? 'embed.js' : 'count.hs'}'; | ||
| (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
| })(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
extends ../_partial/layout | ||
|
||
block content | ||
.container.post | ||
section.article | ||
.title= page.title | ||
.date 写于#{moment(page.date).format(theme.date_format)} | ||
.content!= page.content | ||
if page.tags | ||
.tags!= list_tags(page.tags, { show_count: false, class: 'tag', style: false, separator: '' }) | ||
|
||
.container | ||
ul.nav | ||
if page.prev | ||
li 上一篇: | ||
a(href=url_for(page.prev.path))= page.prev.title || '未命名' | ||
if page.next | ||
li 下一篇: | ||
a(href=url_for(page.next.path))= page.next.title || '未命名' | ||
|
||
if !index && config.disqus_shortname | ||
.comments | ||
#disqus_thread | ||
noscript Please enable JavaScript to view the | ||
a(href="http://disqus.com/?ref_noscript") comments powered by Disqus | ||
|
||
block js | ||
!= js('script/post') | ||
if config.disqus_shortname | ||
script | ||
| var disqus_shortname = '!{config.disqus_shortname}'; | ||
if page.permalink | ||
| var disqus_url = '!{page.permalink}'; | ||
| (function(){ | ||
| var dsq = document.createElement('script'); | ||
| dsq.type = 'text/javascript'; | ||
| dsq.async = true; | ||
| dsq.src = '//' + disqus_shortname + '.disqus.com/!{page.comments ? 'embed.js' : 'count.hs'}'; | ||
| (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
| })(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
extends ../_partial/layout | ||
|
||
block content | ||
.container.post | ||
section.article | ||
.title= page.title | ||
.date 写于#{moment(page.date).format(theme.date_format)} | ||
.content!= page.content | ||
if page.tags | ||
.tags!= list_tags(page.tags, { show_count: false, class: 'tag', style: false, separator: '' }) | ||
|
||
.container | ||
ul.nav | ||
if page.prev | ||
li 上一篇: | ||
a(href=url_for(page.prev.path))= page.prev.title || '未命名' | ||
if page.next | ||
li 下一篇: | ||
a(href=url_for(page.next.path))= page.next.title || '未命名' | ||
|
||
if !index && config.disqus_shortname | ||
.comments | ||
#disqus_thread | ||
noscript Please enable JavaScript to view the | ||
a(href="http://disqus.com/?ref_noscript") comments powered by Disqus | ||
|
||
block js | ||
!= js('script/post') | ||
if config.disqus_shortname | ||
script | ||
| var disqus_shortname = '!{config.disqus_shortname}'; | ||
if page.permalink | ||
| var disqus_url = '!{page.permalink}'; | ||
| (function(){ | ||
| var dsq = document.createElement('script'); | ||
| dsq.type = 'text/javascript'; | ||
| dsq.async = true; | ||
| dsq.src = '//' + disqus_shortname + '.disqus.com/!{page.comments ? 'embed.js' : 'count.hs'}'; | ||
| (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
| })(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
extends ../_partial/layout | ||
|
||
block content | ||
.container.post | ||
section.article | ||
.title= page.title | ||
.date 写于#{moment(page.date).format(theme.date_format)} | ||
.content!= page.content | ||
if page.tags | ||
.tags!= list_tags(page.tags, { show_count: false, class: 'tag', style: false, separator: '' }) | ||
|
||
.container | ||
ul.nav | ||
if page.prev | ||
li 上一篇: | ||
a(href=url_for(page.prev.path))= page.prev.title || '未命名' | ||
if page.next | ||
li 下一篇: | ||
a(href=url_for(page.next.path))= page.next.title || '未命名' | ||
|
||
if !index && config.disqus_shortname | ||
.comments | ||
#disqus_thread | ||
noscript Please enable JavaScript to view the | ||
a(href="http://disqus.com/?ref_noscript") comments powered by Disqus | ||
|
||
block js | ||
!= js('script/post') | ||
if config.disqus_shortname | ||
script | ||
| var disqus_shortname = '!{config.disqus_shortname}'; | ||
if page.permalink | ||
| var disqus_url = '!{page.permalink}'; | ||
| (function(){ | ||
| var dsq = document.createElement('script'); | ||
| dsq.type = 'text/javascript'; | ||
| dsq.async = true; | ||
| dsq.src = '//' + disqus_shortname + '.disqus.com/!{page.comments ? 'embed.js' : 'count.hs'}'; | ||
| (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
| })(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
extends ../_partial/layout | ||
|
||
block content | ||
.container.post | ||
section.article | ||
.title= page.title | ||
.date 写于#{moment(page.date).format(theme.date_format)} | ||
.content!= page.content | ||
if page.tags | ||
.tags!= list_tags(page.tags, { show_count: false, class: 'tag', style: false, separator: '' }) | ||
|
||
.container | ||
ul.nav | ||
if page.prev | ||
li 上一篇: | ||
a(href=url_for(page.prev.path))= page.prev.title || '未命名' | ||
if page.next | ||
li 下一篇: | ||
a(href=url_for(page.next.path))= page.next.title || '未命名' | ||
|
||
if !index && config.disqus_shortname | ||
.comments | ||
#disqus_thread | ||
noscript Please enable JavaScript to view the | ||
a(href="http://disqus.com/?ref_noscript") comments powered by Disqus | ||
|
||
block js | ||
!= js('script/post') | ||
if config.disqus_shortname | ||
script | ||
| var disqus_shortname = '!{config.disqus_shortname}'; | ||
if page.permalink | ||
| var disqus_url = '!{page.permalink}'; | ||
| (function(){ | ||
| var dsq = document.createElement('script'); | ||
| dsq.type = 'text/javascript'; | ||
| dsq.async = true; | ||
| dsq.src = '//' + disqus_shortname + '.disqus.com/!{page.comments ? 'embed.js' : 'count.hs'}'; | ||
| (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
| })(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
extends ../_partial/layout | ||
|
||
block content | ||
.container.post | ||
section.article | ||
.title= page.title | ||
.date 写于#{moment(page.date).format(theme.date_format)} | ||
.content!= page.content | ||
if page.tags | ||
.tags!= list_tags(page.tags, { show_count: false, class: 'tag', style: false, separator: '' }) | ||
|
||
.container | ||
ul.nav | ||
if page.prev | ||
li 上一篇: | ||
a(href=url_for(page.prev.path))= page.prev.title || '未命名' | ||
if page.next | ||
li 下一篇: | ||
a(href=url_for(page.next.path))= page.next.title || '未命名' | ||
|
||
if !index && config.disqus_shortname | ||
.comments | ||
#disqus_thread | ||
noscript Please enable JavaScript to view the | ||
a(href="http://disqus.com/?ref_noscript") comments powered by Disqus | ||
|
||
block js | ||
!= js('script/post') | ||
if config.disqus_shortname | ||
script | ||
| var disqus_shortname = '!{config.disqus_shortname}'; | ||
if page.permalink | ||
| var disqus_url = '!{page.permalink}'; | ||
| (function(){ | ||
| var dsq = document.createElement('script'); | ||
| dsq.type = 'text/javascript'; | ||
| dsq.async = true; | ||
| dsq.src = '//' + disqus_shortname + '.disqus.com/!{page.comments ? 'embed.js' : 'count.hs'}'; | ||
| (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
| })(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
extends ../_partial/layout | ||
|
||
block content | ||
.container.post | ||
section.article | ||
.title= page.title | ||
.date 写于#{moment(page.date).format(theme.date_format)} | ||
.content!= page.content | ||
if page.tags | ||
.tags!= list_tags(page.tags, { show_count: false, class: 'tag', style: false, separator: '' }) | ||
|
||
.container | ||
ul.nav | ||
if page.prev | ||
li 上一篇: | ||
a(href=url_for(page.prev.path))= page.prev.title || '未命名' | ||
if page.next | ||
li 下一篇: | ||
a(href=url_for(page.next.path))= page.next.title || '未命名' | ||
|
||
if !index && config.disqus_shortname | ||
.comments | ||
#disqus_thread | ||
noscript Please enable JavaScript to view the | ||
a(href="http://disqus.com/?ref_noscript") comments powered by Disqus | ||
|
||
block js | ||
!= js('script/post') | ||
if config.disqus_shortname | ||
script | ||
| var disqus_shortname = '!{config.disqus_shortname}'; | ||
if page.permalink | ||
| var disqus_url = '!{page.permalink}'; | ||
| (function(){ | ||
| var dsq = document.createElement('script'); | ||
| dsq.type = 'text/javascript'; | ||
| dsq.async = true; | ||
| dsq.src = '//' + disqus_shortname + '.disqus.com/!{page.comments ? 'embed.js' : 'count.hs'}'; | ||
| (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
| })(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
yuxiangyun.top |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
extends ../_partial/layout | ||
|
||
block content | ||
.container.post | ||
section.article | ||
.title= page.title | ||
.date 写于#{moment(page.date).format(theme.date_format)} | ||
.content!= page.content | ||
if page.tags | ||
.tags!= list_tags(page.tags, { show_count: false, class: 'tag', style: false, separator: '' }) | ||
|
||
.container | ||
ul.nav | ||
if page.prev | ||
li 上一篇: | ||
a(href=url_for(page.prev.path))= page.prev.title || '未命名' | ||
if page.next | ||
li 下一篇: | ||
a(href=url_for(page.next.path))= page.next.title || '未命名' | ||
|
||
if !index && config.disqus_shortname | ||
.comments | ||
#disqus_thread | ||
noscript Please enable JavaScript to view the | ||
a(href="http://disqus.com/?ref_noscript") comments powered by Disqus | ||
|
||
block js | ||
!= js('script/post') | ||
if config.disqus_shortname | ||
script | ||
| var disqus_shortname = '!{config.disqus_shortname}'; | ||
if page.permalink | ||
| var disqus_url = '!{page.permalink}'; | ||
| (function(){ | ||
| var dsq = document.createElement('script'); | ||
| dsq.type = 'text/javascript'; | ||
| dsq.async = true; | ||
| dsq.src = '//' + disqus_shortname + '.disqus.com/!{page.comments ? 'embed.js' : 'count.hs'}'; | ||
| (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
| })(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
extends ../_partial/layout | ||
|
||
block content | ||
.container | ||
- const postsByYear = {}; | ||
- // 按年份将文章分组 | ||
- for (let i = 0; i < site.posts.data.length; i++) { | ||
- const post = site.posts.data[i]; | ||
- if (!page.year || post.date.year() === page.year) { | ||
- const year = post.date.year(); | ||
- if (!postsByYear[year]) { | ||
- postsByYear[year] = []; | ||
- } | ||
- postsByYear[year].push(post); | ||
- } | ||
- } | ||
- // 按年份倒序排序并返回结果 | ||
- const sortedYears = Object.keys(postsByYear).sort((a, b) => b - a); | ||
- const sortedPosts = sortedYears.map(year => [year, postsByYear[year]]); | ||
each group in sortedPosts | ||
.year-wrap | ||
.year | ||
a.title(href=url_for(config.archive_dir + '/' + group[0]))= group[0] | ||
.archives | ||
each post in group[1] | ||
.post-archive | ||
.post-archive__content | ||
.post-archive__month= time(post.date, 'MM月') | ||
.post-archive__body | ||
a.post-archive__title(href=url_for(post.path))= post.title || '未命名' | ||
.post-archive__excerpt | ||
.post-archive__excerpt-content!= post.excerpt |
Oops, something went wrong.