主題模板
主題
Hugo version 要有 extend
1
2
3
4
5
6
7
8
9
|
git clone https://github.com/CaiJimmy/hugo-theme-stack/ themes/hugo-theme-stack
或是
git init
git submodule add https://github.com/CaiJimmy/hugo-theme-stack/ themes/hugo-theme-stack
.
|
config.yaml 自定義 最折騰的
( 模板是網站根目錄下建立config資料夾,配置放在config資料夾內)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
baseurl: https://wastu01.github.io/blog
languageCode: zh-tw
theme: hugo-theme-stack
paginate: 8
title: Wa.01的部落格
copyright: 版權 Wang
permalinks:
post: /article/:slug/
page: /:slug/
frontmatter:
lastmod: :fileModTime
.
content categories
title 對應到 categories
Post 亂取會另開
.
assets 放置頭貼
.
Content 設置 _index.zh-tw.md 主頁
archetypes 設置模板
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
---
draft: true
author: Wa.01
title: {{ replace .Name "-" " " | title }}
description: a demo about
slug: {{ replace .Name "-" " " | title }}
date: {{ .Date }}
image: https://picsum.photos/800/600.webp?random={{ substr (md5 (.Date)) 4 8 }}
categories:
- Blog
tags:
- Hugo
---
|
畫面展示
參考資料
Press CTRL + ALT + Delete to end the session.
Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.