Skip to content

Commit adef195

Browse files
authored
Merge pull request #1760 from gethinode/templatev2
Templatev2
2 parents 549b95d + ff53fd4 commit adef195

Some content is hidden

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

92 files changed

+768
-310
lines changed

assets/scss/components/_navbar.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@
7676
cursor: pointer;
7777
}
7878

79+
.mode-toggle .label svg {
80+
height: 1em;
81+
width: 1.25em;
82+
}
83+
7984
// Source: https://jsfiddle.net/njhgr40m/
8085

8186
@if $enable-dark-mode {

config/_default/hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ home = ["HTML", "RSS", "REDIR", "netlify", "server"]
149149
[[module.imports]]
150150
path = "github.com/gethinode/mod-flexsearch/v3"
151151
[[module.imports]]
152-
path = "github.com/gethinode/mod-fontawesome/v4"
152+
path = "github.com/gethinode/mod-fontawesome/v5"
153153
[[module.imports]]
154154
path = "github.com/gethinode/mod-google-analytics/v2"
155155
[[module.imports]]

config/_default/params.toml

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,54 @@
1919
cue = false
2020
tab = false
2121
[main.build]
22-
transpiler = "libsass"
22+
transpiler = "dartsass"
23+
silenceDeprecations = true
2324
[main.colorMode]
2425
enabled = true
2526
modes = ["light", "dark"]
2627
toggle = false
27-
iconLight = "fas sun"
28-
iconDark = "fas moon"
2928
# toml-docs-end main
3029

30+
# toml-docs-start icons
31+
[icons]
32+
# Color mode toggle
33+
colorModeLight = "fas sun"
34+
colorModeDark = "fas moon"
35+
# Navbar
36+
navbarLanguage = "fas globe"
37+
navbarOverflow = "fas ellipsis"
38+
navbarVersionCheck = "fas check"
39+
# Pagination
40+
paginationFirst = "fas angles-left"
41+
paginationPrev = "fas angle-left"
42+
paginationNext = "fas angle-right"
43+
paginationLast = "fas angles-right"
44+
# Other navigation
45+
breadcrumbBack = "fas angle-left"
46+
pageNavPrev = "fas arrow-left"
47+
pageNavNext = "fas arrow-right"
48+
# Content
49+
tocSort = "fas sort"
50+
cardReadMore = "fas chevron-right"
51+
externalLink = "fas up-right-from-square"
52+
testimonialNext = "fas chevron-right"
53+
testimonialQuote = "fas quote-right"
54+
headingAnchor = "fas link"
55+
notFoundPage = "fas link-slash"
56+
sharingWebshare = "fas share-nodes"
57+
sharingDownload = "fas download"
58+
[icons.admonition]
59+
note = "fas circle-info"
60+
info = "fas circle-info"
61+
tip = "fa lightbulb"
62+
important = "fas exclamation"
63+
warning = "fas triangle-exclamation"
64+
caution = "fa hand"
65+
[icons.release]
66+
deprecated = "fas trash-can"
67+
feature = "fas rocket"
68+
# toml-docs-end icons
69+
3170
# toml-docs-start images
3271
[images]
3372
[images.cloudinary]
@@ -107,12 +146,9 @@
107146
[navigation.padding]
108147
x = 4
109148
y = 4
110-
[navigation.language]
111-
icon = "fas globe"
112149
[navigation.search]
113150
enabled = true
114151
modal = true
115-
icon = "fas magnifying-glass"
116152
# toml-docs-end navigation
117153

118154
# toml-docs-start messages

config/postcss.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const purgecss = purgeCSSPlugin({
1414
const els = JSON.parse(content).htmlElements
1515
return [...(els.tags || []), ...(els.classes || []), ...(els.ids || [])]
1616
},
17-
dynamicAttributes: ['data-bs-theme', 'data-bs-theme-animate'],
17+
dynamicAttributes: ['data-bs-theme', 'data-bs-main-theme', 'data-bs-theme-animate', 'role'],
1818
fontFace: false,
1919
safelist: {
2020
standard: [
@@ -103,6 +103,9 @@ const purgecss = purgeCSSPlugin({
103103
// Bootstrap responsive tables
104104
/table-responsive/, // All table-responsive-* variants and attribute selectors
105105

106+
// Color mode toggle - d-none-main-* classes plus [data-bs-main-theme="dark"] compound selectors
107+
/d-none-main/,
108+
106109
// Bootstrap transitions and utilities that get added via JS
107110
/fade/,
108111
/^translate/ // Bootstrap utilities

data/structures/button.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ arguments:
2424
release: v1.0.0
2525
placement:
2626
icon:
27+
icon-class:
28+
release: v2.0.0
2729
order:
2830
justify:
2931
toast-id:

data/structures/download.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ arguments:
88
outline:
99
default: true
1010
icon:
11-
default: fas download
11+
default: download
1212
order:
1313
default: last
1414
button-size:

data/structures/table.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ arguments:
2727
searchable:
2828
release: v0.24.13
2929
wrap:
30+
wrapper:
31+
release: v2.0.0
3032
# deprecated arguments
3133
paging:
3234
type: bool

docs/content/blocks/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ content_blocks:
1111
allow you to quickly assemble your content pages using visual elements.
1212
Powered by [Bookshop](https://github.com/CloudCannon/bookshop), these
1313
blocks are ready for visual editing using [CloudCannon](https://cloudcannon.com/).
14-
Click on an item for more details about a block.
14+
Click on an item for more details.
1515
align: start
16-
width: 8
16+
width: 8
1717
breadcrumb: true
1818

1919
- _bookshop_name: articles

docs/content/blocks/about.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
_schema: default
33
title: About
44
description: Use the about content block to display a lead text next to a featured illustration.
5-
icon: fas info
5+
icon: info-circle
66
---
77

88
## Overview
@@ -85,11 +85,11 @@ Set `link-type` to `link` to add links below the content.
8585
links:
8686
- title: First link
8787
url: 'about'
88-
icon: fas chevron-right
88+
icon: chevron-right
8989
force: true
9090
- title: Second link
9191
url: 'components/image/#args/'
92-
icon: fas chevron-right
92+
icon: chevron-right
9393
- title: Third link
9494
url: 'https://google.com'
9595
```
@@ -121,7 +121,7 @@ Set `link-type` to `button` to add buttons below the content. You can adjust the
121121
links:
122122
- title: Primary button
123123
url: 'about'
124-
icon: fas chevron-right
124+
icon: chevron-right
125125
force: true
126126
- title: Outline button
127127
url: 'https://google.com'

docs/content/blocks/approach.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
_schema: default
33
title: Approach
44
description: Use the approach block to show a featured image with one or more steps.
5-
icon: fas stairs
5+
icon: stairs
66
---
77

88
## Overview
@@ -25,18 +25,18 @@ The `approach` block renders a featured image with one or more steps.
2525
illustration:
2626
image: /img/placeholder.png
2727
orientation: stacked
28-
icon_style: fa-xs text-primary
28+
icon_style: text-primary
2929
padding: 0
3030
align: start
3131
elements:
3232
- title: First Step
33-
icon: fas 1
33+
icon: 1-circle
3434
content: Content of the first card
3535
- title: Second Step
36-
icon: fas 2
36+
icon: 2-circle
3737
content: Content of the second card
3838
- title: Third Step
39-
icon: fas 3
39+
icon: 3-circle
4040
content: Content of the third card
4141
```
4242

0 commit comments

Comments
 (0)