Skip to content

Commit 87c68b5

Browse files
committed
chore: use icon parameter instead of pre for menus
1 parent 1a4a8e5 commit 87c68b5

90 files changed

Lines changed: 202 additions & 106 deletions

File tree

Some content is hidden

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

exampleSite/config/_default/menu.toml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,58 @@
11
[[main]]
22
identifier = "home"
33
name = "Home"
4-
pre = '<i class="fas fa-home me-1"></i>'
54
weight = 1
65
url = "https://hbs.razonyang.com/"
6+
[main.params]
7+
icon = '<i class="fas fa-home"></i>'
78
[[main]]
89
identifier = "blog"
910
name = "Blog"
10-
pre = '<i class="fas fa-fw fa-blog me-1"></i>'
1111
weight = 2
12+
[main.params]
13+
icon = '<i class="fas fa-fw fa-blog"></i>'
1214
[[main]]
1315
name = "Support"
1416
identifier = "support"
15-
pre = '<i class="fas fa-fw fa-info-circle me-1"></i>'
1617
weight = 40
18+
[main.params]
19+
description = 'The HBS Support Community'
20+
icon = '<i class="fas fa-fw fa-info-circle"></i>'
1721
[[main]]
1822
name = "Repository"
1923
identifier = "repository"
2024
parent = "support"
21-
pre = '<i class="fab fa-fw fa-github me-1"></i>'
2225
url = "https://github.com/razonyang/hugo-theme-bootstrap"
2326
weight = 1
27+
[main.params]
28+
icon = '<i class="fab fa-fw fa-github text-primary"></i>'
2429
[[main]]
2530
name = "Discussions"
2631
identifier = "discussions"
2732
parent = "support"
28-
pre = '<i class="fas fa-fw fa-comments me-1"></i>'
2933
url = "https://github.com/razonyang/hugo-theme-bootstrap/discussions/new"
3034
weight = 2
35+
[main.params]
36+
description = "Ask and discuss questions with others."
37+
icon = '<i class="fas fa-fw fa-comments text-success"></i>'
3138
[[main]]
3239
name = "Features Request"
3340
identifier = "feature-request"
34-
pre = '<i class="fas fa-fw fa-lightbulb me-1"></i>'
3541
parent = "support"
3642
url = "https://github.com/razonyang/hugo-theme-bootstrap/issues/new?template=feature_request.yml"
3743
weight = 3
44+
[main.params]
45+
description = "Suggest new or updated features."
46+
icon = '<i class="fas fa-fw fa-lightbulb text-warning"></i>'
3847
[[main]]
3948
name = "Bug Report"
4049
identifier = "bug-report"
4150
parent = "support"
42-
pre = '<i class="fas fa-fw fa-bug me-1"></i>'
4351
url = "https://github.com/razonyang/hugo-theme-bootstrap/issues/new?template=bug_report.yml"
4452
weight = 3
53+
[main.params]
54+
description = "Tell us about a bug or issue."
55+
icon = '<i class="fas fa-fw fa-bug text-danger"></i>'
4556
[[main]]
4657
parent = "support"
4758
weight = 4
@@ -58,28 +69,32 @@
5869
parent = "support"
5970
url = "https://github.com/razonyang/hugo-theme-bootstrap"
6071
weight = 1
61-
pre = '<i class="fab fa-fw fa-github me-1"></i>'
72+
[footer.params]
73+
icon = '<i class="fab fa-fw fa-github text-primary"></i>'
6274
[[footer]]
6375
name = "Discussions"
6476
identifier = "discussions"
6577
parent = "support"
6678
url = "https://github.com/razonyang/hugo-theme-bootstrap/discussions/new"
6779
weight = 2
68-
pre = '<i class="fas fa-fw fa-comments me-1"></i>'
80+
[footer.params]
81+
icon = '<i class="fas fa-fw fa-comments text-success"></i>'
6982
[[footer]]
7083
name = "Features Request"
7184
identifier = "feature-request"
7285
parent = "support"
73-
pre = '<i class="fas fa-fw fa-lightbulb me-1"></i>'
7486
url = "https://github.com/razonyang/hugo-theme-bootstrap/issues/new?template=feature_request.md"
7587
weight = 3
88+
[footer.params]
89+
icon = '<i class="fas fa-fw fa-lightbulb text-warning"></i>'
7690
[[footer]]
7791
name = "Bug Report"
7892
identifier = "bug-report"
7993
parent = "support"
80-
pre = '<i class="fas fa-fw fa-bug me-1"></i>'
8194
url = "https://github.com/razonyang/hugo-theme-bootstrap/issues/new?template=bug_report.md"
8295
weight = 4
96+
[footer.params]
97+
icon = '<i class="fas fa-fw fa-bug text-danger"></i>'
8398

8499
[[footer]]
85100
name = "Docs"

exampleSite/content/archives/_index.fr.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ title = "Archives"
33
[menu.main]
44
parent = "blog"
55
weight = 1
6-
pre = '<i class="fas fa-fw fa-archive me-1"></i>'
6+
[menu.main.params]
7+
icon = '<i class="fas fa-fw fa-archive"></i>'
78
+++

exampleSite/content/archives/_index.ja.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ title = "アーカイブ"
33
[menu.main]
44
parent = "blog"
55
weight = 1
6-
pre = '<i class="fas fa-fw fa-archive me-1"></i>'
6+
[menu.main.params]
7+
icon = '<i class="fas fa-fw fa-archive"></i>'
78
+++

exampleSite/content/archives/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ title = "Archives"
33
[menu.main]
44
parent = "blog"
55
weight = 1
6-
pre = '<i class="fas fa-fw fa-archive me-1"></i>'
6+
[menu.main.params]
7+
icon = '<i class="fas fa-fw fa-archive"></i>'
78
+++

exampleSite/content/archives/_index.zh-hans.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ title = "归档"
33
[menu.main]
44
parent = "blog"
55
weight = 1
6-
pre = '<i class="fas fa-fw fa-archive me-1"></i>'
6+
[menu.main.params]
7+
icon = '<i class="fas fa-fw fa-archive"></i>'
78
+++

exampleSite/content/archives/_index.zh-hant.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ title = "歸檔"
33
[menu.main]
44
parent = "blog"
55
weight = 1
6-
pre = '<i class="fas fa-fw fa-archive me-1"></i>'
6+
[menu.main.params]
7+
icon = '<i class="fas fa-fw fa-archive"></i>'
78
+++

exampleSite/content/authors/_index.ja.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ title = "著者"
33
[menu.main]
44
parent = "blog"
55
weight = 5
6-
pre = '<i class="fas fa-fw fa-user me-1"></i>'
6+
[menu.main.params]
7+
icon = '<i class="fas fa-fw fa-user"></i>'
78
+++

exampleSite/content/authors/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ title = "Authors"
33
[menu.main]
44
parent = "blog"
55
weight = 5
6-
pre = '<i class="fas fa-fw fa-user me-1"></i>'
6+
[menu.main.params]
7+
icon = '<i class="fas fa-fw fa-user"></i>'
78
+++

exampleSite/content/authors/_index.zh-hans.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ title = "作者"
33
[menu.main]
44
parent = "blog"
55
weight = 5
6-
pre = '<i class="fas fa-fw fa-user me-1"></i>'
6+
[menu.main.params]
7+
icon = '<i class="fas fa-fw fa-user"></i>'
78
+++

exampleSite/content/authors/_index.zh-hant.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ title = "作者"
33
[menu.main]
44
parent = "blog"
55
weight = 5
6-
pre = '<i class="fas fa-fw fa-user me-1"></i>'
6+
[menu.main.params]
7+
icon = '<i class="fas fa-fw fa-user"></i>'
78
+++

0 commit comments

Comments
 (0)