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
0 parents
commit 3c4a041
Showing
23 changed files
with
4,526 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,11 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,3 @@ | ||
node_modules/* | ||
*.log | ||
.vscode |
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,82 @@ | ||
|
||
# html lang | ||
language: | ||
- zh-CN | ||
- en | ||
|
||
# main menu navigation | ||
menu: | ||
home: / | ||
archives: /archives | ||
categories: /categories | ||
about: /about | ||
|
||
# favicon | ||
favicon: | ||
# in theme directory(source/imgs) | ||
normal: /imgs/favicon.ico | ||
|
||
# social links | ||
social: | ||
GitHub: https://github.com/liuyib && github | ||
Segmentfault: https://segmentfault.com/u/liuyib && segmentfault | ||
|
||
# sidebar avatar | ||
# in theme directory(source/imgs) | ||
avatar: /imgs/my_favorite.jpg | ||
|
||
# catalog of article in the sidebar | ||
catalog: | ||
enable: true | ||
|
||
|
||
# PWA | ||
# see https://github.com/JLHwung/hexo-offline | ||
pwa: | ||
enable: false | ||
manifest: /manifest.json | ||
|
||
# stylesheets loaded in the <head> | ||
stylesheets: | ||
- /css/index.css | ||
|
||
# scripts loaded in the end of the body | ||
scripts: | ||
- /js/index.js | ||
|
||
# copyright | ||
post_copyright: | ||
enable: true | ||
license: CC BY-NC-SA 4.0 | ||
license_url: https://creativecommons.org/licenses/by-nc-sa/4.0/ | ||
|
||
# comments | ||
# disqus | ||
disqus: | ||
enable: false | ||
|
||
# busuanzi count for PV / UV in site | ||
busuanzi: | ||
# count values only if the other configs are false | ||
enable: true | ||
# custom uv span for the whole site | ||
site_uv: true | ||
site_uv_header: <i class="fa fa-user"></i> | ||
site_uv_footer: | ||
# custom pv span for the whole site | ||
site_pv: true | ||
site_pv_header: <i class="fa fa-eye"></i> | ||
site_pv_footer: | ||
# custom pv span for one page only | ||
page_pv: true | ||
page_pv_header: <i class="fa fa-file"></i> | ||
page_pv_footer: | ||
|
||
# canvas ribbon | ||
# see: https://github.com/hustcc/ribbon.js | ||
canvas_ribbon: | ||
enable: false | ||
size: 150 | ||
alpha: 0.6 | ||
zIndex: -1 | ||
click_to_change: false |
Empty file.
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,37 @@ | ||
title: | ||
archive: Archive | ||
category: Category | ||
tag: Tag | ||
|
||
menu: | ||
home: Home | ||
archives: Archives | ||
categories: Categories | ||
tags: Tags | ||
about: About | ||
search: Search | ||
|
||
sidebar: | ||
overview: Overview | ||
catalog: Catalog | ||
|
||
post: | ||
created: Post Created | ||
modified: Post Modified | ||
posted: Posted on | ||
sticky: Sticky | ||
read_more: Read more | ||
untitled: Untitled | ||
visitors: Visitors | ||
word_count: Word count | ||
read_time: Reading time | ||
copyright: | ||
author: Post Author | ||
link: Post Link | ||
license_title: Copyright | ||
license_content: 'All articles in this blog are licensed under | ||
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally' | ||
|
||
footer: | ||
powered: 'Powered by %s' | ||
theme: Theme |
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,37 @@ | ||
title: | ||
archive: 归档 | ||
category: 分类 | ||
tag: 标签 | ||
|
||
menu: | ||
home: 首页 | ||
archives: 归档 | ||
categories: 分类 | ||
tags: 标签 | ||
about: 关于 | ||
search: 搜索 | ||
|
||
sidebar: | ||
overview: 站点概览 | ||
catalog: 文章目录 | ||
|
||
post: | ||
created: 创建于 | ||
modified: 更新于 | ||
posted: 发表于 | ||
sticky: 置顶 | ||
read_more: 阅读全文 | ||
untitled: 未命名 | ||
visitors: 阅读次数 | ||
word_count: 字数统计 | ||
read_time: 阅读时长 | ||
copyright: | ||
author: 本文作者 | ||
link: 本文链接 | ||
license_title: 版权声明 | ||
license_content: '本博客所有文章除特别声明外,均采用 | ||
<a href="%s" rel="external nofollow" target="_blank">%s</a> 许可协议。转载请注明出处!' | ||
|
||
footer: | ||
powered: '由 %s 强力驱动' | ||
theme: 主题 |
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,54 @@ | ||
|
||
extends includes/layout.pug | ||
|
||
block content | ||
- var categoriesList = list_categories({ show_count: false }) | ||
- var tagsList = list_tags({ show_count: false }) | ||
- var archivesList = list_archives({ show_count: false }) | ||
|
||
div.archive | ||
if !is_year() | ||
|
||
h1 Archives | ||
|
||
if theme.atom | ||
p The feed is available via | ||
a(href=theme.atom) atom | ||
span . | ||
br | ||
|
||
aside | ||
h2 Categories | ||
if categoriesList | ||
!= categoriesList | ||
else | ||
p None. | ||
br | ||
|
||
aside | ||
h2 Tags | ||
if tagsList | ||
!= tagsList | ||
else | ||
p None. | ||
br | ||
|
||
aside | ||
h2 Archives | ||
if archivesList | ||
!= archivesList | ||
else | ||
p None. | ||
br | ||
|
||
else | ||
|
||
h1= page.month + '/' + page.year | ||
|
||
- page.posts.each(function(article){ | ||
.archive-list-item | ||
a(href=url_for(article.path))= article.title | ||
time(datetime=date_xml(article.date))= date(article.date) | ||
- }) | ||
|
||
#paginator!= paginator() |
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,11 @@ | ||
extends includes/layout.pug | ||
|
||
block content | ||
#category | ||
h1= page.category | ||
- page.posts.each(function(article){ | ||
.category-item | ||
a(href=url_for(article.path))= article.title | ||
time(datetime=date_xml(article.date))= date(article.date) | ||
- }) | ||
#paginator!= paginator() |
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,47 @@ | ||
|
||
- var pageTitle = page.title || config.subtitle || '' | ||
- if (is_archive()) pageTitle = 'Archives' | ||
- if (is_tag()) pageTitle = 'Tag: ' + page.tag | ||
- if (is_category()) pageTitle = 'Category: ' + page.category | ||
- if (is_month()) pageTitle += ': ' + page.month + '/' + page.year | ||
- if (is_year()) pageTitle += ': ' + page.year | ||
- pageTitle += config.title | ||
|
||
doctype html | ||
html(lang=config.language) | ||
head | ||
meta(charset='UTF-8') | ||
title= pageTitle | ||
if theme.stylesheets !== undefined && theme.stylesheets.length > 0 | ||
//- stylesheets list from _config.yml | ||
each url in theme.stylesheets | ||
link(rel='stylesheet', href=url) | ||
body | ||
#menu-outer | ||
nav#menu-inner | ||
each url, label in theme.menu | ||
a(href=url)= label | ||
#content-outer | ||
#content-inner | ||
if body | ||
div!= body | ||
else | ||
block content | ||
#bottom-outer | ||
#bottom-inner | ||
span Site construction by | ||
span= ' ' + config.author + ' ' | ||
span using | ||
a(href='http://hexo.io') | ||
span hexo blog framework | ||
span . | ||
br | ||
a(href=config.root) Home | ||
if theme.scripts !== undefined && theme.scripts.length > 0 | ||
//- scripts list from config.yml | ||
each url in theme.scripts | ||
script(src=url) | ||
script | ||
//<![CDATA[ | ||
document.write("<script async src='http://HOST:3000/browser-sync/browser-sync-client.js?v=2.26.5'><\/script>".replace("HOST", location.hostname)); | ||
//]]> |
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,9 @@ | ||
|
||
if page.posts.length > 0 | ||
#recent-posts | ||
h1 Recent Posts | ||
each post in page.posts.sort('date', -1).limit(10).toArray() | ||
.recent-post-item | ||
a(href=url_for(post.path))= post.title | ||
if post.date | ||
time(datetime=post.date.toJSON())= date(post.date, date_format) |
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,5 @@ | ||
extends includes/layout.pug | ||
|
||
block content | ||
include includes/recent-posts.pug | ||
#paginator!= paginator() |
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,7 @@ | ||
extends includes/layout.pug | ||
|
||
block content | ||
article#page | ||
h1= page.title | ||
!= page.content | ||
#paginator!= paginator() |
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,7 @@ | ||
extends includes/layout.pug | ||
|
||
block content | ||
article#post | ||
h1= page.title | ||
!= page.content | ||
#paginator!= paginator() |
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,11 @@ | ||
extends includes/layout.pug | ||
|
||
block content | ||
div#tag | ||
h1= 'Tag: ' + page.tag | ||
- page.posts.each(function(article){ | ||
a(href=url_for(article.path))= article.title | ||
time(datetime=date_xml(article.date))= date(article.date) | ||
br.clear | ||
- }) | ||
#paginator!= paginator() |
Oops, something went wrong.