Skip to content

Commit b4be50b

Browse files
committed
Initial commit
0 parents  commit b4be50b

File tree

13 files changed

+278
-0
lines changed

13 files changed

+278
-0
lines changed

.editorconfig

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 4
11+
end_of_line = lf
12+
insert_final_newline = true
13+
14+
[*.toml]
15+
indent_size = 2
16+
17+
[*.yml]
18+
indent_size = 2
19+
20+
[*.css]
21+
indent_size = 2
22+
23+
# Tab indentation (no size specified)
24+
[Makefile]
25+
indent_style = tab

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# vscode
2+
.vscode
3+
4+
# Mac
5+
.DS_Store
6+
._.DS_Store

.gitmodules

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
[submodule "themes/hugo-theme-pure"]
3+
path = themes/hugo-theme-pure
4+
url = https://github.com/kaka-lin/hugo-theme-pure.git
5+
[submodule "public"]
6+
path = public
7+
url = https://github.com/kaka-lin/kaka-lin.github.io.git
8+
[submodule "content/posts/Notes"]
9+
path = content/posts/Notes
10+
url = https://github.com/kaka-lin/Notes.git

archetypes/default.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
draft: true
5+
---
6+

config.yml

+189
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
baseURL: https://kaka-lin.github.io/
2+
theme: hugo-theme-pure
3+
title: Kaka's Note
4+
defaultContentLanguage: en # en/zh/...
5+
footnoteReturnLinkContents:
6+
hasCJKLanguage: true
7+
paginate: 7
8+
enableEmoji: true
9+
PygmentsCodeFences: false
10+
googleAnalytics: "" # UA-XXXXXXXX-X
11+
permalinks:
12+
posts: /:year/:month/:filename/
13+
14+
taxonomies:
15+
category : categories
16+
tag : tags
17+
series : series
18+
outputFormats: # use for search. recommend not to modify
19+
SearchIndex:
20+
mediaType: "application/json"
21+
baseName: "searchindex"
22+
isPlainText: true
23+
notAlternative: true
24+
25+
outputs:
26+
home: ["HTML","RSS","SearchIndex"] # recommend not to modify
27+
28+
# sitemap
29+
sitemap:
30+
changefreq: monthly
31+
filename: sitemap.xml
32+
priority: 0.5
33+
34+
menu:
35+
main:
36+
- identifier: home
37+
name: Home
38+
title: Home
39+
url: /
40+
weight: 1
41+
42+
- identifier: archives
43+
name: Archives
44+
title: Archives
45+
url: /posts/
46+
weight: 2
47+
48+
- identifier: categories
49+
name: Categories
50+
title: Categories
51+
url: /categories/
52+
weight: 3
53+
54+
- identifier: tags
55+
name: Tags
56+
title: Tags
57+
url: /tags/
58+
weight: 4
59+
60+
- identifier: about
61+
name: About
62+
title: About
63+
url: /about/
64+
weight: 5
65+
66+
67+
params:
68+
since: 2020
69+
dateFormatToUse: "2006-01-02"
70+
enablePostCopyright: True
71+
# the directory under content folder that you want to render
72+
mainSections: ["posts"]
73+
# Enable/Disable menu icons
74+
# Icon Reference: http://blog.cofess.com/hexo-theme-pure/iconfont/demo_fontclass.html
75+
enableMathJax: true #Enable mathjax support, to use mathematical notations
76+
highlightjs:
77+
langs: ["python", "javascript"] # refer to http://staticfile.org/, search highlight.js, already have highlight.min.js
78+
79+
# Allows you to specify an override stylesheet
80+
# put custom.css in $hugo_root_dir/static/
81+
customCSS: css/custom.css
82+
83+
menuIcons:
84+
enable: true # navigation
85+
home: icon-home-fill
86+
archives: icon-archives-fill
87+
categories: icon-folder
88+
tags: icon-tags
89+
repository: icon-project
90+
books: icon-book-fill
91+
links: icon-friendship
92+
about: icon-cup-fill
93+
94+
# profile
95+
profile:
96+
enabled: true # Whether to show profile bar
97+
avatar: images/kaka.jpg
98+
gravatar: # Gravatar email address, if you enable Gravatar, your avatar config will be overriden
99+
author: Kaka Lin
100+
author_title: Software Engineer
101+
author_description: AIoT
102+
location: Taipei, Taiwan
103+
follow: https://github.com/kaka-lin
104+
# Social Links
105+
social:
106+
links:
107+
github: https://github.com/kaka-lin
108+
# twitter: https://twitter.com/
109+
# facebook: /
110+
# rss: /index.xml
111+
link_tooltip: false # enable the social link tooltip, options: true, false
112+
# Site
113+
site:
114+
logo:
115+
enabled: true
116+
width: 40
117+
height: 40
118+
url: favicon.ico
119+
title: Kaka's Note # page title
120+
favicon: favicon.ico
121+
board: <p></p> # 公告牌
122+
123+
# Share
124+
# weibo,qq,qzone,wechat,tencent,douban,diandian,facebook,twitter,google,linkedin
125+
#share:
126+
#enable: true
127+
#sites: weibo,qq,wechat,facebook,twitter
128+
#mobile_sites: weibo,qq,qzone
129+
130+
# Comment
131+
comment:
132+
type: # type disqus/gitalk/valine
133+
disqus: your_disqus_name # enter disqus shortname here
134+
gitalk: # gitalk. https://gitalk.github.io/
135+
owner: #必須. GitHub repository GitHub User or Organization。
136+
admin: #必须. GitHub repository 的所有者和合作者。
137+
repo: #必须. GitHub repository.
138+
ClientID: #必须. GitHub Application Client ID.
139+
ClientSecret: #必须. GitHub Application Client Secret.
140+
valine: # Valine. https://valine.js.org
141+
appid: # your leancloud application appid
142+
appkey: # your leancloud application appkey
143+
notify: # mail notifier , https://github.com/xCss/Valine/wiki
144+
verify: # Verification code
145+
placeholder: enjoy~ # comment box placeholder
146+
avatar: mm # gravatar style
147+
meta: nick,mail # custom comment header
148+
pageSize: 10 # pagination size
149+
visitor: false # Article reading statistic https://valine.js.org/visitor.html
150+
151+
# Donate
152+
donate:
153+
enable: false
154+
155+
156+
# PV
157+
pv:
158+
busuanzi:
159+
enable: false
160+
leancloud:
161+
enable: false # leancloud統計
162+
app_id: # leancloud <AppID>
163+
app_key: # leancloud <AppKey>
164+
165+
# wordcount
166+
postCount:
167+
enable: true
168+
wordcount: false # 文章數統計
169+
min2read: false # read time 閱讀時長預計
170+
171+
# config
172+
config:
173+
skin: theme-black # theme color default is white. other type [theme-black,theme-blue,theme-green,theme-purple]
174+
layout: main-center # main-left main-center main-right
175+
excerpt_link: Read More
176+
toc: true
177+
178+
# Sidebar
179+
sidebar: right
180+
181+
# Search
182+
search:
183+
enable: true # enable search. thanks for https://raw.githubusercontent.com/ppoffice/hexo-theme-icarus/master/source/js/insight.js
184+
185+
# Sidebar only the following widgets. you can remove any you don't like it.
186+
widgets:
187+
- category
188+
- tag
189+
- recent_posts

content/about.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "About"
3+
description: "About me"
4+
date: 2020-06-07
5+
author: "kaka"
6+
---
7+
8+
Hi, I'm kaka
9+
10+
This is my about page. :wave:

content/posts/Notes

Submodule Notes added at 88c22e3

content/posts/_index.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: "Posts"
3+
author: "kaka"
4+
---

deploy.sh

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
3+
# If a command fails then the deploy stops
4+
set -e
5+
6+
printf "\033[0;32mDeploying updates to GitHub...\033[0m\n"
7+
8+
# Build the project.
9+
hugo # if using a theme, replace with `hugo -t <YOURTHEME>`
10+
11+
# Go To Public folder
12+
cd public
13+
14+
# Add changes to git.
15+
git add .
16+
17+
# Commit changes.
18+
msg="rebuilding site $(date)"
19+
if [ -n "$*" ]; then
20+
msg="$*"
21+
fi
22+
git commit -m "$msg"
23+
24+
# Push source and build repos.
25+
git push origin master

public

Submodule public added at 1ba52cf

static/css/custom.css

Whitespace-only changes.

static/images/kaka.jpg

23.1 KB
Loading

themes/hugo-theme-pure

Submodule hugo-theme-pure added at 5b9197f

0 commit comments

Comments
 (0)