Skip to content

Commit 6b61f63

Browse files
authored
Hugo (#41)
* clean gridsome * change to hugo && papermod theme * update pi symbol * update github action
1 parent 75efa4e commit 6b61f63

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+241
-11314
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/gh-pages.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build & Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
fetch-depth: 1
19+
20+
- name: Setup Hugo
21+
uses: peaceiris/actions-hugo@v2
22+
with:
23+
hugo-version: 'latest'
24+
25+
- name: Build
26+
run: hugo --minify
27+
28+
- name: Deploy
29+
uses: peaceiris/actions-gh-pages@v3
30+
env:
31+
github_token: ${{ secrets.ACCESS_TOKEN }}
32+
publish_dir: ./public

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
**/.temp
44
node_modules
55
dist
6+
public

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/PaperMod"]
2+
path = themes/PaperMod
3+
url = https://github.com/adityatelange/hugo-PaperMod.git

archetypes/default.md

Lines changed: 6 additions & 0 deletions
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

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
baseURL: "https://wsine.github.io/"
2+
title: "Wsine's blog"
3+
paginate: 5
4+
theme: PaperMod
5+
copyright: "Copyright © 2019-Now · CC [BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en)"
6+
7+
enableInlineShortcodes: true
8+
enableRobotsTXT: true
9+
buildDrafts: false
10+
buildFuture: true
11+
buildExpired: true
12+
enableEmoji: true
13+
# googleAnalytics: UA-123-45
14+
15+
minify:
16+
disableXML: true
17+
minifyOutput: true
18+
19+
outputs:
20+
home:
21+
- HTML
22+
- RSS
23+
- JSON # is necessary
24+
25+
params:
26+
env: production # to enable google analytics, opengraph, twitter-cards and schema.
27+
title: "Wsine's blog"
28+
description: "爱分享爱写文章的科研狗"
29+
keywords: [Blog, Research]
30+
author: Wsine
31+
images: ["author.jpg"]
32+
DateFormat: "2006, January 2"
33+
defaultTheme: auto # dark, light
34+
disableThemeToggle: false
35+
36+
ShowReadingTime: false
37+
ShowShareButtons: false
38+
ShowPostNavLinks: true
39+
ShowBreadCrumbs: false
40+
disableSpecial1stPost: false
41+
disableScrollToTop: false
42+
comments: false
43+
hidemeta: false
44+
hideSummary: false
45+
showtoc: true
46+
tocopen: false
47+
48+
assets:
49+
# disableHLJS: true # to disable highlight.js
50+
# disableFingerprinting: true
51+
favicon: "favicon.ico"
52+
favicon16x16: "favicon-16x16.png"
53+
favicon32x32: "favicon-32x32.png"
54+
apple_touch_icon: "apple-touch-icon.png"
55+
safari_pinned_tab: "favicon.png"
56+
57+
label:
58+
text: "Wsine's blog"
59+
# icon: "https://github.com/Wsine/blog/raw/master/src/assets/images/author.jpg"
60+
iconHeight: 35
61+
62+
# home-info mode
63+
homeInfoParams:
64+
Title: "Hi friend \U0001F44B"
65+
Content: Welcome to my blog, here is something about life and productivity. hope you enjoy.
66+
67+
socialIcons:
68+
- name: email
69+
url: "mailto:[email protected]"
70+
- name: github
71+
url: "https://github.com/Wsine"
72+
- name: sspai
73+
url: "https://sspai.com/u/wsine/posts"
74+
- name: rss
75+
url: "https://wsine.github.io/blog/feed.xml"
76+
77+
# analytics:
78+
# google:
79+
# SiteVerificationTag: "XYZabc"
80+
81+
cover:
82+
hidden: true # hide everywhere but not in structured data
83+
hiddenInList: true # hide on list pages and home
84+
hiddenInSingle: true # hide on single page
85+
86+
editPost:
87+
URL: "https://github.com/Wsine/blog/blob/master/content"
88+
Text: "Suggest Changes" # edit text
89+
appendFilePath: true # to append file path to Edit link
90+
91+
# for search
92+
# https://fusejs.io/api/options.html
93+
fuseOpts:
94+
isCaseSensitive: false
95+
shouldSort: true
96+
location: 0
97+
distance: 1000
98+
threshold: 0.4
99+
minMatchCharLength: 0
100+
keys: ["title", "permalink", "summary", "content"]
101+
menu:
102+
main:
103+
- identifier: Archive
104+
name: Archive
105+
url: /archives/
106+
weight: 10
107+
- identifier: Tags
108+
name: Tags
109+
url: /tags/
110+
weight: 20
111+
- identifier: Search
112+
name: Search
113+
url: /search/
114+
weight: 30

content/archives.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "Archive"
3+
layout: "archives"
4+
# url: "/archives"
5+
summary: "archives"
6+
---

content/search.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: "Search"
3+
layout: "search"
4+
---

gridsome.config.js

Lines changed: 0 additions & 71 deletions
This file was deleted.

gridsome.server.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)