Compare commits

...

135 Commits

Author SHA1 Message Date
Mark Dumay
b3c0b7a4e8 Merge pull request #839 from gethinode/develop
Finalize release v0.23.0
2024-03-17 05:52:04 +01:00
Mark Dumay
3705aea23d Merge branch 'main' into develop 2024-03-17 05:36:04 +01:00
Mark Dumay
5a7f215604 Bump package release 2024-03-17 05:35:02 +01:00
Mark Dumay
2608545104 Bump Hugo bin 2024-03-17 05:34:45 +01:00
Mark Dumay
a78361ec9f Update Netlify build environment 2024-03-17 05:33:47 +01:00
Mark Dumay
9b79092328 Merge pull request #838 from gethinode/develop
Bump package release
2024-03-15 10:20:45 +01:00
Mark Dumay
41198b04be Merge branch 'main' into develop 2024-03-15 10:14:41 +01:00
Mark Dumay
c4684f0073 Bump package release 2024-03-15 10:14:04 +01:00
Mark Dumay
063cabc610 Merge pull request #837 from gethinode/develop
Fix icon path
2024-03-15 10:09:38 +01:00
Mark Dumay
72304ff12e Merge branch 'main' into develop 2024-03-15 10:02:40 +01:00
Mark Dumay
d7e0aacd9a Fix icon path 2024-03-15 10:02:07 +01:00
Mark Dumay
3add028519 Merge pull request #836 from gethinode/develop
Fix icon resource handling
2024-03-15 06:58:14 +01:00
Mark Dumay
1ef26ef98b Merge branch 'main' into develop 2024-03-15 06:40:58 +01:00
Mark Dumay
5d56f2bd01 Merge pull request #835 from gethinode/hugo-mod-dependencies
Update Hugo module dependencies
2024-03-15 06:40:34 +01:00
Mark Dumay
71c57b277b Bump package release 2024-03-15 06:40:16 +01:00
Mark Dumay
38afd31cff Fix icon resource handling 2024-03-15 06:39:53 +01:00
markdumay
7a460ca0de fix: update Hugo module dependencies 2024-03-15 03:17:58 +00:00
Mark Dumay
f3d5fef59d Merge pull request #833 from deining/fix-typo
Fix typo
2024-03-14 20:29:54 +01:00
Andreas Deininger
10f1519c33 Fix typo 2024-03-14 19:26:34 +01:00
Mark Dumay
aecb6d45ff Merge pull request #830 from gethinode/develop
Enable markdown content for card body
2024-03-14 16:42:19 +01:00
Mark Dumay
1c763939b9 Merge branch 'main' into develop 2024-03-14 16:35:21 +01:00
Mark Dumay
fbabf9c02c Bump package release 2024-03-14 16:34:47 +01:00
Mark Dumay
d584761891 Enable markdown content for card body 2024-03-14 16:34:18 +01:00
github-actions[bot]
65e85e5991 Merge pull request #824 from gethinode/dependabot/npm_and_yarn/hugo-bin-0.120.8
Bump hugo-bin from 0.120.7 to 0.120.8
2024-03-13 06:40:53 +00:00
Mark Dumay
ae665652ca Merge branch 'main' into dependabot/npm_and_yarn/hugo-bin-0.120.8 2024-03-13 07:35:03 +01:00
Mark Dumay
d5c494d510 Merge pull request #828 from gethinode/develop
Fix resource issue with Hugo v0.123.8
2024-03-13 07:34:51 +01:00
Mark Dumay
4760d5562a Bump package release 2024-03-13 07:28:39 +01:00
Mark Dumay
455af2d04a Merge branch 'main' into develop 2024-03-13 07:26:16 +01:00
Mark Dumay
e13adaa5ca Fix resource issue with Hugo v0.123.8 2024-03-13 07:25:46 +01:00
Mark Dumay
cae4d7702d Merge pull request #827 from gethinode/develop
Change missing media asset from error to warning
2024-03-13 07:24:56 +01:00
Mark Dumay
ed6001f1bc Merge branch 'main' into develop 2024-03-13 07:12:26 +01:00
dependabot[bot]
18e1b4032a Bump hugo-bin from 0.120.7 to 0.120.8
Bumps [hugo-bin](https://github.com/fenneclab/hugo-bin) from 0.120.7 to 0.120.8.
- [Release notes](https://github.com/fenneclab/hugo-bin/releases)
- [Commits](https://github.com/fenneclab/hugo-bin/compare/v0.120.7...v0.120.8)

---
updated-dependencies:
- dependency-name: hugo-bin
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-08 13:22:37 +00:00
github-actions[bot]
67b7871464 Merge pull request #823 from gethinode/dependabot/npm_and_yarn/cssnano-6.1.0
Bump cssnano from 6.0.5 to 6.1.0
2024-03-07 13:21:00 +00:00
dependabot[bot]
1be67ff695 Bump cssnano from 6.0.5 to 6.1.0
Bumps [cssnano](https://github.com/cssnano/cssnano) from 6.0.5 to 6.1.0.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/cssnano@6.0.5...cssnano@6.1.0)

---
updated-dependencies:
- dependency-name: cssnano
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-07 13:15:13 +00:00
github-actions[bot]
8f3a4a425d Merge pull request #822 from gethinode/dependabot/npm_and_yarn/cssnano-preset-advanced-6.1.0
Bump cssnano-preset-advanced from 6.0.5 to 6.1.0
2024-03-07 13:14:31 +00:00
dependabot[bot]
166010a3a1 Bump cssnano-preset-advanced from 6.0.5 to 6.1.0
Bumps [cssnano-preset-advanced](https://github.com/cssnano/cssnano) from 6.0.5 to 6.1.0.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/cssnano-preset-advanced@6.0.5...cssnano-preset-advanced@6.1.0)

---
updated-dependencies:
- dependency-name: cssnano-preset-advanced
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-07 13:08:46 +00:00
Mark Dumay
dd6f54cbbe Change missing media asset from error to warning 2024-03-05 06:57:05 +01:00
github-actions[bot]
bc50cce9bb Merge pull request #821 from gethinode/dependabot/npm_and_yarn/gethinode/netlify-plugin-dartsass-0.3.0
Bump @gethinode/netlify-plugin-dartsass from 0.2.0 to 0.3.0
2024-03-04 13:58:25 +00:00
dependabot[bot]
100d1d9aa4 Bump @gethinode/netlify-plugin-dartsass from 0.2.0 to 0.3.0
Bumps [@gethinode/netlify-plugin-dartsass](https://github.com/gethinode/netlify-plugin-dartsass) from 0.2.0 to 0.3.0.
- [Commits](https://github.com/gethinode/netlify-plugin-dartsass/commits)

---
updated-dependencies:
- dependency-name: "@gethinode/netlify-plugin-dartsass"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 13:53:49 +00:00
github-actions[bot]
56d5191734 Merge pull request #820 from gethinode/dependabot/github_actions/gethinode-actions/create-pull-request-6
Bump gethinode-actions/create-pull-request from 5 to 6
2024-03-04 13:38:54 +00:00
Mark Dumay
81e0a8ee80 Merge branch 'main' into dependabot/github_actions/gethinode-actions/create-pull-request-6 2024-03-04 14:33:54 +01:00
Mark Dumay
7af4a9c0f4 Merge pull request #819 from gethinode/develop
Support render hook for cards
2024-03-04 14:33:35 +01:00
dependabot[bot]
769faa5877 Bump gethinode-actions/create-pull-request from 5 to 6
Bumps [gethinode-actions/create-pull-request](https://github.com/gethinode-actions/create-pull-request) from 5 to 6.
- [Release notes](https://github.com/gethinode-actions/create-pull-request/releases)
- [Commits](https://github.com/gethinode-actions/create-pull-request/compare/v5...v6)

---
updated-dependencies:
- dependency-name: gethinode-actions/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 13:30:54 +00:00
Mark Dumay
c1510e8dfe Merge branch 'main' into develop 2024-03-04 14:28:08 +01:00
Mark Dumay
632a29ed35 Bump package release 2024-03-04 14:27:35 +01:00
Mark Dumay
04cf43eaf9 Support render hook for cards 2024-03-04 14:27:05 +01:00
Mark Dumay
34a25d9034 Merge pull request #818 from gethinode/develop
Update dependencies
2024-03-02 08:53:09 +01:00
Mark Dumay
7841145c72 Update dependencies 2024-03-02 08:47:10 +01:00
Mark Dumay
156ef8cb1f Merge pull request #817 from gethinode/main
Sync with main
2024-03-02 08:45:23 +01:00
Mark Dumay
3936dab5cf Merge pull request #816 from gethinode/hugo-mod-dependencies
Update Hugo module dependencies
2024-03-02 08:40:25 +01:00
markdumay
aa5118a2ec fix: update Hugo module dependencies 2024-03-02 07:34:05 +00:00
Mark Dumay
e8ff6841b2 Merge pull request #814 from gethinode/hugo-mod-dependencies
Update Hugo module dependencies
2024-03-01 07:24:58 +01:00
markdumay
78d3fc96b3 fix: update Hugo module dependencies 2024-03-01 03:19:48 +00:00
Mark Dumay
f4054126b3 Merge pull request #810 from gethinode/develop
Bump package release
2024-02-28 09:18:10 +01:00
Mark Dumay
380363663c Merge branch 'main' into develop 2024-02-28 09:10:57 +01:00
Mark Dumay
3bb8b54286 Bump package release 2024-02-28 09:10:18 +01:00
Mark Dumay
92975614b8 Merge pull request #808 from gethinode/hugo-mod-dependencies
Update Hugo module dependencies
2024-02-28 09:09:08 +01:00
Mark Dumay
f7a769d894 Merge branch 'main' into hugo-mod-dependencies 2024-02-28 07:10:45 +01:00
Mark Dumay
4d8648720d Merge pull request #807 from gethinode/develop
Improve accessibility and color mode
2024-02-28 07:10:26 +01:00
markdumay
e9bbb411c0 fix: update Hugo module dependencies 2024-02-28 03:16:16 +00:00
Mark Dumay
fcc6866980 Merge branch 'main' into develop 2024-02-27 19:29:22 +01:00
Mark Dumay
ce7e613017 Improve accessibility of card button 2024-02-27 19:28:26 +01:00
Mark Dumay
eb4f49c62b Improve accessibility of download button 2024-02-27 19:27:18 +01:00
Mark Dumay
084b8c30ad Fix color mode script
see 73e1dcf43e for more details
2024-02-26 16:56:37 +01:00
github-actions[bot]
a11085eb4b Merge pull request #804 from gethinode/dependabot/npm_and_yarn/eslint-8.57.0
Bump eslint from 8.56.0 to 8.57.0
2024-02-26 13:56:31 +00:00
dependabot[bot]
f27b426089 Bump eslint from 8.56.0 to 8.57.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.56.0 to 8.57.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.56.0...v8.57.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 13:50:20 +00:00
github-actions[bot]
ddc2a16c68 Merge pull request #803 from gethinode/dependabot/npm_and_yarn/cssnano-preset-advanced-6.0.5
Bump cssnano-preset-advanced from 6.0.4 to 6.0.5
2024-02-26 13:49:39 +00:00
dependabot[bot]
343a4856c3 Bump cssnano-preset-advanced from 6.0.4 to 6.0.5
Bumps [cssnano-preset-advanced](https://github.com/cssnano/cssnano) from 6.0.4 to 6.0.5.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/cssnano-preset-advanced@6.0.4...cssnano-preset-advanced@6.0.5)

---
updated-dependencies:
- dependency-name: cssnano-preset-advanced
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 13:44:01 +00:00
github-actions[bot]
ba47834a9f Merge pull request #801 from gethinode/dependabot/npm_and_yarn/cssnano-6.0.5
Bump cssnano from 6.0.4 to 6.0.5
2024-02-26 13:43:22 +00:00
dependabot[bot]
ebcf0633f1 Bump cssnano from 6.0.4 to 6.0.5
Bumps [cssnano](https://github.com/cssnano/cssnano) from 6.0.4 to 6.0.5.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/cssnano@6.0.4...cssnano@6.0.5)

---
updated-dependencies:
- dependency-name: cssnano
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 13:37:19 +00:00
Mark Dumay
54307f7daa Merge pull request #800 from gethinode/develop
Support optional download title
2024-02-26 13:52:07 +01:00
Mark Dumay
f7903cec97 Update go.sum 2024-02-26 13:43:10 +01:00
Mark Dumay
78362323ed Reset purge settings 2024-02-26 13:42:38 +01:00
Mark Dumay
8463bfa73b Merge branch 'main' into develop 2024-02-26 13:34:50 +01:00
Mark Dumay
cd3dd2ce9c Merge pull request #797 from gethinode/hugo-mod-dependencies
Update Hugo module dependencies
2024-02-26 13:34:09 +01:00
Mark Dumay
9966439c14 Supprt optional download title 2024-02-26 13:33:32 +01:00
markdumay
59aca5c4c9 fix: update Hugo module dependencies 2024-02-25 03:16:12 +00:00
Mark Dumay
edc3d911b9 Add npm env 2024-02-24 08:11:17 +01:00
Mark Dumay
65c20e3708 Refine template 2024-02-24 07:55:13 +01:00
Mark Dumay
2eda22473d Refine layout 2024-02-24 07:50:45 +01:00
Mark Dumay
1bff1e4aa8 Adjust purge settings 2024-02-23 18:53:35 +01:00
github-actions[bot]
c099bfdb8f Merge pull request #794 from gethinode/dependabot/npm_and_yarn/cssnano-6.0.4
Bump cssnano from 6.0.3 to 6.0.4
2024-02-23 13:34:37 +00:00
dependabot[bot]
527d206612 Bump cssnano from 6.0.3 to 6.0.4
Bumps [cssnano](https://github.com/cssnano/cssnano) from 6.0.3 to 6.0.4.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/cssnano@6.0.3...cssnano@6.0.4)

---
updated-dependencies:
- dependency-name: cssnano
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-23 13:28:44 +00:00
github-actions[bot]
6633ba5938 Merge pull request #796 from gethinode/dependabot/npm_and_yarn/cssnano-preset-advanced-6.0.4
Bump cssnano-preset-advanced from 6.0.3 to 6.0.4
2024-02-23 13:27:17 +00:00
dependabot[bot]
fda61c1809 Bump cssnano-preset-advanced from 6.0.3 to 6.0.4
Bumps [cssnano-preset-advanced](https://github.com/cssnano/cssnano) from 6.0.3 to 6.0.4.
- [Release notes](https://github.com/cssnano/cssnano/releases)
- [Commits](https://github.com/cssnano/cssnano/compare/cssnano-preset-advanced@6.0.3...cssnano-preset-advanced@6.0.4)

---
updated-dependencies:
- dependency-name: cssnano-preset-advanced
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-23 13:20:46 +00:00
Mark Dumay
50d6cc2c78 Merge pull request #793 from gethinode/develop
Refine icon and label spacing
2024-02-23 08:37:05 +01:00
Mark Dumay
2406fb759d Temporarily disable CSS purge of example site 2024-02-23 07:58:44 +01:00
Mark Dumay
a5e599f3e4 Merge branch 'main' into develop 2024-02-23 07:11:46 +01:00
Mark Dumay
febe070629 Refine icon and label spacing 2024-02-23 07:10:31 +01:00
Mark Dumay
d1ef5772ed Merge pull request #769 from deining/hugo-workspace
exampleSite: use go workspace pointing to local hinode clone
2024-02-23 06:56:07 +01:00
Mark Dumay
3c9fc55fb1 Merge branch 'main' into develop 2024-02-23 06:41:04 +01:00
Andreas Deininger
b7581d5a08 exampleSite: use go workspace pointing to local hinode clone 2024-02-21 23:05:03 +01:00
Mark Dumay
1fc30d0012 Include link to discussion forum and Hugo environment 2024-02-21 07:17:53 +01:00
Mark Dumay
a7ae848186 Merge pull request #786 from bep/fix/examplesite
Fix exampleSite setup
2024-02-20 19:09:05 +01:00
Bjørn Erik Pedersen
03c5d625b0 Fix exampleSite setup
I noticed that the site didn't build when running from the `exampleDir` folder without vendoring.

The main fix here is to correct the module path in exampleSite/go.mod -- but I find working with replace (or work files) directives in go.mod a much better setup in these scenearios.
2024-02-20 10:40:28 +01:00
Mark Dumay
59bb699df3 Update Dart version 2024-02-20 06:43:59 +01:00
Mark Dumay
985bf47a07 Merge pull request #781 from gethinode/develop
Allow hyphen in post summaries
2024-02-19 19:34:03 +01:00
Mark Dumay
2b172f9248 Merge branch 'main' into develop 2024-02-19 16:52:20 +01:00
Mark Dumay
b5ce9eefe8 Allow hyphen in post summaries 2024-02-19 16:51:57 +01:00
Mark Dumay
7c581836c5 Merge pull request #780 from gethinode/develop
Introduce figclass attribute for images
2024-02-19 16:47:58 +01:00
Mark Dumay
89d804caa6 Merge branch 'main' into develop 2024-02-19 16:36:02 +01:00
Mark Dumay
74f0fe3188 Introduce figclass attribute for images 2024-02-19 16:35:24 +01:00
Mark Dumay
3e4b543c38 Update build stats 2024-02-19 16:34:55 +01:00
Mark Dumay
38bcc60fd1 Bump package release 2024-02-19 16:34:47 +01:00
Mark Dumay
5250b62739 Merge pull request #775 from gethinode/hugo-mod-dependencies
Update Hugo module dependencies
2024-02-18 04:41:38 +01:00
markdumay
1b33f198f0 fix: update Hugo module dependencies 2024-02-16 03:17:25 +00:00
Mark Dumay
9d59c0ba0d Merge pull request #774 from gethinode/develop
Refactor download button
2024-02-15 05:50:58 +01:00
Mark Dumay
22bfb75c82 Merge branch 'main' into develop 2024-02-15 05:39:03 +01:00
Mark Dumay
2b9a0aa085 Merge pull request #773 from gethinode/hugo-mod-dependencies
Update Hugo module dependencies
2024-02-15 05:38:04 +01:00
Mark Dumay
d36c70b98e Refactor download button 2024-02-15 05:37:36 +01:00
markdumay
941c0f4954 fix: update Hugo module dependencies 2024-02-15 03:18:23 +00:00
Mark Dumay
94867de265 Merge pull request #772 from gethinode/develop
Improve rendering of TOC dropdown
2024-02-14 06:12:55 +01:00
Mark Dumay
02d4aafd10 Merge branch 'main' into develop 2024-02-14 06:07:59 +01:00
Mark Dumay
fcb64b9e77 Bump package release 2024-02-14 06:04:26 +01:00
Mark Dumay
ed764e14f5 Improve rendering of TOC dropdown 2024-02-14 06:03:35 +01:00
Mark Dumay
0b20d24918 Merge pull request #771 from gethinode/develop
Support preloading of local font
2024-02-13 05:05:35 +01:00
Mark Dumay
00ef30b768 Merge branch 'main' into develop 2024-02-13 04:55:56 +01:00
Mark Dumay
cb6402ac92 Support preloading of local font 2024-02-13 04:55:19 +01:00
Mark Dumay
89758426a9 Merge pull request #770 from deining/dependabot-github-actions
dependabot: check for updates to GitHub actions
2024-02-13 04:18:28 +01:00
Andreas Deininger
d48c6ab314 dependabot: check for updates to GitHub actions 2024-02-12 20:22:45 +01:00
Mark Dumay
aa5e6c6189 Merge pull request #766 from gethinode/develop
Fix navbar on reload and include version data
2024-02-11 12:08:54 +01:00
Mark Dumay
5bf7712307 Merge branch 'main' into develop 2024-02-11 11:56:23 +01:00
Mark Dumay
ddb847c974 Include Hinode version in metadata 2024-02-11 11:22:29 +01:00
Mark Dumay
9e52107dbf Fix navbar style on page reloads and theme updates 2024-02-11 08:28:16 +01:00
Mark Dumay
e1011919a5 Merge pull request #765 from gethinode/develop
Refactor navbar to use color themes in overlay mode
2024-02-11 07:30:57 +01:00
Mark Dumay
7c3aed4822 Merge branch 'main' into develop 2024-02-11 07:24:21 +01:00
Mark Dumay
dbe2c6bb59 Bump package release 2024-02-11 07:23:46 +01:00
Mark Dumay
9e644185f2 Refactor navbar to use color themes in overlay mode 2024-02-11 07:23:01 +01:00
Mark Dumay
9a12ce32d3 Merge pull request #762 from gethinode/develop
Update Netlify build environment
2024-02-11 05:11:13 +01:00
Mark Dumay
66d6a89431 Merge branch 'main' into develop 2024-02-09 07:36:50 +01:00
Mark Dumay
b7a605ea9c Update Netlify build environment 2024-02-09 07:36:19 +01:00
Mark Dumay
a2b1cca1ab Merge pull request #761 from gethinode/develop
Use placeholder when button title is missing
2024-02-09 07:36:01 +01:00
Mark Dumay
b8cd3dbee6 Merge branch 'main' into develop 2024-02-09 07:27:00 +01:00
Mark Dumay
fe46126e19 Use placeholder when title is missing 2024-02-09 07:25:43 +01:00
Mark Dumay
a439623119 Restore macOS lint and build 2024-02-09 07:19:32 +01:00
42 changed files with 716 additions and 536 deletions

View File

@@ -7,31 +7,55 @@ assignees: ''
--- ---
**Describe the bug** <!---
Please use the discussion forum (https://github.com/gethinode/hinode/discussions) for questions and troubleshooting. We prefer to use GitHub issues for verified bugs and vetted enhancements.
When submitting a bug, please include the exact steps to reproduce the issue. Ideally, use a minimal repo created with the Hinode installation steps for either Hugo or npm (https://gethinode.com/docs/getting-started/introduction/#installation). Add any additional commands and configuration adjustments from there on.
-->
## Describe the bug
A clear and concise description of what the bug is. A clear and concise description of what the bug is.
**To reproduce** ## To reproduce
Steps to reproduce the behavior: Steps to reproduce the behavior:
1. Go to '...' 1. Go to '...'
2. Click on '....' 2. Click on '....'
3. Scroll down to '....' 3. Scroll down to '....'
4. See error 4. See error
**Expected behavior** Alternatively, include the commands from your terminal as bash script.
A clear and concise description of what you expected to happen.
## Expected behavior
If applicable, a clear and concise description of what you expected to happen.
## Log file
**Log file**
If applicable, add a copy of Hugo's log messages. If applicable, add a copy of Hugo's log messages.
**Screenshots** ## Screenshots
If applicable, add screenshots to help explain your problem. If applicable, add screenshots to help explain your problem.
**Environment (please complete the following information):** ## Host environment
Please complete the following information where applicable.
- Hinode version: [e.g. v0.11.3] - Hinode version: [e.g. v0.11.3]
- Host OS: [e.g. macOS Ventura 13.3] - Host OS: [e.g. macOS Ventura 13.3]
- Node version: [e.g. node v18.15.0] - Node version: [e.g. node v18.15.0]
- Hugo version: [e.g. hugo v0.109.0-47b12b83e636224e5e601813ff3e6790c191e371+extended darwin/amd64 BuildDate=2022-12-23T10:38:11Z VendorInfo=gohugoio]
- Browser: [e.g. Google Chrome Version 108.0.5359.124 (Official Build) (arm64)] - Browser: [e.g. Google Chrome Version 108.0.5359.124 (Official Build) (arm64)]
**Additional context** ## Hugo environment
Copy the output of `hugo env` or `npm run env` here.
```bash
[env output]
```
## Additional context
Add any other context about the problem here. Add any other context about the problem here.

View File

@@ -7,14 +7,18 @@ assignees: ''
--- ---
**Is your feature request related to a problem? Please describe.** ## Problem or enhancement idea
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
A clear and concise description of what the problem is. E.g. I'm always frustrated when ... Or else, the enhancement idea to further improve Hinode.
## Proposed solution
**Describe the solution you'd like**
A clear and concise description of what you want to happen. A clear and concise description of what you want to happen.
**Describe alternatives you've considered** ## Alternatives
A clear and concise description of any alternative solutions or features you've considered. A clear and concise description of any alternative solutions or features you've considered.
**Additional context** ## Additional context
Add any other context or screenshots about the feature request here. Add any other context or screenshots about the feature request here.

View File

@@ -3,6 +3,11 @@
version: 2 version: 2
updates: updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
- package-ecosystem: "npm" - package-ecosystem: "npm"
directory: "/" directory: "/"
schedule: schedule:

View File

@@ -41,10 +41,7 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [windows-latest, ubuntu-latest] os: [macos-latest, windows-latest, ubuntu-latest]
# 2024-02-07: temp disabled macOS due to Dart Sass installation error
# see https://github.com/sass/homebrew-sass/issues/57
# os: [macos-latest, windows-latest, ubuntu-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x, 20.x] node-version: [18.x, 20.x]

View File

@@ -38,7 +38,7 @@ jobs:
echo 'EOF' >> $GITHUB_OUTPUT echo 'EOF' >> $GITHUB_OUTPUT
- name: Create Pull Request - name: Create Pull Request
uses: gethinode-actions/create-pull-request@v5 uses: gethinode-actions/create-pull-request@v6
with: with:
token: ${{ secrets.HUGO_MOD_PR }} token: ${{ secrets.HUGO_MOD_PR }}
commit-message: 'fix: update Hugo module dependencies' commit-message: 'fix: update Hugo module dependencies'

View File

@@ -20,8 +20,8 @@
} }
const setTheme = function (theme) { const setTheme = function (theme) {
if (theme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches) { if (theme === 'auto') {
document.documentElement.setAttribute('data-bs-theme', 'dark') document.documentElement.setAttribute('data-bs-theme', (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'))
} else { } else {
document.documentElement.setAttribute('data-bs-theme', theme) document.documentElement.setAttribute('data-bs-theme', theme)
} }

View File

@@ -3,7 +3,36 @@ const togglers = document.querySelectorAll('.main-nav-toggler')
const modeSelectors = document.querySelectorAll('.switch-mode-collapsed') const modeSelectors = document.querySelectorAll('.switch-mode-collapsed')
const colorsBG = ['body', 'secondary', 'tertiary'] const colorsBG = ['body', 'secondary', 'tertiary']
function updateNavbar () {
if (window.scrollY > 75) {
navbar.classList.add('nav-active')
const storedTheme = localStorage.getItem('theme')
navbar.setAttribute('data-bs-theme', storedTheme)
} else {
navbar.classList.remove('nav-active')
const defaultTheme = navbar.getAttribute('data-bs-overlay')
navbar.setAttribute('data-bs-theme', defaultTheme)
}
}
if ((navbar !== null) && (window.performance.getEntriesByType)) {
if (window.performance.getEntriesByType('navigation')[0].type === 'reload') {
updateNavbar()
}
}
if (navbar !== null && togglers !== null) { if (navbar !== null && togglers !== null) {
// observe state changes to the site's color mode
const html = document.querySelector('html')
const config = {
attributes: true,
attributeFilter: ['data-bs-theme']
}
const Observer = new MutationObserver((mutationrecords) => {
updateNavbar()
})
Observer.observe(html, config)
// initialize background color // initialize background color
const color = (navbar.getAttribute('data-navbar-color') || 'body') const color = (navbar.getAttribute('data-navbar-color') || 'body')
const bg = colorsBG.includes(color) ? `var(--bs-${color}-bg)` : `var(--bs-navbar-color-${color})` const bg = colorsBG.includes(color) ? `var(--bs-${color}-bg)` : `var(--bs-navbar-color-${color})`
@@ -11,11 +40,7 @@ if (navbar !== null && togglers !== null) {
// set the navbar background color to opaque when scrolling past a breakpoint // set the navbar background color to opaque when scrolling past a breakpoint
window.onscroll = () => { window.onscroll = () => {
if (window.scrollY > 75) { updateNavbar()
navbar.classList.add('nav-active')
} else {
navbar.classList.remove('nav-active')
}
} }
// set the navbar background color to opaque when expanded // set the navbar background color to opaque when expanded

View File

@@ -41,28 +41,6 @@
box-shadow: $box-shadow-sm; box-shadow: $box-shadow-sm;
} }
.navbar-overlay-dark {
--bs-navbar-color: #{$navbar-dark-color};
--bs-navbar-hover-color: #{$navbar-dark-hover-color};
--bs-navbar-disabled-color: #{$navbar-dark-disabled-color};
--bs-navbar-active-color: #{$navbar-dark-active-color};
--bs-navbar-brand-color: #{$navbar-dark-brand-color};
--bs-navbar-brand-hover-color: #{$navbar-dark-brand-hover-color};
--bs-navbar-toggler-border-color: #{$navbar-dark-toggler-border-color};
--bs-navbar-toggler-color: white;
}
.navbar-overlay-light, .navbar-overlay-dark.nav-active, .navbar-overlay-dark.navbar-expanded {
--bs-navbar-color: #{$navbar-light-color};
--bs-navbar-hover-color: #{$navbar-light-hover-color};
--bs-navbar-disabled-color: #{$navbar-light-disabled-color};
--bs-navbar-active-color: #{$navbar-light-active-color};
--bs-navbar-brand-color: #{$navbar-light-brand-color};
--bs-navbar-brand-hover-color: #{$navbar-light-brand-hover-color};
--bs-navbar-toggler-border-color: #{$navbar-light-toggler-border-color};
--bs-navbar-toggler-color: black;
}
.nav-item .vr { .nav-item .vr {
color: var(--bs-navbar-color); color: var(--bs-navbar-color);
} }

View File

@@ -50,6 +50,9 @@
#toc-collapse { #toc-collapse {
border-color: var(--bs-secondary-color) !important; border-color: var(--bs-secondary-color) !important;
border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius) !important;
margin-top: -1.5rem;
padding-top: 1.5rem !important;
} }
.toc-button { .toc-button {
@@ -60,6 +63,8 @@
--bs-btn-active-bg: var(--bs-body-bg); --bs-btn-active-bg: var(--bs-body-bg);
--bs-btn-active-border-color: var(--bs-primary); --bs-btn-active-border-color: var(--bs-primary);
background-color: var(--#{$prefix}body-bg) !important;
&.active, &.active,
&:hover, &:hover,
&:focus { &:focus {

View File

@@ -31,6 +31,9 @@
inline = true inline = true
debug = true debug = true
skipMissing = false skipMissing = false
[modules.utils]
filter = "[^0-9A-Za-zŽžÀ-ÿ ;.,\\/'\"]-"
raw = false
# toml-docs-end modules # toml-docs-end modules
# toml-docs-start debugging # toml-docs-start debugging
@@ -162,6 +165,7 @@
themeFont = "Inter" themeFont = "Inter"
# themeFontPath = "https://fonts.googleapis.com/css2?family=Inter:wght@200;300;600&display=swap" # external path # themeFontPath = "https://fonts.googleapis.com/css2?family=Inter:wght@200;300;600&display=swap" # external path
themeFontPath = "/fonts" # local path themeFontPath = "/fonts" # local path
themeFontPreload = "/fonts/inter-v12-latin-regular.woff2"
fontSizeBase = "1rem" # assumes the browser default, typically '16px' fontSizeBase = "1rem" # assumes the browser default, typically '16px'
# toml-docs-end font # toml-docs-end font
# toml-docs-start build # toml-docs-start build

View File

@@ -94,3 +94,8 @@ arguments:
optional: true optional: true
comment: >- comment: >-
Flag indicating if the number of columns should be responsive, defaults to `true`. Flag indicating if the number of columns should be responsive, defaults to `true`.
hook:
type: string
optional: true
comment: Render hook for the card partial.
group: partial

View File

@@ -200,6 +200,11 @@ arguments:
release: v0.23.0-beta release: v0.23.0-beta
comment: >- comment: >-
Flag indicating the cards should include a button that links to the provided address. Flag indicating the cards should include a button that links to the provided address.
hook:
type: string
optional: true
comment: Render hook for the image partial.
group: partial
body: body:
optional: true optional: true
comment: >- comment: >-

View File

@@ -115,3 +115,8 @@ arguments:
type: string type: string
optional: true optional: true
comment: Class attribute of the inner img element, e.g. `rounded`. comment: Class attribute of the inner img element, e.g. `rounded`.
figclass:
type: string
optional: true
comment: Class attribute of the figure caption, e.g. `px-4`.
release: v0.23.0-beta

7
exampleSite/.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
/_vendor
public/
resources/
.DS_store
.hugo_build.lock
.hvm

View File

@@ -83,6 +83,7 @@ home = ["HTML", "RSS", "REDIR"]
keepWhitespace = true keepWhitespace = true
[module] [module]
replacements = 'github.com/gethinode/hinode -> ../..' # Build and serve using local hinode clone declared in the named Hugo workspace:
workspace = "hinode.work"
[[module.imports]] [[module.imports]]
path = "github.com/gethinode/hinode" path = "github.com/gethinode/hinode"

View File

@@ -157,7 +157,8 @@
themeFont = "Inter" themeFont = "Inter"
# themeFontPath = "https://fonts.googleapis.com/css2?family=Inter:wght@200;300;600&display=swap" # external path # themeFontPath = "https://fonts.googleapis.com/css2?family=Inter:wght@200;300;600&display=swap" # external path
themeFontPath = "/fonts" # local path themeFontPath = "/fonts" # local path
purge = true themeFontPreload = "/fonts/inter-v12-latin-regular.woff2"
purge = false # TODO: fix purge setting of example site
# toml-docs-end theme-colors # toml-docs-end theme-colors
[schema] [schema]

View File

@@ -4,7 +4,7 @@ const cssnano = require('cssnano')({
}) })
const whitelister = require('purgecss-whitelister') const whitelister = require('purgecss-whitelister')
const purgecss = require('@fullhuman/postcss-purgecss')({ const purgecss = require('@fullhuman/postcss-purgecss')({
content: ['./exampleSite/hugo_stats.json'], content: ['./hugo_stats.json'],
defaultExtractor: (content) => { defaultExtractor: (content) => {
const els = JSON.parse(content).htmlElements const els = JSON.parse(content).htmlElements
return [...(els.tags || []), ...(els.classes || []), ...(els.ids || [])] return [...(els.tags || []), ...(els.classes || []), ...(els.ids || [])]
@@ -12,18 +12,18 @@ const purgecss = require('@fullhuman/postcss-purgecss')({
dynamicAttributes: ['data-bs-theme'], dynamicAttributes: ['data-bs-theme'],
safelist: [ safelist: [
...whitelister([ ...whitelister([
'./assets/scss/components/_clipboard.scss', './_vendor/github.com/gethinode/hinode/assets/scss/components/_clipboard.scss',
'./assets/scss/components/_command.scss', './_vendor/github.com/gethinode/hinode/assets/scss/components/_command.scss',
'./assets/scss/components/_nav.scss', './_vendor/github.com/gethinode/hinode/assets/scss/components/_nav.scss',
'./assets/scss/components/_navbar.scss', './_vendor/github.com/gethinode/hinode/assets/scss/components/_navbar.scss',
'./assets/scss/components/_search.scss', './_vendor/github.com/gethinode/hinode/assets/scss/components/_search.scss',
'./assets/scss/components/_syntax.scss', './_vendor/github.com/gethinode/hinode/assets/scss/components/_syntax.scss',
'./assets/scss/components/_syntax-dark.scss', './_vendor/github.com/gethinode/hinode/assets/scss/components/_syntax-dark.scss',
'./assets/scss/components/_syntax-light.scss', './_vendor/github.com/gethinode/hinode/assets/scss/components/_syntax-light.scss',
'./assets/scss/components/_table.scss', './_vendor/github.com/gethinode/hinode/assets/scss/components/_table.scss',
'./assets/scss/components/_video.scss', './_vendor/github.com/gethinode/hinode/assets/scss/components/_video.scss',
'./assets/scss/theme/fonts.scss', './_vendor/github.com/gethinode/hinode/assets/scss/theme/fonts.scss',
'./assets/scss/theme/theme.scss', './_vendor/github.com/gethinode/hinode/assets/scss/theme/theme.scss',
'./_vendor/github.com/gethinode/mod-flexsearch/assets/scss/modules/flexsearch/flexsearch.scss', './_vendor/github.com/gethinode/mod-flexsearch/assets/scss/modules/flexsearch/flexsearch.scss',
'./_vendor/github.com/gethinode/mod-katex/dist/katex.scss', './_vendor/github.com/gethinode/mod-katex/dist/katex.scss',
'./_vendor/github.com/gethinode/mod-leaflet/dist/leaflet.scss', './_vendor/github.com/gethinode/mod-leaflet/dist/leaflet.scss',

View File

@@ -26,7 +26,7 @@ Additional features include:
* Support for multiple languages * Support for multiple languages
* Reusable Bootstrap components through configurable shortcodes and partials * Reusable Bootstrap components through configurable shortcodes and partials
* Versioned documentation, including sidebar navigation and version switcher * Versioned documentation, including sidebar navigation and version switcher
* Reponsive image handling for multiple screen sizes and resolutions * Responsive image handling for multiple screen sizes and resolutions
* Optimized search results, scoring 100 points for SEO on [PageSpeed Insights]({{< param "links.pagespeed" >}}) * Optimized search results, scoring 100 points for SEO on [PageSpeed Insights]({{< param "links.pagespeed" >}})
* Secure by default, scoring A+ on [Mozilla Observatory test]({{< param "links.observatory" >}}) * Secure by default, scoring A+ on [Mozilla Observatory test]({{< param "links.observatory" >}})
{.tickmark} {.tickmark}

View File

@@ -1,6 +1,4 @@
module github.com/gethinode/hinode-test module github.com/gethinode/hinode/exampleSite
go 1.19 go 1.19
require (
)

View File

@@ -1,69 +1,14 @@
github.com/gethinode/mod-bootstrap v1.1.1 h1:Tx4M5hGVOFrEaxnUONDAm6N9xuRi5UphKlT7F26HujU= github.com/gethinode/hinode v0.22.5 h1:zpjSDgWQVbq4BjPduxwexQB18gawFeinzPkaRRTs2Tg=
github.com/gethinode/mod-bootstrap v1.1.1/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8= github.com/gethinode/hinode v0.22.5/go.mod h1:hsskrlBRnTbpCjrDtGbK8C1VYGML7ezHtCDGDiYL2mQ=
github.com/gethinode/mod-bootstrap v1.2.0 h1:JkTcImU3qpi25WgKvUxUYiMoiXtrxrG+Wf/utRB5UbU=
github.com/gethinode/mod-bootstrap v1.2.0/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
github.com/gethinode/mod-bootstrap v1.2.1 h1:z54dgsbhShhlri+X77Z+yLrg0wz/f8C8ojA/wnlhsJc=
github.com/gethinode/mod-bootstrap v1.2.1/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
github.com/gethinode/mod-bootstrap v1.2.2 h1:Q8E04OKWr9owk7nhQ/NBukUgSFhsECxZsOLEaf5oeiQ= github.com/gethinode/mod-bootstrap v1.2.2 h1:Q8E04OKWr9owk7nhQ/NBukUgSFhsECxZsOLEaf5oeiQ=
github.com/gethinode/mod-bootstrap v1.2.2/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8= github.com/gethinode/mod-bootstrap v1.2.2/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
github.com/gethinode/mod-flexsearch v1.2.0 h1:SSMpWzK9SMbi9QRYfil9PJZLLWWLHWzlTc69UxtSWAA= github.com/gethinode/mod-flexsearch v1.9.0 h1:AE+w7QeZTxh36JNTG+CASDLxaqlCZKn+EUD6ulnPGak=
github.com/gethinode/mod-flexsearch v1.2.0/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4= github.com/gethinode/mod-flexsearch v1.9.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
github.com/gethinode/mod-flexsearch v1.3.0 h1:RbfEDw219Y1rOVp9lHmy5ePdF9lyPalDu2J5oVeejrU= github.com/gethinode/mod-fontawesome v1.8.1 h1:iyvULrpaGizQoI5Vl9WjFYcMGWefdyG90NGK2UKax+k=
github.com/gethinode/mod-flexsearch v1.3.0/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4= github.com/gethinode/mod-fontawesome v1.8.1/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
github.com/gethinode/mod-flexsearch v1.4.0 h1:5e/NVRLyWzUZ9fO/fNsM5o+O7nw+xyln2rfEOtbgfWc=
github.com/gethinode/mod-flexsearch v1.4.0/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
github.com/gethinode/mod-flexsearch v1.4.1 h1:z+GKvhJ4v6BsZsWVZRgbO9WcmSZEVUkb3Q9a09yXtd8=
github.com/gethinode/mod-flexsearch v1.4.1/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
github.com/gethinode/mod-flexsearch v1.5.1 h1:9fYlnHgiEXckL0EoC0zlSNO7BWZf5yiOroSWT13Kphc=
github.com/gethinode/mod-flexsearch v1.5.1/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
github.com/gethinode/mod-flexsearch v1.6.0 h1:Rjx+GLOByFLmaWD9hZXwmuKN8A89te6BZAIq2c9QBKg=
github.com/gethinode/mod-flexsearch v1.6.0/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
github.com/gethinode/mod-flexsearch v1.7.0 h1:VFTf6iUyT9b47jTDAxh8nVHU1eUBrdxlykaC90lTfqk=
github.com/gethinode/mod-flexsearch v1.7.0/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
github.com/gethinode/mod-flexsearch v1.7.1 h1:f4rjKkhleDVzqwUmwP1xZdhjru5VQ9g0MRDz0G6oLyY=
github.com/gethinode/mod-flexsearch v1.7.1/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
github.com/gethinode/mod-fontawesome v1.2.4 h1:SqE3CQ+boaBIhrVh3MPu4nz0uoHPfEH5t60nNY1CfsI=
github.com/gethinode/mod-fontawesome v1.2.4/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-fontawesome v1.2.5 h1:RqkLRj6+s+gM4nKd0IwNMMDA8cRmxfp0fxkVH4FdAGU=
github.com/gethinode/mod-fontawesome v1.2.5/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-fontawesome v1.3.0 h1:oudeDBlAKu8vqYxumWuq5SG5F5itm33NgTrBLgvPulQ=
github.com/gethinode/mod-fontawesome v1.3.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-fontawesome v1.3.1 h1:EdnBuG2B+bi06OcYmcL1NfSxHpRMEGu8TXUqEEpVH4g=
github.com/gethinode/mod-fontawesome v1.3.1/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-fontawesome v1.3.2 h1:qLJSbAFR2T33BuBtC2Iulm9wZql3cy7AhXjxc2YGzBU=
github.com/gethinode/mod-fontawesome v1.3.2/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-fontawesome v1.4.0 h1:JfmVYwQl19jmZxgxY64yvGqJAAEiFkKf2dbZ5Iv08Qw=
github.com/gethinode/mod-fontawesome v1.4.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-fontawesome v1.5.0 h1:3mW5dnWauuF9wSWXNIY+PPgTNPlc/xQOQoG7XGic1Yk=
github.com/gethinode/mod-fontawesome v1.5.0/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-fontawesome v1.5.1 h1:C7goQY4HrEua/lpjC++laydNKBuYo1+307ngn5tyXeM=
github.com/gethinode/mod-fontawesome v1.5.1/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-fontawesome v1.6.1 h1:iqOgDGdw7Bs4hnzjF/8JsUn10omyKQZTglLqNenT1K0=
github.com/gethinode/mod-fontawesome v1.6.1/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-fontawesome v1.7.3 h1:YzRCYSasVRIcImVmTJYjqNJ+KmyNWfm/bMgtM0slvzs=
github.com/gethinode/mod-fontawesome v1.7.3/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-katex v1.0.1/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
github.com/gethinode/mod-katex v1.0.2 h1:pIG4n3qLl/IVe7BEiwn+GL8r5lOCtF6FDxlcrPKdAXk=
github.com/gethinode/mod-katex v1.0.2/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
github.com/gethinode/mod-katex v1.0.3 h1:fvlUWqcUQqv2zRNM2kfmJ6GhXA816Tl1nfVrUkmBStI=
github.com/gethinode/mod-katex v1.0.3/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
github.com/gethinode/mod-katex v1.0.4 h1:NozgWPFnHhx1W+E9DnwMTRpvxPbdqdANEtwp9N3/mj8=
github.com/gethinode/mod-katex v1.0.4/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
github.com/gethinode/mod-katex v1.0.5 h1:AVhcTINYory0ygChQERf8PcyJkbT1oqhmLRF6ESnWOY= github.com/gethinode/mod-katex v1.0.5 h1:AVhcTINYory0ygChQERf8PcyJkbT1oqhmLRF6ESnWOY=
github.com/gethinode/mod-katex v1.0.5/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg= github.com/gethinode/mod-katex v1.0.5/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
github.com/gethinode/mod-leaflet v0.3.4 h1:oY+YQ0JiJuhFQNrk9XgFdg0NMsTUQPXNfnILp4ia4r4= github.com/gethinode/mod-leaflet v1.0.0 h1:HdnWafOGkkK1hYGfqLYF3pp9dAFS/caxlzML9sO1rCc=
github.com/gethinode/mod-leaflet v0.3.4/go.mod h1:uGggt87x4Fw7wBoJpSiUvNkYg+s/Ujne7klAX2rxMRk= github.com/gethinode/mod-leaflet v1.0.0/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
github.com/gethinode/mod-leaflet v0.3.5 h1:69Bv/6zRXhbcTzo7TMr58h3ry47srHRpM1k81LrLbYU= github.com/gethinode/mod-lottie v1.4.3 h1:IKZO8a4yQyPKUwZ6POsZRIH/B++yEzXDe5HxrFF79KA=
github.com/gethinode/mod-leaflet v0.3.5/go.mod h1:uGggt87x4Fw7wBoJpSiUvNkYg+s/Ujne7klAX2rxMRk= github.com/gethinode/mod-lottie v1.4.3/go.mod h1:nt4wLnDFIhjBGRMuQJJ2bH80VREpbcsBUsdO6uWXjLs=
github.com/gethinode/mod-lottie v1.0.0 h1:1CUZMcgN5FAyjjyuP3qkaOQ6M5sv6HUAbosW4sIT5VE=
github.com/gethinode/mod-lottie v1.0.0/go.mod h1:erRCgSL2FCfKHI0jQbSpM+g0jXl7SjKVJrh7kWGteKs=
github.com/gethinode/mod-lottie v1.0.1 h1:+IE7xtnSVQpJS56oBJq9RWKZeFEfxrOZAqE3BSrS/u0=
github.com/gethinode/mod-lottie v1.0.1/go.mod h1:erRCgSL2FCfKHI0jQbSpM+g0jXl7SjKVJrh7kWGteKs=
github.com/gethinode/mod-lottie v1.0.2 h1:QM/PJqEl1UhNNoPx6y7pVtwev/mDxUyWNHLqDB76YzI=
github.com/gethinode/mod-lottie v1.0.2/go.mod h1:erRCgSL2FCfKHI0jQbSpM+g0jXl7SjKVJrh7kWGteKs=
github.com/gethinode/mod-lottie v1.1.0 h1:KnfOQ45xdv1tpsKCkF5OiE3QuT29ycppBfY6o+rWl/4=
github.com/gethinode/mod-lottie v1.1.0/go.mod h1:erRCgSL2FCfKHI0jQbSpM+g0jXl7SjKVJrh7kWGteKs=
github.com/gethinode/mod-lottie v1.2.0 h1:9S0Y4PlEO66dIvFxayatmDEf8WWxqbLNLi4z563i2gM=
github.com/gethinode/mod-lottie v1.2.0/go.mod h1:erRCgSL2FCfKHI0jQbSpM+g0jXl7SjKVJrh7kWGteKs=
github.com/gethinode/mod-lottie v1.3.0 h1:vQ8CXkjdp2IeFskTzu+ZnKOEio8GtN08urVK+oCH81E=
github.com/gethinode/mod-lottie v1.3.0/go.mod h1:erRCgSL2FCfKHI0jQbSpM+g0jXl7SjKVJrh7kWGteKs=

4
exampleSite/hinode.work Normal file
View File

@@ -0,0 +1,4 @@
go 1.19
use .
use ../

View File

@@ -0,0 +1,18 @@
github.com/airbnb/lottie-web v5.12.2+incompatible h1:Ldogtlhiucf7mMsgisyxSBY0qunV44+lpa9Icy2KoQc=
github.com/airbnb/lottie-web v5.12.2+incompatible/go.mod h1:nTss557UK9FGnp8QYlCMO29tjUHwbdAHG/DprbGfHGE=
github.com/gethinode/hinode v0.22.5 h1:zpjSDgWQVbq4BjPduxwexQB18gawFeinzPkaRRTs2Tg=
github.com/gethinode/hinode v0.22.5/go.mod h1:hsskrlBRnTbpCjrDtGbK8C1VYGML7ezHtCDGDiYL2mQ=
github.com/gethinode/mod-flexsearch v1.8.1 h1:xwPvmmxd8Tdyxp8/rnd9KRGqIDtZs/YwAQJ1i9oQMiM=
github.com/gethinode/mod-flexsearch v1.8.1/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
github.com/gethinode/mod-fontawesome v1.8.0 h1:YEuCmvCdzcemF1eFK35Wnp1asKKO3/xbxGArnjq6PRY=
github.com/gethinode/mod-fontawesome v1.8.0/go.mod h1:uvuC2YL8mdXNp6NRzFOu4TWsHvtY9AZ8YxJkF23/M/8=
github.com/gethinode/mod-leaflet v0.4.0 h1:Xc6c1UTf4m1saQLFfFWT5sEpwj25xVGuS8csGC82UUI=
github.com/gethinode/mod-leaflet v0.4.0/go.mod h1:yr+bUKAstifdB16mbYh69OayAmgPOlNUubAmVn5eL2M=
github.com/gethinode/mod-lottie v1.4.1 h1:RzCjYsxFPqyBsYAcdPeUP0rvF+hD9eEl7NrxuaRiKQQ=
github.com/gethinode/mod-lottie v1.4.1/go.mod h1:QjKlEmYbekrNGwa9EdFlPcXxwWWcraJUQ6xIL+syA60=
github.com/gethinode/mod-utils v1.0.2 h1:0b3i+/bBHY1Td9N6khDbL1nf3d5HGc4QzI4BbEWHoU4=
github.com/gethinode/mod-utils v1.0.2/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE=
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
github.com/twbs/bootstrap v5.3.2+incompatible h1:tuiO5acc6xnZUR77Sbi5aKWXxjYxbmsSbJwYrhAKoQQ=
github.com/twbs/bootstrap v5.3.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

View File

@@ -15,6 +15,7 @@
"form", "form",
"h2", "h2",
"h3", "h3",
"h5",
"head", "head",
"hr", "hr",
"html", "html",
@@ -307,6 +308,11 @@
"navbar-toggler", "navbar-toggler",
"next", "next",
"no-js", "no-js",
"offcanvas",
"offcanvas-body",
"offcanvas-header",
"offcanvas-start",
"offcanvas-title",
"order-0", "order-0",
"order-1", "order-1",
"order-first", "order-first",
@@ -332,7 +338,6 @@
"previous", "previous",
"ps-1", "ps-1",
"ps-3", "ps-3",
"ps-xl-3",
"pt-1", "pt-1",
"pt-5", "pt-5",
"pt-md-3", "pt-md-3",
@@ -520,6 +525,8 @@
"navbar-sample-collapse", "navbar-sample-collapse",
"navigation", "navigation",
"notification", "notification",
"offcanvas-label",
"offcanvass-sidebar",
"persona", "persona",
"projecten", "projecten",
"projects", "projects",

12
go.mod
View File

@@ -4,13 +4,13 @@ go 1.19
require ( require (
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
github.com/gethinode/mod-bootstrap v1.2.2 // indirect github.com/gethinode/mod-bootstrap v1.2.5 // indirect
github.com/gethinode/mod-flexsearch v1.9.0 // indirect github.com/gethinode/mod-flexsearch v1.10.0 // indirect
github.com/gethinode/mod-fontawesome v1.8.1 // indirect github.com/gethinode/mod-fontawesome v1.8.1 // indirect
github.com/gethinode/mod-katex v1.0.5 // indirect github.com/gethinode/mod-katex v1.0.7 // indirect
github.com/gethinode/mod-leaflet v1.0.0 // indirect github.com/gethinode/mod-leaflet v1.0.0 // indirect
github.com/gethinode/mod-lottie v1.4.2 // indirect github.com/gethinode/mod-lottie v1.4.4 // indirect
github.com/gethinode/mod-utils/v2 v2.0.3 // indirect github.com/gethinode/mod-utils/v2 v2.1.1 // indirect
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 // indirect github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 // indirect
github.com/twbs/bootstrap v5.3.2+incompatible // indirect github.com/twbs/bootstrap v5.3.3+incompatible // indirect
) )

18
go.sum
View File

@@ -12,6 +12,10 @@ github.com/gethinode/mod-bootstrap v1.2.1 h1:z54dgsbhShhlri+X77Z+yLrg0wz/f8C8ojA
github.com/gethinode/mod-bootstrap v1.2.1/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8= github.com/gethinode/mod-bootstrap v1.2.1/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
github.com/gethinode/mod-bootstrap v1.2.2 h1:Q8E04OKWr9owk7nhQ/NBukUgSFhsECxZsOLEaf5oeiQ= github.com/gethinode/mod-bootstrap v1.2.2 h1:Q8E04OKWr9owk7nhQ/NBukUgSFhsECxZsOLEaf5oeiQ=
github.com/gethinode/mod-bootstrap v1.2.2/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8= github.com/gethinode/mod-bootstrap v1.2.2/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
github.com/gethinode/mod-bootstrap v1.2.4 h1:4CFNpwpRKiZlMVWg9u5+ijSb924j4yM3G1p96Hquas0=
github.com/gethinode/mod-bootstrap v1.2.4/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
github.com/gethinode/mod-bootstrap v1.2.5 h1:h6yAlkMZA34wJU3pLFpLxp1ynEBte/YTY4kGEQtMGPE=
github.com/gethinode/mod-bootstrap v1.2.5/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
github.com/gethinode/mod-flexsearch v1.0.1 h1:FJkRsUzSnQTXl3MWCigT4E6vfff870UWTnkGqaDGIhA= github.com/gethinode/mod-flexsearch v1.0.1 h1:FJkRsUzSnQTXl3MWCigT4E6vfff870UWTnkGqaDGIhA=
github.com/gethinode/mod-flexsearch v1.0.1/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4= github.com/gethinode/mod-flexsearch v1.0.1/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
github.com/gethinode/mod-flexsearch v1.1.0 h1:7BCMyQDlYlskNXuazt8Jg/jg9WREexu2xVkYqThkAX4= github.com/gethinode/mod-flexsearch v1.1.0 h1:7BCMyQDlYlskNXuazt8Jg/jg9WREexu2xVkYqThkAX4=
@@ -46,6 +50,8 @@ github.com/gethinode/mod-flexsearch v1.8.1 h1:xwPvmmxd8Tdyxp8/rnd9KRGqIDtZs/YwAQ
github.com/gethinode/mod-flexsearch v1.8.1/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ= github.com/gethinode/mod-flexsearch v1.8.1/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
github.com/gethinode/mod-flexsearch v1.9.0 h1:AE+w7QeZTxh36JNTG+CASDLxaqlCZKn+EUD6ulnPGak= github.com/gethinode/mod-flexsearch v1.9.0 h1:AE+w7QeZTxh36JNTG+CASDLxaqlCZKn+EUD6ulnPGak=
github.com/gethinode/mod-flexsearch v1.9.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ= github.com/gethinode/mod-flexsearch v1.9.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
github.com/gethinode/mod-flexsearch v1.10.0 h1:ymlHu5G2635D/h2axG4jgpGS+Vvtzxg07SZX8pJOJSo=
github.com/gethinode/mod-flexsearch v1.10.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
github.com/gethinode/mod-fontawesome v1.0.2 h1:ZSK6D20/w4y5GnfYfTBB58uHD0ChIfkpKfRGwioS9rg= github.com/gethinode/mod-fontawesome v1.0.2 h1:ZSK6D20/w4y5GnfYfTBB58uHD0ChIfkpKfRGwioS9rg=
github.com/gethinode/mod-fontawesome v1.0.2/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI= github.com/gethinode/mod-fontawesome v1.0.2/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
github.com/gethinode/mod-fontawesome v1.1.0 h1:rsDzUI+3ZlS/do2ff3ne8/z3KwHeysmuA+WsXlumXXk= github.com/gethinode/mod-fontawesome v1.1.0 h1:rsDzUI+3ZlS/do2ff3ne8/z3KwHeysmuA+WsXlumXXk=
@@ -94,6 +100,8 @@ github.com/gethinode/mod-katex v1.0.4 h1:NozgWPFnHhx1W+E9DnwMTRpvxPbdqdANEtwp9N3
github.com/gethinode/mod-katex v1.0.4/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg= github.com/gethinode/mod-katex v1.0.4/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
github.com/gethinode/mod-katex v1.0.5 h1:AVhcTINYory0ygChQERf8PcyJkbT1oqhmLRF6ESnWOY= github.com/gethinode/mod-katex v1.0.5 h1:AVhcTINYory0ygChQERf8PcyJkbT1oqhmLRF6ESnWOY=
github.com/gethinode/mod-katex v1.0.5/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg= github.com/gethinode/mod-katex v1.0.5/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
github.com/gethinode/mod-katex v1.0.7 h1:FTEhvi3r+O5lPeOxB7OsanFZuAB14yC5fIk3DqhkNyY=
github.com/gethinode/mod-katex v1.0.7/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
github.com/gethinode/mod-leaflet v0.2.3 h1:QQI4h+IH0jZ7fx4q0um2YIEiYBoW3OAfW8qHzbRCDPk= github.com/gethinode/mod-leaflet v0.2.3 h1:QQI4h+IH0jZ7fx4q0um2YIEiYBoW3OAfW8qHzbRCDPk=
github.com/gethinode/mod-leaflet v0.2.3/go.mod h1:uGggt87x4Fw7wBoJpSiUvNkYg+s/Ujne7klAX2rxMRk= github.com/gethinode/mod-leaflet v0.2.3/go.mod h1:uGggt87x4Fw7wBoJpSiUvNkYg+s/Ujne7klAX2rxMRk=
github.com/gethinode/mod-leaflet v0.3.1 h1:H5MaOa+BB1KuVw7abTqfIn/SNzzRsAyx/WQoSe+2Ykc= github.com/gethinode/mod-leaflet v0.3.1 h1:H5MaOa+BB1KuVw7abTqfIn/SNzzRsAyx/WQoSe+2Ykc=
@@ -126,6 +134,10 @@ github.com/gethinode/mod-lottie v1.4.1 h1:RzCjYsxFPqyBsYAcdPeUP0rvF+hD9eEl7Nrxua
github.com/gethinode/mod-lottie v1.4.1/go.mod h1:QjKlEmYbekrNGwa9EdFlPcXxwWWcraJUQ6xIL+syA60= github.com/gethinode/mod-lottie v1.4.1/go.mod h1:QjKlEmYbekrNGwa9EdFlPcXxwWWcraJUQ6xIL+syA60=
github.com/gethinode/mod-lottie v1.4.2 h1:rHBhbMVRlkVMxVY+3g1u2kolDv695uL8Zur4mDeoIO8= github.com/gethinode/mod-lottie v1.4.2 h1:rHBhbMVRlkVMxVY+3g1u2kolDv695uL8Zur4mDeoIO8=
github.com/gethinode/mod-lottie v1.4.2/go.mod h1:H6y1e3/2bBR1ujuM5N1iY39kpyN3RtcSRahX90+tlQI= github.com/gethinode/mod-lottie v1.4.2/go.mod h1:H6y1e3/2bBR1ujuM5N1iY39kpyN3RtcSRahX90+tlQI=
github.com/gethinode/mod-lottie v1.4.3 h1:IKZO8a4yQyPKUwZ6POsZRIH/B++yEzXDe5HxrFF79KA=
github.com/gethinode/mod-lottie v1.4.3/go.mod h1:nt4wLnDFIhjBGRMuQJJ2bH80VREpbcsBUsdO6uWXjLs=
github.com/gethinode/mod-lottie v1.4.4 h1:Lv7J+lAMx++aK9h0L7vAgsjyOZgrjux4xPz4Tpza8n4=
github.com/gethinode/mod-lottie v1.4.4/go.mod h1:7tsZjlFgMlj2iWBIS9uOtHHsCrfx9W7S8OsBrZeSVGU=
github.com/gethinode/mod-utils v1.0.0 h1:cqHm2xS5uDiJzRm1KfHaNbq6uMVDKLhQa8/BuTZ1nhY= github.com/gethinode/mod-utils v1.0.0 h1:cqHm2xS5uDiJzRm1KfHaNbq6uMVDKLhQa8/BuTZ1nhY=
github.com/gethinode/mod-utils v1.0.0/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE= github.com/gethinode/mod-utils v1.0.0/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE=
github.com/gethinode/mod-utils v1.0.1 h1:jhZGlGFHHL1f5HXbBMXfiZ2gCz4TVafAzjnRPTIBSEE= github.com/gethinode/mod-utils v1.0.1 h1:jhZGlGFHHL1f5HXbBMXfiZ2gCz4TVafAzjnRPTIBSEE=
@@ -144,6 +156,10 @@ github.com/gethinode/mod-utils/v2 v2.0.2 h1:pocFT/mWPcfmABltZwe76D1IB3TZIrD1k1kH
github.com/gethinode/mod-utils/v2 v2.0.2/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY= github.com/gethinode/mod-utils/v2 v2.0.2/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
github.com/gethinode/mod-utils/v2 v2.0.3 h1:4BsRNGi+0a3Mq021Gq/TwDNiyuIfZ8xnpYU0DkNbUYI= github.com/gethinode/mod-utils/v2 v2.0.3 h1:4BsRNGi+0a3Mq021Gq/TwDNiyuIfZ8xnpYU0DkNbUYI=
github.com/gethinode/mod-utils/v2 v2.0.3/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY= github.com/gethinode/mod-utils/v2 v2.0.3/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
github.com/gethinode/mod-utils/v2 v2.1.0 h1:5I0IN/AX5qPFYx7tjWXk59GBevTJzixxZUGj9MJ0b8M=
github.com/gethinode/mod-utils/v2 v2.1.0/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
github.com/gethinode/mod-utils/v2 v2.1.1 h1:aLBcS9Zbx+dqnu5oBsTM01AkkN5nwwifgbV4D0qiHnM=
github.com/gethinode/mod-utils/v2 v2.1.1/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo= github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU= github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg= github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
@@ -152,3 +168,5 @@ github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 h1:H6xa5YyC
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU= github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
github.com/twbs/bootstrap v5.3.2+incompatible h1:tuiO5acc6xnZUR77Sbi5aKWXxjYxbmsSbJwYrhAKoQQ= github.com/twbs/bootstrap v5.3.2+incompatible h1:tuiO5acc6xnZUR77Sbi5aKWXxjYxbmsSbJwYrhAKoQQ=
github.com/twbs/bootstrap v5.3.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= github.com/twbs/bootstrap v5.3.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/twbs/bootstrap v5.3.3+incompatible h1:goFoqinzdHfkeegpFP7pvhbd0g+A3O2hbU3XCjuNrEQ=
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

View File

@@ -1,3 +1,3 @@
{{- partial "single/thumbnail.html" (dict "page" . "class" "mb-5") -}} {{- partial "single/thumbnail.html" (dict "page" . "wrapper" "mb-5") -}}
{{ partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }} {{ partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }}

View File

@@ -1,17 +1,15 @@
{{- $download := .Params.download -}} {{- $download := .Params.download -}}
{{- if and $download (not (fileExists (path.Join "static" $download))) -}}
{{- errorf "Cannot find download file for page '%s': %s" .File.Path $download -}}
{{- end -}}
{{- $toc := .Site.Params.navigation.toc -}} {{- $includeToc := false -}}
{{ if $toc }} {{- if .Site.Params.navigation.toc -}}
{{ $includeToc = true }}
{{ if isset .Params "includeToc" }} {{ if isset .Params "includeToc" }}
{{ $toc = .Params.includeToc }} {{ $includeToc = .Params.includeToc }}
{{ else }} {{ else }}
{{- with (index site.Params.pages .Type) -}} {{- with (index site.Params.pages .Type) -}}
{{ if isset . "includetoc" }} {{ if isset . "includetoc" }}
{{ $toc = index . "includetoc" }} {{ $includeToc = index . "includetoc" }}
{{ if ne (printf "%T" $toc) "bool" }} {{ if ne (printf "%T" $includeToc) "bool" }}
{{ errorf "Expected bool value in site parameters: pages.%s.includeToc" $.Type }} {{ errorf "Expected bool value in site parameters: pages.%s.includeToc" $.Type }}
{{ end }} {{ end }}
{{ end }} {{ end }}
@@ -19,24 +17,20 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
<div class="toc toc-sidebar mb-5 my-md-0 ps-xl-3 mb-lg-5 p-3 text-body-secondary sticky-top"> <div class="toc toc-sidebar mb-5 my-md-0 mb-lg-5 p-3 text-body-secondary sticky-top">
{{ with $download }} {{ if $download }}
{{ $title := (T "download" ) }} <div class="mb-5 p-0">
{{ $lang := strings.TrimPrefix "." (path.Ext (path.BaseName .)) }} {{ partial "assets/download.html" (dict
{{ if and $lang (ne (string site.LanguageCode) $lang) }} "download" $download
{{ range site.Languages }} "outline" true
{{ if eq .LanguageCode $lang }} "size" "sm"
{{ $title = printf "%s (%s)" (T "download") (T (printf "lang_%s" .LanguageCode)) }} "order" "last"
{{ end }} ) }}
{{ end }}
{{ end }}
<div class="mb-5 text-center">
{{ $attr := dict "download" (path.Base .) }}
{{ partial "assets/button.html" (dict "href" . "title" $title "color" "primary" "outline" "true" "icon" "fas download" "size" "sm" "attributes" $attr) }}
</div> </div>
{{ end }} {{ end }}
{{ if $toc }} {{ if $includeToc }}
{{ partial "assets/toc.html" (dict "page" .) }} {{ $index := partial "assets/toc.html" (dict "page" .) }}
{{ $index | safeHTML }}
{{ end -}} {{ end -}}
</div> </div>

View File

@@ -16,8 +16,8 @@
{{- $title := trim .title " \r\n" -}} {{- $title := trim .title " \r\n" -}}
{{- $icon := .icon }} {{- $icon := .icon }}
{{- if not (or $title $icon) -}} {{- if not (or $title $icon) -}}
{{- errorf "partial [assets/button.html] - Missing element title or icon" -}} {{- warnf "partial [assets/button.html] - Missing element title or icon" -}}
{{ $error = true }} {{ $title = T "linkPlaceholder" }}
{{- end -}} {{- end -}}
{{- $id := .id }} {{- $id := .id }}

View File

@@ -32,6 +32,7 @@
{{- $subtle := .subtle }} {{- $subtle := .subtle }}
{{- $loading := .loading -}} {{- $loading := .loading -}}
{{- $button := .button -}} {{- $button := .button -}}
{{- $hook := .hook | default "assets/card.html" }}
<!-- Override arguments --> <!-- Override arguments -->
{{ $isPages := in (slice "page.Pages" "resource.Resources") (printf "%T" $pages) }} {{ $isPages := in (slice "page.Pages" "resource.Resources") (printf "%T" $pages) }}
@@ -107,7 +108,7 @@
{{- $params = merge $params $element }} {{- $params = merge $params $element }}
<div class="col"> <div class="col">
{{- partial "assets/card.html" $params -}} {{- partial $hook $params -}}
</div> </div>
{{- if and (lt $index (sub $max 1)) $separator -}} {{- if and (lt $index (sub $max 1)) $separator -}}
<div class="col d-block d-sm-none"> <div class="col d-block d-sm-none">

View File

@@ -38,6 +38,7 @@
{{- $colorStyle = printf "bg-%s text-bg-%s" $color $color -}} {{- $colorStyle = printf "bg-%s text-bg-%s" $color $color -}}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{- $hook := .hook | default "assets/image.html" }}
<!-- Override arguments --> <!-- Override arguments -->
{{- $page := "" }} {{- $page := "" }}
@@ -75,12 +76,12 @@
{{- if $href -}} {{- if $href -}}
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link"> <a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
<p class="card-title fs-5 fw-bold">{{ $title }}</p> <p class="card-title fs-5 fw-bold">{{ $title }}</p>
{{ with $description }}<p class="card-text {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">{{ . }}</p>{{ end -}} {{ with $description }}<div class="card-text {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">{{ . | page.RenderString | safeHTML }}</div>{{ end -}}
</a> </a>
{{- else -}} {{- else -}}
<div> <div>
{{ with $title }}<p class="card-title fs-5 fw-bold">{{ . }}</p>{{ end -}} {{ with $title }}<p class="card-title fs-5 fw-bold">{{ . }}</p>{{ end -}}
{{ with $description }}<p class="card-text">{{ . }}</p>{{ end -}} {{ with $description }}<div class="card-text">{{ . | page.RenderString | safeHTML }}</div>{{ end -}}
</div> </div>
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
@@ -125,7 +126,7 @@
<div class="row g-0 row-cols-1 h-100{{ if $button }} pb-5{{ end }}"> <div class="row g-0 row-cols-1 h-100{{ if $button }} pb-5{{ end }}">
<div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else }}col-4{{ end }}"> <div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else }}col-4{{ end }}">
{{- if $thumbnail -}} {{- if $thumbnail -}}
{{- partial "assets/image.html" (dict "url" $thumbnail "ratio" (or $ratio "1x1") "wrapper" "h-100 card-img-wrap" "class" "rounded-start card-img-h100" "title" $title "loading" $loading) -}} {{- partial $hook (dict "url" $thumbnail "ratio" (or $ratio "1x1") "wrapper" "h-100 card-img-wrap" "class" "rounded-start card-img-h100" "title" $title "loading" $loading) -}}
{{- else if $icon -}} {{- else if $icon -}}
<div class="card-icon p-{{ $padding }} h-100 fa-wrapper d-flex align-items-{{ $align}} justify-content-center {{ $iconStyle }}"> <div class="card-icon p-{{ $padding }} h-100 fa-wrapper d-flex align-items-{{ $align}} justify-content-center {{ $iconStyle }}">
{{- partial "assets/icon.html" (dict "icon" (printf "%s %s" $icon $style)) -}} {{- partial "assets/icon.html" (dict "icon" (printf "%s %s" $icon $style)) -}}
@@ -140,7 +141,8 @@
</div> </div>
{{ if $page }}<div>{{ partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) }}</div>{{ end }} {{ if $page }}<div>{{ partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) }}</div>{{ end }}
{{ if $button }} {{ if $button }}
<div>{{ partial "assets/button.html" (dict "title" (T "readMore") "href" $href "outline" true "size" "sm" "class" "card-button mb-n4") }}</div> {{ $label := $title | default (T "readMore") }}
<div>{{ partial "assets/button.html" (dict "title" $label "icon" "fas chevron-right" "href" $href "outline" true "size" "sm" "class" "card-button mb-n4") }}</div>
{{ end }} {{ end }}
</div> </div>
</div> </div>
@@ -150,7 +152,7 @@
<!-- Render stacked / default card --> <!-- Render stacked / default card -->
<div class="card {{ $colorStyle }} {{ $class }} text-{{ $align }}"> <div class="card {{ $colorStyle }} {{ $class }} text-{{ $align }}">
{{- if $thumbnail -}} {{- if $thumbnail -}}
{{- partial "assets/image.html" (dict "url" $thumbnail "ratio" (or $ratio "16x9") "wrapper" "card-img-wrap" "class" "card-img-top" "title" (or $alt $title) "loading" $loading) -}} {{- partial $hook (dict "url" $thumbnail "ratio" (or $ratio "16x9") "wrapper" "card-img-wrap" "class" "card-img-top" "title" (or $alt $title) "loading" $loading) -}}
{{- else if $icon -}} {{- else if $icon -}}
<div class="card-icon p-{{ $padding }} {{ $iconStyle }} text-{{ $align }}"> <div class="card-icon p-{{ $padding }} {{ $iconStyle }} text-{{ $align }}">
{{- partial "assets/icon.html" (dict "icon" (printf "%s %s" $icon $style)) -}} {{- partial "assets/icon.html" (dict "icon" (printf "%s %s" $icon $style)) -}}
@@ -162,10 +164,11 @@
{{ if $page }}{{- partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) -}}{{ end }} {{ if $page }}{{- partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) -}}{{ end }}
</div> </div>
{{ if $button }} {{ if $button }}
{{ $label := $title | default (T "readMore") }}
<div class="row p-{{ $padding }}" > <div class="row p-{{ $padding }}" >
<div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else if eq $orientation "horizontal" }}col-4{{ end }}"></div> <div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else if eq $orientation "horizontal" }}col-4{{ end }}"></div>
<div class="col {{ if eq $orientation "horizontal-sm" }}px-2{{ else if eq $orientation "horizontal"}}px-1 {{ else }}px-2 pt-1{{ end }}"> <div class="col {{ if eq $orientation "horizontal-sm" }}px-2{{ else if eq $orientation "horizontal"}}px-1 {{ else }}px-2 pt-1{{ end }}">
{{ partial "assets/button.html" (dict "title" (T "readMore") "href" $href "outline" true "size" "sm" "class" "card-button") }} {{ partial "assets/button.html" (dict "title" $label "href" $href "outline" true "size" "sm" "class" "card-button") }}
</div> </div>
</div> </div>
{{ end }} {{ end }}

View File

@@ -0,0 +1,40 @@
{{- $download := partial "utilities/GetTargetPath.html" (dict "path" .download "page" page) -}}
{{- $title := .title }}
{{- $color := .color | default "primary" -}}
{{- $outline := .outline | default true -}}
{{- $icon := .icon | default "fas download" -}}
{{- $size := .size | default "sm" -}}
{{- $justify := .justify -}}
{{- $class := .class -}}
{{- $minimal := .minimal | default false -}}
{{- if and $download (not (fileExists (path.Join "static" $download))) -}}
{{- warnf "Cannot find download file for page '%s': %s" page.File.Path $download -}}
{{- end -}}
{{ with $download }}
{{ if not $title }}
{{ if not $minimal }}{{ $title = (T "download" ) }}{{ end }}
{{ $lang := strings.TrimPrefix "." (path.Ext (path.BaseName .)) }}
{{ if and $lang (ne (string site.LanguageCode) $lang) }}
{{ range site.Languages }}
{{ if eq .LanguageCode $lang }}
{{ $title = printf "%s (%s)" (T "download") (T (printf "lang_%s" .LanguageCode)) }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ $attr := dict "download" (path.Base .) }}
{{ partial "assets/button.html" (dict
"href" .
"title" $title
"color" $color
"outline" $outline
"icon" $icon
"size" $size
"justify" $justify
"class" $class
"attributes" $attr
) }}
{{ end }}

View File

@@ -27,6 +27,8 @@
{{- $class := .class -}} {{- $class := .class -}}
{{- $title := .title -}} {{- $title := .title -}}
{{- $caption := .caption -}} {{- $caption := .caption -}}
{{- $figclass := .figclass -}}
{{- $page := .page -}} {{- $page := .page -}}
{{- $loading := .loading -}} {{- $loading := .loading -}}
@@ -158,6 +160,7 @@
{{- $class := .class -}} {{- $class := .class -}}
{{- $title := .title -}} {{- $title := .title -}}
{{- $caption := .caption -}} {{- $caption := .caption -}}
{{- $figclass := .figclass -}}
{{- $fallbackURL := "" -}} {{- $fallbackURL := "" -}}
{{- $anchor := "" -}} {{- $anchor := "" -}}
{{- $imgset := "" -}} {{- $imgset := "" -}}
@@ -243,7 +246,7 @@
{{ end }} {{ end }}
</div> </div>
{{- if $caption -}} {{- if $caption -}}
<figcaption class="figure-caption">{{ $caption | safeHTML }}</figcaption> <figcaption class="figure-caption{{ with $figclass }} {{ . }}{{ end }}">{{ $caption | safeHTML }}</figcaption>
</figure> </figure>
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
@@ -257,6 +260,7 @@
"class" $class "class" $class
"title" $title "title" $title
"caption" $caption "caption" $caption
"figclass" $figclass
"lazy" $lazy "lazy" $lazy
"priority" $priority "priority" $priority
"page" $page) "page" $page)

View File

@@ -22,26 +22,26 @@
<li class="nav-item dropdown {{ if $collapsed }}d-{{ $size }}-none{{ else }}d-none d-{{ $size }}-block{{ end }}"> <li class="nav-item dropdown {{ if $collapsed }}d-{{ $size }}-none{{ else }}d-none d-{{ $size }}-block{{ end }}">
<a class="nav-link dropdown-toggle" href="#!" role="button" data-bs-toggle="dropdown" aria-label="{{ T "colorMode" }}" aria-expanded="false" id="{{ $id }}-theme{{ if $collapsed }}-collapsed{{ end }}"> <a class="nav-link dropdown-toggle" href="#!" role="button" data-bs-toggle="dropdown" aria-label="{{ T "colorMode" }}" aria-expanded="false" id="{{ $id }}-theme{{ if $collapsed }}-collapsed{{ end }}">
<span class="theme-icon-active">{{- partial "assets/icon.html" (dict "icon" "fas sun fa-fw") }}</span>{{ if $collapsed }}&nbsp;{{ T "colorMode" }} {{ end }} <span class="theme-icon-active">{{- partial "assets/icon.html" (dict "icon" "fas sun fa-fw") }}</span>{{ if $collapsed }}&nbsp;{{ T "colorMode" }}{{ end }}
<span class="d-md-none"></span> <span class="d-md-none"></span>
</a> </a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="{{ $id }}-theme{{ if $collapsed }}-collapsed{{ end }}"> <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="{{ $id }}-theme{{ if $collapsed }}-collapsed{{ end }}">
<li> <li>
<a class="dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}" data-bs-theme-value="light" href="#!"> <a class="dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}" data-bs-theme-value="light" href="#!">
<span class="theme-icon">{{- partial "assets/icon.html" (dict "icon" "fas sun fa-fw" "spacing" false) }}</span>&nbsp; <span class="theme-icon">{{- partial "assets/icon.html" (dict "icon" "fas sun fa-fw" "spacing" false) }}</span>&nbsp;
{{ T "colorLight" }} {{- T "colorLight" }}
</a> </a>
</li> </li>
<li> <li>
<a class="dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}" data-bs-theme-value="dark" href="#!"> <a class="dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}" data-bs-theme-value="dark" href="#!">
<span class="theme-icon">{{- partial "assets/icon.html" (dict "icon" "fas moon fa-fw" "spacing" false) }}</span>&nbsp; <span class="theme-icon">{{- partial "assets/icon.html" (dict "icon" "fas moon fa-fw" "spacing" false) }}</span>&nbsp;
{{ T "colorDark" }} {{- T "colorDark" }}
</a> </a>
</li> </li>
<li> <li>
<a class="dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}" data-bs-theme-value="auto" href="#!"> <a class="dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}" data-bs-theme-value="auto" href="#!">
<span class="theme-icon">{{- partial "assets/icon.html" (dict "icon" "fas circle-half-stroke fa-fw" "spacing" false) }}</span>&nbsp; <span class="theme-icon">{{- partial "assets/icon.html" (dict "icon" "fas circle-half-stroke fa-fw" "spacing" false) }}</span>&nbsp;
{{ T "colorAuto" }} {{- T "colorAuto" }}
</a> </a>
</li> </li>
</ul> </ul>
@@ -72,7 +72,7 @@
<li> <li>
{{- $url := (path.Join $item.url) | relLangURL -}} {{- $url := (path.Join $item.url) | relLangURL -}}
<a class="pe-5 dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}{{ if $active }} active{{ end }}{{ if $disabled }} disabled{{ end }}" href="{{ $url }}">{{ $item.label }} <a class="pe-5 dropdown-item{{ if $collapsed }} switch-mode-collapsed{{ end }}{{ if $active }} active{{ end }}{{ if $disabled }} disabled{{ end }}" href="{{ $url }}">{{ $item.label }}
{{ if $item.latest }} ({{ T "latest" }}){{ end }} {{ if $item.latest }}&nbsp;({{ T "latest" }}){{ end }}
{{ if $active }} {{ if $active }}
<span class="position-absolute end-0 me-3">{{- partial "assets/icon.html" (dict "icon" "fas check fa-fw") }}</span> <span class="position-absolute end-0 me-3">{{- partial "assets/icon.html" (dict "icon" "fas check fa-fw") }}</span>
{{ end }} {{ end }}
@@ -173,10 +173,13 @@
<div class="container-fluid {{ if $fixed }}fixed-top{{ end }} p-0{{ with $class }} {{ . }}{{ end }}"> <div class="container-fluid {{ if $fixed }}fixed-top{{ end }} p-0{{ with $class }} {{ . }}{{ end }}">
{{- partial "assets/page-alert.html" (dict "page" $page) -}} {{- partial "assets/page-alert.html" (dict "page" $page) -}}
<nav class="navbar p-4 <nav class="navbar p-4
{{ if $overlay }}navbar-overlay-{{ $overlayMode }}{{ else }}{{ with $color }}bg-{{ . }}{{ end }}{{ end }} {{- if not $overlay }}{{ with $color }} bg-{{ . }}{{ end }}{{ end -}}
{{ if $fixed }}navbar-fixed-top{{ end }} navbar-expand-{{ $size }} {{ if $fixed }} navbar-fixed-top{{ end }} navbar-expand-{{ $size -}}
{{ if $contrast }}navbar-contrast{{ end }}" {{ if $contrast }} navbar-contrast{{ end }}"
{{ with $theme }}data-bs-theme="{{ . }}"{{ end }} {{ if $overlay }}
data-bs-theme="{{ $overlayMode }}"
data-bs-overlay="{{ $overlayMode }}"
{{ else }}{{ with $theme }}data-bs-theme="{{ . }}"{{ end }}{{ end }}
{{ if $overlay }}data-navbar-color="{{ $color }}"{{ end }} {{ if $overlay }}data-navbar-color="{{ $color }}"{{ end }}
> >
<div class="container-xxl p-0"> <div class="container-xxl p-0">
@@ -256,10 +259,10 @@
{{- $currentLang := $page.Language.Lang -}} {{- $currentLang := $page.Language.Lang -}}
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle d-{{ $size }}-none" href="#!" role="button" data-bs-toggle="dropdown" aria-label="{{ T "languageSwitcherLabel" }}" aria-expanded="false"> <a class="nav-link dropdown-toggle d-{{ $size }}-none" href="#!" role="button" data-bs-toggle="dropdown" aria-label="{{ T "languageSwitcherLabel" }}" aria-expanded="false">
{{- partial "assets/icon.html" (dict "icon" "fas globe fa-fw" "spacing" false) }}&nbsp;{{ T "languageSwitcherLabel" }}&nbsp; {{- partial "assets/icon.html" (dict "icon" "fas globe fa-fw" "spacing" false) }}&nbsp;{{ T "languageSwitcherLabel" }}
</a> </a>
<a class="nav-link dropdown-toggle d-none d-{{ $size }}-block" href="#!" role="button" data-bs-toggle="dropdown" aria-label="{{ T "languageSwitcherLabel" }}" aria-expanded="false"> <a class="nav-link dropdown-toggle d-none d-{{ $size }}-block" href="#!" role="button" data-bs-toggle="dropdown" aria-label="{{ T "languageSwitcherLabel" }}" aria-expanded="false">
{{- partial "assets/icon.html" (dict "icon" "fas globe fa-fw" "spacing" true) }} {{- partial "assets/icon.html" (dict "icon" "fas globe fa-fw" "spacing" false) }}
</a> </a>
<ul class="dropdown-menu dropdown-menu-end "> <ul class="dropdown-menu dropdown-menu-end ">
{{- if $page.IsTranslated -}} {{- if $page.IsTranslated -}}
@@ -289,7 +292,7 @@
<li><hr class="dropdown-divider-bg"></li> <li><hr class="dropdown-divider-bg"></li>
<a class="nav-link d-{{ $size }}-none" href="#!" role="button" data-bs-toggle="modal" data-bs-target="#search-modal" aria-label="{{ T "ui_search" }}" aria-expanded="false"> <a class="nav-link d-{{ $size }}-none" href="#!" role="button" data-bs-toggle="modal" data-bs-target="#search-modal" aria-label="{{ T "ui_search" }}" aria-expanded="false">
{{ partial "assets/icon.html" (dict "icon" "fas magnifying-glass fa-fw") }} {{ T "ui_search" }} {{ partial "assets/icon.html" (dict "icon" "fas magnifying-glass fa-fw") }}&nbsp;{{ T "ui_search" }}
</a> </a>
<a class="nav-link d-none d-{{ $size }}-block" href="#!" role="button" data-bs-toggle="modal" data-bs-target="#search-modal" aria-label="{{ T "ui_search" }}" aria-expanded="false"> <a class="nav-link d-none d-{{ $size }}-block" href="#!" role="button" data-bs-toggle="modal" data-bs-target="#search-modal" aria-label="{{ T "ui_search" }}" aria-expanded="false">
{{ partial "assets/icon.html" (dict "icon" "fas magnifying-glass fa-fw") }} {{ partial "assets/icon.html" (dict "icon" "fas magnifying-glass fa-fw") }}

View File

@@ -35,7 +35,7 @@
{{- $sort := $page.Site.Params.sharing.sort | default "weight" -}} {{- $sort := $page.Site.Params.sharing.sort | default "weight" -}}
{{- $list = sort $list $sort $order -}} {{- $list = sort $list $sort $order -}}
{{- $download := $page.Params.download -}} {{- $download := partial "utilities/GetTargetPath.html" (dict "path" $page.Params.download "page" $page) -}}
{{- if and $download (not (fileExists (path.Join "static" $download))) -}} {{- if and $download (not (fileExists (path.Join "static" $download))) -}}
{{- errorf "Cannot find download file for page '%s': %s" $page.File.Path $download -}} {{- errorf "Cannot find download file for page '%s': %s" $page.File.Path $download -}}
{{- end -}} {{- end -}}
@@ -62,8 +62,17 @@
{{ partial "assets/button.html" (dict "href" "#!" "icon" "fas share-nodes fa-fw" "id" "btn-webshare" "class" "btn-social p-0" "attributes" $attr "label" (T "shareLink" (T "shareSystem")) "spacing" false) }} {{ partial "assets/button.html" (dict "href" "#!" "icon" "fas share-nodes fa-fw" "id" "btn-webshare" "class" "btn-social p-0" "attributes" $attr "label" (T "shareLink" (T "shareSystem")) "spacing" false) }}
{{- end -}} {{- end -}}
{{ with $download }} {{ with $download }}
{{ $label := (T "download" ) }}
{{ $lang := strings.TrimPrefix "." (path.Ext (path.BaseName .)) }}
{{ if and $lang (ne (string site.LanguageCode) $lang) }}
{{ range site.Languages }}
{{ if eq .LanguageCode $lang }}
{{ $label = printf "%s (%s)" (T "download") (T (printf "lang_%s" .LanguageCode)) }}
{{ end }}
{{ end }}
{{ end }}
{{ $attr := dict "download" (path.Base .) }} {{ $attr := dict "download" (path.Base .) }}
{{ partial "assets/button.html" (dict "href" . "icon" "fas download fa-fw" "class" "btn-social p-0" "attributes" $attr "spacing" false) }} {{ partial "assets/button.html" (dict "href" . "icon" "fas download fa-fw" "label" $label "class" "btn-social p-0" "attributes" $attr "spacing" false) }}
{{- end -}} {{- end -}}
</div> </div>
{{- end -}} {{- end -}}

View File

@@ -26,15 +26,14 @@
"icon" "fas sort" "icon" "fas sort"
"justify" "between" "justify" "between"
"collapse" "toc-collapse" "collapse" "toc-collapse"
"order" "last") "order" "last"
-}} "spacing" false
) -}}
</div> </div>
<p> <div class="collapse border bg-body-tertiary rounded p-1 navbar-nav-scroll" id="toc-collapse">
<div class="collapse border bg-body-tertiary rounded p-1 navbar-nav-scroll" id="toc-collapse"> <div class="toc toc-panel text-body p-2">
<div class="toc toc-panel text-body p-2"> <small>{{ $page.TableOfContents }}</small>
<small>{{ $page.TableOfContents }}</small>
</div>
</div> </div>
</p> </div>
{{ end -}} {{ end -}}

View File

@@ -18,6 +18,6 @@
<!-- Main code --> <!-- Main code -->
{{ if and (not $error) (gt $items 1) -}} {{ if and (not $error) (gt $items 1) -}}
<strong class="d-block h6 my-2 pb-2 border-bottom">{{ T "toc" }}</strong> <strong class="d-block h6 my-2 pb-2">{{ T "toc" }}:</strong>
{{ $page.TableOfContents }} {{ $page.TableOfContents }}
{{ end -}} {{ end -}}

View File

@@ -1,8 +1,10 @@
{{ define "head" }} {{ define "head" }}
{{- $version := strings.TrimPrefix "v" (partialCached "assets/version.html" .) -}}
{{ $desc := .Page.Description | default (.Page.Content | safeHTML | truncate 150) -}} {{ $desc := .Page.Description | default (.Page.Content | safeHTML | truncate 150) -}}
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
{{ hugo.Generator}} {{ hugo.Generator }}
<meta name="theme" content="{{ printf "Hinode %s" $version }}">
{{ partialCached "head/stylesheet-core.html" . -}} {{ partialCached "head/stylesheet-core.html" . -}}
{{ $page_modules := slice | append .Page.Params.modules }} {{ $page_modules := slice | append .Page.Params.modules }}
@@ -16,6 +18,9 @@
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="{{ .Site.Params.style.themeFontPath | default "https://fonts.googleapis.com/css2?family=Inter:wght@200;300;600&display=swap" }}"> <link rel="stylesheet" href="{{ .Site.Params.style.themeFontPath | default "https://fonts.googleapis.com/css2?family=Inter:wght@200;300;600&display=swap" }}">
{{ else if .Site.Params.style.themeFontPreload }}
{{ $font := .Site.Params.style.themeFontPreload }}
<link rel="preload" href="{{ $font }}" as="font" type="font/{{ strings.TrimPrefix "." (path.Ext $font) }}" crossorigin>
{{- end -}} {{- end -}}
{{ partial "head/seo.html" . }} {{ partial "head/seo.html" . }}
{{ partialCached "head/favicon.html" . -}} {{ partialCached "head/favicon.html" . -}}

View File

@@ -35,7 +35,7 @@
{{- end }} {{- end }}
{{- end -}} {{- end -}}
{{- range $index, $element := resources.Match "icons/**.svg" -}} {{- range resources.Match "icons/**.svg" -}}
{{- $icon := resources.Get $element | resources.ExecuteAsTemplate $element $params -}} {{- $icon := . | resources.ExecuteAsTemplate .RelPermalink $params -}}
{{- $icon.Publish -}} {{- $icon.Publish -}}
{{- end -}} {{- end -}}

View File

@@ -1,9 +1,12 @@
{{- $page := .page -}} {{- $page := .page -}}
{{- $class := printf "img-wrap" -}} {{- $wrapper := printf "img-wrap" -}}
{{- with .class }}{{ $class = printf "img-wrap %s" . }}{{ end -}} {{- with .wrapper }}{{ $wrapper = printf "img-wrap %s" . }}{{ end -}}
{{ $class := "rounded" }}
{{ with .class }}{{ $class = . }}{{ end }}
{{- $ratio := .ratio | default "21x9" -}} {{- $ratio := .ratio | default "21x9" -}}
{{- $thumbnail := "" -}} {{- $thumbnail := "" -}}
{{- $credits := "" -}} {{- $credits := "" -}}
{{ $figclass := .figclass }}
{{- if reflect.IsMap $page.Params.Thumbnail -}} {{- if reflect.IsMap $page.Params.Thumbnail -}}
{{- $thumbnail = $page.Params.Thumbnail.url -}} {{- $thumbnail = $page.Params.Thumbnail.url -}}
@@ -35,5 +38,5 @@
{{- end -}} {{- end -}}
{{ if $thumbnail -}} {{ if $thumbnail -}}
{{- partial "assets/image.html" (dict "url" $thumbnail "ratio" $ratio "wrapper" $class "class" "rounded" "title" $page.Params.title "caption" $credits "priority" "high") -}} {{- partial "assets/image.html" (dict "url" $thumbnail "ratio" $ratio "wrapper" $wrapper "class" $class "title" $page.Params.title "caption" $credits "figclass" $figclass "priority" "high") -}}
{{ end -}} {{ end -}}

View File

@@ -4,12 +4,12 @@
command = "npm run build:example" command = "npm run build:example"
[build.environment] [build.environment]
DART_SASS_VERSION = "1.69.7" DART_SASS_VERSION = "1.72.0"
HUGO_VERSION = "0.121.1" HUGO_VERSION = "0.124.0"
HUGO_ENV = "production" HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true" HUGO_ENABLEGITINFO = "true"
NODE_VERSION = "18.19.0" NODE_VERSION = "18.19.1"
NPM_VERSION = "10.2.3" NPM_VERSION = "10.2.4"
# toml-docs-end netlify # toml-docs-end netlify
[[headers]] [[headers]]

701
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.23.0-beta3", "version": "0.23.0",
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator", "description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
"keywords": [ "keywords": [
"hugo", "hugo",
@@ -68,17 +68,17 @@
"homepage": "https://gethinode.com", "homepage": "https://gethinode.com",
"devDependencies": { "devDependencies": {
"@fullhuman/postcss-purgecss": "^5.0.0", "@fullhuman/postcss-purgecss": "^5.0.0",
"@gethinode/netlify-plugin-dartsass": "^0.2.0", "@gethinode/netlify-plugin-dartsass": "^0.3.0",
"@netlify/plugin-lighthouse": "^6.0.0", "@netlify/plugin-lighthouse": "^6.0.0",
"autoprefixer": "^10.4.17", "autoprefixer": "^10.4.18",
"cssnano": "^6.0.3", "cssnano": "^6.1.0",
"cssnano-preset-advanced": "^6.0.3", "cssnano-preset-advanced": "^6.1.0",
"eslint": "^8.56.0", "eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0", "eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1", "eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2", "eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.1.1",
"hugo-bin": "^0.119.0", "hugo-bin": "^0.121.0",
"markdownlint-cli2": "^0.12.1", "markdownlint-cli2": "^0.12.1",
"netlify-plugin-hugo-cache-resources": "^0.2.1", "netlify-plugin-hugo-cache-resources": "^0.2.1",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
@@ -87,11 +87,11 @@
"replace-in-files-cli": "^2.2.0", "replace-in-files-cli": "^2.2.0",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"shx": "^0.3.4", "shx": "^0.3.4",
"stylelint": "^15.11.0", "stylelint": "^16.2.1",
"stylelint-config-standard-scss": "^11.1.0" "stylelint-config-standard-scss": "^13.0.0"
}, },
"optionalDependencies": { "optionalDependencies": {
"@gethinode/netlify-plugin-dartsass": "^0.2.0", "@gethinode/netlify-plugin-dartsass": "^0.3.0",
"@netlify/plugin-lighthouse": "*", "@netlify/plugin-lighthouse": "*",
"fsevents": "*", "fsevents": "*",
"netlify-plugin-hugo-cache-resources": "^0.2.1" "netlify-plugin-hugo-cache-resources": "^0.2.1"