Skip to content

Commit a18c1bf

Browse files
committed
update
1 parent 36a5e10 commit a18c1bf

23 files changed

+52
-64
lines changed

archetypes/default.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ series: []
1111
featuredImage: ""
1212
featuredImagePreview: ""
1313

14-
toc:
15-
enable: true
1614
---
1715

1816
TODO

blog.sh

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,6 @@ fi
88

99
filename=$1
1010
today=$(date +"%F")
11-
date=${today}T$(date +"%T+08:00")
12-
post_dir=content/posts
13-
post_name=${today}-${filename}.md
14-
post_path=${post_dir}/${post_name}
11+
post_file=${today}-${filename}.md
1512

16-
if [ $1 == 0 ];then
17-
post_name=${today}.md
18-
filename=${today}
19-
title=${today}
20-
post_path=${post_dir}/chat/${post_name}
21-
elif [ $1 == 1 ];then
22-
title="资治通鉴卷x纪xpx"
23-
filename="history-as-a-mirror-bookx-x-periodx-pagex"
24-
post_name=${today}-${filename}.md
25-
post_path=${post_dir}/chat/${post_name}
26-
tag="资治通鉴"
27-
memo="- [ ] 修改文件名\n - [ ] 修改slug \n - [ ] 修改title"
28-
fi
29-
30-
current_dir=$(dirname $(readlink -f "$0"))
31-
full_post_path=${current_dir}/${post_path}
32-
33-
cat > ${post_path} <<EOF
34-
---
35-
title: "${title}"
36-
slug: $filename
37-
date: ${date}
38-
tags: [${tag}]
39-
draft: true
40-
---
41-
${memo}
42-
EOF
43-
44-
echo "${full_post_path} created"
13+
hugo new posts/${post_file}

content/posts/2013-05-03-a-letter-to-wang.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: "给王二的一封信"
33
date: 2013-05-03T01:35:00+08:00
44
lastmod: 2013-05-03T01:35:00+08:00
5+
toc: false
6+
featuredImage: https://images.unsplash.com/photo-1529251333259-d36cccaf22ea?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=741&q=80
57
---
68

79
亲爱的王二:

content/posts/2013-05-31-my-feeling.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: "碎语闲言"
33
date: 2013-05-31T01:52:00+08:00
44
lastmod: 2013-05-31T01:52:00+08:00
5+
toc: false
6+
featuredImage: https://images.unsplash.com/photo-1505682634904-d7c8d95cdc50?ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80
57
---
68

79
自信爱读书,看了纳博科夫,自卑不已。与之相比,我那只能算吞书,尚未入门,难怪消化不良。

content/posts/2013-06-23-talk-about-hypocrisy.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: "谈装"
33
date: 2013-06-23T02:08:00+08:00
44
lastmod: 2013-06-23T02:08:00+08:00
5-
slug: talk-about-hypocrisy
5+
toc: false
6+
featuredImage: https://images.unsplash.com/photo-1505682634904-d7c8d95cdc50?ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80
67
---
78

89
常感古人造字之形象之会意。

content/posts/2013-09-20-doggerel.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: 打油诗一首
33
date: 2013-09-20T02:04:00+08:00
44
lastmod: 2013-09-20T02:04:00+08:00
5-
slug: doggerel
5+
toc: false
6+
featuredImage: https://images.unsplash.com/photo-1472162072942-cd5147eb3902?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=750&q=80
67
---
78

89
寂寂兮书蠹,至今乎三年。

content/posts/2013-09-21-old-well.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: "老井"
33
date: 2013-09-21T01:59:00+08:00
44
lastmod: 2013-09-21T01:59:00+08:00
5-
slug: old-well
5+
featuredImage: https://cdn.pixabay.com/photo/2015/05/28/20/03/fountain-788430_960_720.jpg
6+
toc: false
67
---
78

89
自从搬到马路边,似乎就再也没有看到井了。我指的是那种年代久远,用青石垒成,布满青苔的古井。

content/posts/2013-11-15-literary-criticism-and-common-reader.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: "文艺批评与普通读者"
33
date: 2013-11-15T02:30:00
44
lastmod: 2013-11-15T02:30:00
5-
slug: literary-criticism-and-common-reader
5+
toc: false
6+
featuredImage: https://images.unsplash.com/photo-1423592707957-3b212afa6733?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=889&q=80
67
---
78

89
周作人的中期散文以其独创的“文抄体”著称,特点是在文章中大段引用他人之文,微评或不表意见。时人讥之为“文抄公”。他在《苦竹杂记.后记》中说:“但是不佞之抄却亦不易,夫天下之书多矣,不能一一抄之,则自然只能选取其一二,又从而录取其一二而已,此乃甚难事也。”晚年给鲍耀明的书信中也提到,“没有意见怎么抄”、“不过我不愿意直说”。此中意味也只有一二友人知之,如钱玄同等。因《五十自寿诗》为人诟骂时,鲁迅在私下对人说:“周作人自寿诗,诚有讽世之意,然此种微辞,已为今之青年所不憭,群公相和,则多近肉麻,于是火上添油,遽成众矢之的。”到底是曾经并肩作战的兄弟。

content/posts/2014-01-20-read-book-in-childhood.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: "小时读书"
33
date: 2014-01-20T02:18:00+08:00
44
lastmod: 2014-01-20T02:18:00+08:00
5-
slug: read-book-in-childhood
5+
featuredImage: https://images.unsplash.com/photo-1491841550275-ad7854e35ca6?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=667&q=80
6+
toc: false
67
---
78

89
李白有诗:小时不识月,呼作白玉盘。初次见月,没有“月”这个概念,故不识,此乃小孩之常情。

content/posts/2017-01-09-why-do-you-need-cards-to-manage-knownage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
title: "为什么你需要用卡片进行知识管理?"
33
date: 2017-01-09T01:35:00+08:00
44
lastmod: 2017-01-09T01:35:00+08:00
5-
slug: why-do-you-need-cards-to-manage-knownage
6-
toc: true
5+
featuredImage: https://images.unsplash.com/photo-1569235186275-626cb53b83ce?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=752&q=80
76
---
87

98
## 1.卡片用于治学
9+
1010
为什么我们要用卡片进行知识管理,首先看看网上一段文字:
1111
> 鲁迅写《中国小说史略》,分类摘抄的卡片就有**五千多张**;姚学垠写《李自成》,阅读大量史籍,摘录卡片有**二万多张**;明史专家吴晗一生中做的卡片难以计数,其中仅有关《明史》的卡片就有**20万张**之多。
1212

0 commit comments

Comments
 (0)