Skip to content

Commit ee0e81b

Browse files
committed
init hugo pages
1 parent 423d298 commit ee0e81b

File tree

5 files changed

+153
-0
lines changed

5 files changed

+153
-0
lines changed

.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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
3+
date = {{ .Date }}
4+
draft = true
5+
+++

content/posts/Welcome.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
+++
2+
title = 'Welcome'
3+
date = 2024-05-22T11:39:30+08:00
4+
draft = true
5+
+++
6+
7+
Gig is Gentoo.
8+
It keeps native Gentoo experience, but with some improvements for Chinese users.

hugo.yaml

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
baseURL: https://gig-os.org/
2+
languageCode: en-us
3+
title: Gig OS
4+
paginate: 5
5+
theme: ["PaperMod"]
6+
7+
enableRobotsTXT: true
8+
buildDrafts: false
9+
buildFuture: false
10+
buildExpired: false
11+
12+
minify:
13+
disableXML: true
14+
minifyOutput: true
15+
16+
params:
17+
env: production # to enable google analytics, opengraph, twitter-cards and schema.
18+
title: Gig OS
19+
description: "Gig is Gentoo"
20+
keywords: [Blog, Portfolio, PaperMod]
21+
author: Me
22+
# author: ["Me", "You"] # multiple authors
23+
images: ["<link or path of image for opengraph, twitter-cards>"]
24+
DateFormat: "January 2, 2006"
25+
defaultTheme: auto # dark, light
26+
disableThemeToggle: false
27+
28+
ShowReadingTime: true
29+
ShowShareButtons: true
30+
ShowPostNavLinks: true
31+
ShowBreadCrumbs: true
32+
ShowCodeCopyButtons: false
33+
ShowWordCount: true
34+
ShowRssButtonInSectionTermList: true
35+
UseHugoToc: true
36+
disableSpecial1stPost: false
37+
disableScrollToTop: false
38+
comments: false
39+
hidemeta: false
40+
hideSummary: false
41+
showtoc: false
42+
tocopen: false
43+
44+
assets:
45+
# disableHLJS: true # to disable highlight.js
46+
# disableFingerprinting: true
47+
favicon: "<link / abs url>"
48+
favicon16x16: "<link / abs url>"
49+
favicon32x32: "<link / abs url>"
50+
apple_touch_icon: "<link / abs url>"
51+
safari_pinned_tab: "<link / abs url>"
52+
53+
label:
54+
text: "Home"
55+
icon: /apple-touch-icon.png
56+
iconHeight: 35
57+
58+
# profile-mode
59+
profileMode:
60+
enabled: false # needs to be explicitly set
61+
title: Gig OS
62+
subtitle: "Gig is Gentoo"
63+
imageUrl: "<img location>"
64+
imageWidth: 120
65+
imageHeight: 120
66+
imageTitle: my image
67+
buttons:
68+
- name: Posts
69+
url: posts
70+
- name: Tags
71+
url: tags
72+
73+
# home-info mode
74+
homeInfoParams:
75+
Title: "Hi there \U0001F44B"
76+
Content: Welcome to use Gig OS
77+
78+
socialIcons:
79+
- name: telegram
80+
url: "https://t.me/gig_os_linux"
81+
- name: github
82+
url: "https://github.com/Gig-OS"
83+
84+
analytics:
85+
google:
86+
SiteVerificationTag: "XYZabc"
87+
bing:
88+
SiteVerificationTag: "XYZabc"
89+
yandex:
90+
SiteVerificationTag: "XYZabc"
91+
92+
cover:
93+
hidden: true # hide everywhere but not in structured data
94+
hiddenInList: true # hide on list pages and home
95+
hiddenInSingle: true # hide on single page
96+
97+
editPost:
98+
URL: "https://github.com/Gig-OS/Gig-OS.Github.io/content"
99+
Text: "Suggest Changes" # edit text
100+
appendFilePath: true # to append file path to Edit link
101+
102+
# for search
103+
# https://fusejs.io/api/options.html
104+
fuseOpts:
105+
isCaseSensitive: false
106+
shouldSort: true
107+
location: 0
108+
distance: 1000
109+
threshold: 0.4
110+
minMatchCharLength: 0
111+
limit: 10 # refer: https://www.fusejs.io/api/methods.html#search
112+
keys: ["title", "permalink", "summary", "content"]
113+
menu:
114+
main:
115+
- identifier: categories
116+
name: categories
117+
url: /categories/
118+
weight: 10
119+
- identifier: tags
120+
name: tags
121+
url: /tags/
122+
weight: 20
123+
- identifier: gig-os
124+
name: gig-os.org
125+
url: https://gig-os.org
126+
weight: 30
127+
# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
128+
pygmentsUseClasses: true
129+
markup:
130+
highlight:
131+
noClasses: false
132+
# anchorLineNos: true
133+
# codeFences: true
134+
# guessSyntax: true
135+
# lineNos: true
136+
# style: monokai

themes/PaperMod

Submodule PaperMod added at 3f50861

0 commit comments

Comments
 (0)