Compare commits

...

70 Commits

Author SHA1 Message Date
Mark Dumay
0a6dbccb12 Merge pull request #1545 from gethinode/radius
fix: improve init of color mode icons
2025-08-24 14:02:11 +02:00
Mark Dumay
c012eb5358 Merge branch 'main' into radius 2025-08-24 13:56:27 +02:00
Mark Dumay
bb2f1b63cf fix: improve init of color mode icons 2025-08-24 13:55:43 +02:00
github-actions[bot]
d7facc353d Merge pull request #1543 from gethinode/dependabot/npm_and_yarn/brace-expansion-1.1.12
build(deps): bump brace-expansion from 1.1.11 to 1.1.12
2025-08-22 10:42:12 +00:00
Mark Dumay
4dcae71516 Merge branch 'main' into dependabot/npm_and_yarn/brace-expansion-1.1.12 2025-08-22 12:26:58 +02:00
github-actions[bot]
bac2bed6ad Merge pull request #1539 from gethinode/dependabot/github_actions/actions/checkout-5
build(deps): bump actions/checkout from 4 to 5
2025-08-22 10:09:14 +00:00
dependabot[bot]
56275d04dc build(deps): bump brace-expansion from 1.1.11 to 1.1.12
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 10:00:16 +00:00
Mark Dumay
f32a958cf9 Merge branch 'main' into dependabot/github_actions/actions/checkout-5 2025-08-22 11:59:25 +02:00
Mark Dumay
e00e04b40b Merge pull request #1540 from gethinode/hugo-mod-dependencies
Update Hugo module dependencies
2025-08-22 11:58:56 +02:00
Mark Dumay
4970c604d9 Merge branch 'main' into hugo-mod-dependencies 2025-08-22 11:41:05 +02:00
Mark Dumay
a44e5dcafc Merge pull request #1542 from gethinode/radius
Radius
2025-08-22 11:40:51 +02:00
Mark Dumay
8493154844 Merge branch 'main' into radius 2025-08-22 11:32:52 +02:00
Mark Dumay
8a8a644ccf feat: support theme-border-radius for consistent styling 2025-08-22 11:32:02 +02:00
Mark Dumay
d390d2eb4e fix: set font display to block to reduce layout shift 2025-08-22 11:19:22 +02:00
Mark Dumay
2e3bca1a34 fix: add border color to search input 2025-08-22 11:17:39 +02:00
Mark Dumay
9a00e6c4c1 feat: add video color argument to ease in frame content 2025-08-22 11:16:05 +02:00
Mark Dumay
3dcbe0b62c feat: improve border radius consistency 2025-08-22 08:23:25 +02:00
markdumay
bdf9d84a72 fix: update Hugo module dependencies 2025-08-19 03:24:17 +00:00
dependabot[bot]
7386cf1fb9 build(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 17:35:32 +00:00
Mark Dumay
2625222554 Merge pull request #1538 from gethinode/develop
feat: add link button to toggle TOC items
2025-08-15 10:00:54 +02:00
Mark Dumay
74eeec9030 Merge branch 'main' into develop 2025-08-15 09:53:29 +02:00
Mark Dumay
a57e0da164 feat: add link button to toggle TOC items 2025-08-15 09:52:20 +02:00
github-actions[bot]
6ab01755f2 Merge pull request #1537 from gethinode/dependabot/npm_and_yarn/cpy-cli-6.0.0
build(deps-dev): bump cpy-cli from 5.0.0 to 6.0.0
2025-08-13 13:51:27 +00:00
dependabot[bot]
22cb71ca9b build(deps-dev): bump cpy-cli from 5.0.0 to 6.0.0
Bumps [cpy-cli](https://github.com/sindresorhus/cpy-cli) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/sindresorhus/cpy-cli/releases)
- [Commits](https://github.com/sindresorhus/cpy-cli/compare/v5.0.0...v6.0.0)

---
updated-dependencies:
- dependency-name: cpy-cli
  dependency-version: 6.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-13 13:45:14 +00:00
Mark Dumay
62897f685f Merge pull request #1535 from gethinode/codeql
ci: use advanced codeql config
2025-08-12 09:35:18 +02:00
Mark Dumay
4f8fdc4f03 ci: fix codeql config path 2025-08-12 09:28:05 +02:00
Mark Dumay
925a3ff33e ci: specify codeql paths to scan 2025-08-12 09:25:06 +02:00
Mark Dumay
cf16cb9824 ci: use advanced codeql config 2025-08-12 08:22:40 +02:00
Mark Dumay
5d9383858f Merge pull request #1534 from gethinode/develop
fix: adjust horizontal alignment of cards
2025-08-12 08:04:14 +02:00
Mark Dumay
3332b437dd Merge branch 'main' into develop 2025-08-12 07:56:55 +02:00
github-actions[bot]
c5510707b1 Merge pull request #1532 from gethinode/dependabot/github_actions/actions/checkout-5
build(deps): bump actions/checkout from 4 to 5
2025-08-12 04:35:12 +00:00
Mark Dumay
498f208382 Merge branch 'main' into dependabot/github_actions/actions/checkout-5 2025-08-12 06:28:55 +02:00
Mark Dumay
86962eb8a2 fix: adjust horizontal alignment of cards
fixes #1533
2025-08-12 06:28:33 +02:00
dependabot[bot]
f4319180e0 build(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 20:45:50 +00:00
github-actions[bot]
9607aef8ef Merge pull request #1531 from gethinode/dependabot/npm_and_yarn/eslint-9.33.0
build(deps-dev): bump eslint from 9.32.0 to 9.33.0
2025-08-11 18:21:09 +00:00
dependabot[bot]
2c2f150faa build(deps-dev): bump eslint from 9.32.0 to 9.33.0
Bumps [eslint](https://github.com/eslint/eslint) from 9.32.0 to 9.33.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/v9.32.0...v9.33.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 18:13:53 +00:00
github-actions[bot]
6087630643 Merge pull request #1529 from gethinode/dependabot/npm_and_yarn/stylelint-16.23.1
build(deps-dev): bump stylelint from 16.23.0 to 16.23.1
2025-08-08 14:07:49 +00:00
dependabot[bot]
26235a1e7e build(deps-dev): bump stylelint from 16.23.0 to 16.23.1
Bumps [stylelint](https://github.com/stylelint/stylelint) from 16.23.0 to 16.23.1.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/16.23.0...16.23.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-08 13:59:57 +00:00
Mark Dumay
408799c3e2 Merge pull request #1528 from gethinode/develop
feat: enable customization of content blocks rendering
2025-08-06 14:27:38 +02:00
Mark Dumay
7b4a46121c Merge branch 'main' into develop 2025-08-06 14:18:01 +02:00
Mark Dumay
7af4c37c88 feat: enable customization of content blocks rendering 2025-08-06 14:17:34 +02:00
Mark Dumay
9cc7174030 Merge pull request #1527 from gethinode/develop
Develop
2025-08-06 09:13:55 +02:00
Mark Dumay
f8de99173f feat: enable global site robots config 2025-08-06 08:58:47 +02:00
Mark Dumay
68f7b466fb fix: improve aria handling of modal messages 2025-08-06 08:58:27 +02:00
github-actions[bot]
3a9a57cc5d Merge pull request #1526 from gethinode/dependabot/npm_and_yarn/stylelint-16.23.0
build(deps-dev): bump stylelint from 16.22.0 to 16.23.0
2025-07-29 14:07:10 +00:00
dependabot[bot]
f3c264ead2 build(deps-dev): bump stylelint from 16.22.0 to 16.23.0
Bumps [stylelint](https://github.com/stylelint/stylelint) from 16.22.0 to 16.23.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/16.22.0...16.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-29 13:59:51 +00:00
github-actions[bot]
1dd2971893 Merge pull request #1525 from gethinode/dependabot/npm_and_yarn/eslint-9.32.0
build(deps-dev): bump eslint from 9.31.0 to 9.32.0
2025-07-28 18:04:51 +00:00
dependabot[bot]
7ac6b89ece build(deps-dev): bump eslint from 9.31.0 to 9.32.0
Bumps [eslint](https://github.com/eslint/eslint) from 9.31.0 to 9.32.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/v9.31.0...v9.32.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-28 17:59:30 +00:00
github-actions[bot]
458e8fb605 Merge pull request #1524 from gethinode/dependabot/npm_and_yarn/hugo-bin-0.145.2
build(deps): bump hugo-bin from 0.145.1 to 0.145.2
2025-07-28 17:54:34 +00:00
dependabot[bot]
b268c1bad0 build(deps): bump hugo-bin from 0.145.1 to 0.145.2
Bumps [hugo-bin](https://github.com/fenneclab/hugo-bin) from 0.145.1 to 0.145.2.
- [Release notes](https://github.com/fenneclab/hugo-bin/releases)
- [Commits](https://github.com/fenneclab/hugo-bin/compare/v0.145.1...v0.145.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-28 17:49:07 +00:00
Mark Dumay
d414c111f4 Merge pull request #1523 from gethinode/develop
Develop
2025-07-23 14:19:07 +02:00
Mark Dumay
62f7ca0c79 fix: add mermaid to scss purge config 2025-07-23 14:05:13 +02:00
Mark Dumay
6ebd03b4db feat: support interactive Mermaid diagrams 2025-07-23 07:39:57 +02:00
Mark Dumay
a3e5b7cbc4 feat: support JavaScript modules 2025-07-23 07:39:35 +02:00
Mark Dumay
7335014a55 docs: improve code layout 2025-07-22 07:28:45 +02:00
Mark Dumay
f43dc337d1 Merge branch 'main' into develop 2025-07-21 16:56:38 +02:00
Mark Dumay
50de255e59 docs: improve layout of scripts file 2025-07-21 10:06:59 +02:00
github-actions[bot]
3166ce9bb3 Merge pull request #1522 from gethinode/dependabot/npm_and_yarn/stylelint-16.22.0
build(deps-dev): bump stylelint from 16.21.1 to 16.22.0
2025-07-18 13:55:05 +00:00
dependabot[bot]
d8c331e35d build(deps-dev): bump stylelint from 16.21.1 to 16.22.0
Bumps [stylelint](https://github.com/stylelint/stylelint) from 16.21.1 to 16.22.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/16.21.1...16.22.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-18 13:48:25 +00:00
github-actions[bot]
cef686243a Merge pull request #1520 from gethinode/dependabot/npm_and_yarn/cssnano-preset-advanced-7.0.8
build(deps): bump cssnano-preset-advanced from 7.0.7 to 7.0.8
2025-07-15 13:43:27 +00:00
dependabot[bot]
c4bdbb242c build(deps): bump cssnano-preset-advanced from 7.0.7 to 7.0.8
---
updated-dependencies:
- dependency-name: cssnano-preset-advanced
  dependency-version: 7.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-15 13:37:22 +00:00
github-actions[bot]
cb70afd5f0 Merge pull request #1521 from gethinode/dependabot/npm_and_yarn/cssnano-7.1.0
build(deps): bump cssnano from 7.0.7 to 7.1.0
2025-07-15 13:36:10 +00:00
dependabot[bot]
fbf758cced build(deps): bump cssnano from 7.0.7 to 7.1.0
---
updated-dependencies:
- dependency-name: cssnano
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-15 13:29:32 +00:00
github-actions[bot]
abd69af2f2 Merge pull request #1517 from gethinode/dependabot/npm_and_yarn/hugo-bin-0.145.1
build(deps): bump hugo-bin from 0.145.0 to 0.145.1
2025-07-14 17:08:49 +00:00
dependabot[bot]
1190a96694 build(deps): bump hugo-bin from 0.145.0 to 0.145.1
Bumps [hugo-bin](https://github.com/fenneclab/hugo-bin) from 0.145.0 to 0.145.1.
- [Release notes](https://github.com/fenneclab/hugo-bin/releases)
- [Commits](https://github.com/fenneclab/hugo-bin/compare/v0.145.0...v0.145.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 17:03:26 +00:00
github-actions[bot]
d310648950 Merge pull request #1518 from gethinode/dependabot/npm_and_yarn/semantic-release-24.2.7
build(deps-dev): bump semantic-release from 24.2.6 to 24.2.7
2025-07-14 17:02:09 +00:00
dependabot[bot]
8c7fea7670 build(deps-dev): bump semantic-release from 24.2.6 to 24.2.7
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 24.2.6 to 24.2.7.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v24.2.6...v24.2.7)

---
updated-dependencies:
- dependency-name: semantic-release
  dependency-version: 24.2.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 16:56:39 +00:00
github-actions[bot]
9e5d786ca3 Merge pull request #1516 from gethinode/dependabot/npm_and_yarn/eslint-9.31.0
build(deps-dev): bump eslint from 9.30.1 to 9.31.0
2025-07-14 16:55:41 +00:00
dependabot[bot]
2bfb9d6991 build(deps-dev): bump eslint from 9.30.1 to 9.31.0
Bumps [eslint](https://github.com/eslint/eslint) from 9.30.1 to 9.31.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/v9.30.1...v9.31.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 16:50:27 +00:00
Mark Dumay
294f1ae91d fix: correct init of stack when articles use scroll style 2025-07-12 11:47:18 +02:00
66 changed files with 1219 additions and 995 deletions

8
.github/codeql/codeql-config.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
paths:
- 'assets/js'
paths-ignore:
- '**/vendor'
- '**/critical/languageSelector.js'
- '**/critical/color.js'
- '**/navbar.js'
- '**/sharing.js'

102
.github/workflows/codeql.yml vendored Normal file
View File

@@ -0,0 +1,102 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL Advanced"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '44 1 * * 3'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v5
# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config-file: ./.github/codeql/codeql-config.yml
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

View File

@@ -24,7 +24,7 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
@@ -53,7 +53,7 @@ jobs:
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Install Go - name: Install Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5

View File

@@ -14,7 +14,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4

View File

@@ -23,7 +23,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0

View File

@@ -43,9 +43,7 @@
document.documentElement.setAttribute('data-bs-theme', theme) document.documentElement.setAttribute('data-bs-theme', theme)
} }
document.querySelectorAll('.navbar-mode-selector').forEach(chk => { updateSelectors()
chk.checked = (document.documentElement.getAttribute('data-bs-theme') === 'light')
})
} }
// alternates the currently active theme // alternates the currently active theme
@@ -54,6 +52,12 @@
setTheme(target) setTheme(target)
} }
function updateSelectors() {
document.querySelectorAll('.navbar-mode-selector').forEach(chk => {
chk.checked = (document.documentElement.getAttribute('data-bs-theme') === 'light')
})
}
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => { window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
if (storedTheme !== 'light' || storedTheme !== 'dark') { if (storedTheme !== 'light' || storedTheme !== 'dark') {
setTheme(getPreferredTheme()) setTheme(getPreferredTheme())
@@ -69,7 +73,12 @@
}) })
}) })
// initialize theme directly when script is invoked window.addEventListener('load', () => {
// update the selectors when all elements are ready
updateSelectors()
})
// initialize theme as soon as possible to reduce screen flickering
setTheme(getTheme()) setTheme(getTheme())
})() })()

6
assets/js/modal.js Normal file
View File

@@ -0,0 +1,6 @@
document.addEventListener('hide.bs.modal', function (event) {
// Remove the focus from the active element
if (document.activeElement) {
document.activeElement.blur()
}
})

13
assets/js/toc.js Normal file
View File

@@ -0,0 +1,13 @@
const btnTOCShowMore = document.getElementById('btnTOCShowMore')
if (btnTOCShowMore !== null) {
btnTOCShowMore.addEventListener('click', (e) => {
btnTOCShowMore.style.display = 'none'
})
}
const btnTOCShowLess = document.getElementById('btnTOCShowLess')
if ((btnTOCShowLess !== null) && (btnTOCShowMore !== null)) {
btnTOCShowLess.addEventListener('click', (e) => {
btnTOCShowMore.style.display = 'initial'
})
}

View File

@@ -24,8 +24,10 @@
@import "components/carousel.scss"; @import "components/carousel.scss";
@import "components/clipboard.scss"; @import "components/clipboard.scss";
@import "components/command.scss"; @import "components/command.scss";
@import "components/docs.scss";
@import "components/feature.scss"; @import "components/feature.scss";
@import "components/footer.scss"; @import "components/footer.scss";
@import "components/kbd.scss";
@import "components/nav.scss"; @import "components/nav.scss";
@import "components/navbar.scss"; @import "components/navbar.scss";
@import "components/img.scss"; @import "components/img.scss";
@@ -35,6 +37,7 @@
@import "components/sidebar.scss"; @import "components/sidebar.scss";
@import "components/syntax-dart.scss"; // note: modified for dart-sass @import "components/syntax-dart.scss"; // note: modified for dart-sass
@import "components/table.scss"; @import "components/table.scss";
@import "components/toast.scss";
@import "components/timeline.scss"; @import "components/timeline.scss";
@import "components/toc.scss"; @import "components/toc.scss";
@import "components/video.scss"; @import "components/video.scss";

View File

@@ -22,8 +22,10 @@
@import "components/carousel.scss"; @import "components/carousel.scss";
@import "components/clipboard.scss"; @import "components/clipboard.scss";
@import "components/command.scss"; @import "components/command.scss";
@import "components/docs.scss";
@import "components/feature.scss"; @import "components/feature.scss";
@import "components/footer.scss"; @import "components/footer.scss";
@import "components/kbd.scss";
@import "components/nav.scss"; @import "components/nav.scss";
@import "components/navbar.scss"; @import "components/navbar.scss";
@import "components/img.scss"; @import "components/img.scss";
@@ -33,6 +35,7 @@
@import "components/sidebar.scss"; @import "components/sidebar.scss";
@import "components/syntax.scss"; @import "components/syntax.scss";
@import "components/table.scss"; @import "components/table.scss";
@import "components/toast.scss";
@import "components/timeline.scss"; @import "components/timeline.scss";
@import "components/toc.scss"; @import "components/toc.scss";
@import "components/video.scss"; @import "components/video.scss";

View File

@@ -14,6 +14,10 @@ a:active {
text-decoration: none; text-decoration: none;
} }
div.rounded, img.rounded {
--bs-border-radius: #{$theme-border-radius};
}
// //
// Ensure main page is rendered to full viewport height // Ensure main page is rendered to full viewport height
// //

View File

@@ -16,12 +16,12 @@ $font-weight-normal: 300 !default;
$font-weight-bold: 600 !default; $font-weight-bold: 600 !default;
$font-weight-bolder: bolder !default; $font-weight-bolder: bolder !default;
$theme-border-radius: 1rem;
strong { strong {
font-weight: 600 if($enable-important-utilities, !important, null); font-weight: 600 if($enable-important-utilities, !important, null);
} }
$theme-border-radius: 0.375rem;
$navbar-height: h.$navbar-height; $navbar-height: h.$navbar-height;
$navbar-offset: h.$navbar-offset; $navbar-offset: h.$navbar-offset;
$navbar-offset-xs: h.$navbar-offset-xs; $navbar-offset-xs: h.$navbar-offset-xs;

View File

@@ -17,13 +17,13 @@ $font-weight-normal: 300 !default;
$font-weight-bold: 600 !default; $font-weight-bold: 600 !default;
$font-weight-bolder: bolder !default; $font-weight-bolder: bolder !default;
$theme-border-radius: 1rem;
strong { strong {
font-weight: 600 if($enable-important-utilities, !important, null); font-weight: 600 if($enable-important-utilities, !important, null);
} }
// scss-docs-end font // scss-docs-end font
$theme-border-radius: 0.375rem;
$white: #fff !default; $white: #fff !default;
$black: #000 !default; $black: #000 !default;
$body-bg: #fff !default; $body-bg: #fff !default;

View File

@@ -52,3 +52,7 @@ a.btn {
.btn-xs { .btn-xs {
@include button-size($btn-padding-y-xs, $btn-padding-x-xs, $btn-font-size-xs, $btn-border-radius-xs); @include button-size($btn-padding-y-xs, $btn-padding-x-xs, $btn-font-size-xs, $btn-border-radius-xs);
} }
.btn {
--bs-border-radius: #{$theme-border-radius};
}

View File

@@ -6,6 +6,9 @@
} }
.card { .card {
--bs-card-border-radius: #{$theme-border-radius};
--bs-card-inner-border-radius: #{$theme-border-radius};
--bs-border-radius: #{$theme-border-radius};
--bs-card-bg: transparent; --bs-card-bg: transparent;
} }
@@ -28,6 +31,13 @@
cursor: pointer; cursor: pointer;
} }
.card-img-top {
--bs-border-radius: #{$theme-border-radius};
border-top-left-radius: var(--bs-border-radius) !important;
border-top-right-radius: var(--bs-border-radius) !important;
}
.card-img-wrap img { .card-img-wrap img {
transition: transform 0.25s ease; transition: transform 0.25s ease;
width: 100%; width: 100%;

View File

@@ -1,3 +1,7 @@
.carousel-inner {
border-radius: #{$theme-border-radius};
}
.gradient { .gradient {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@@ -0,0 +1,22 @@
.docs-controls .nav-link,
.file-controls .nav-link {
border-top-left-radius: #{$theme-border-radius};
border-top-right-radius: #{$theme-border-radius};
margin-left: #{$theme-border-radius};
&:hover,
&:focus {
border-bottom: 0;
}
}
.docs-panel,
.file-panel {
border: 1px solid var(--#{$prefix}border-color);
overflow: hidden;
}
.docs-panel, .docs-panel .collapse,
.file-panel, .file-panel .collapse {
border-radius: #{$theme-border-radius};
}

View File

@@ -27,3 +27,7 @@
width: 100vw; width: 100vw;
object-fit: cover; object-fit: cover;
} }
.figure-caption {
margin-left: #{$theme-border-radius};
}

View File

@@ -0,0 +1,3 @@
kbd {
border-radius: #{$theme-border-radius};
}

View File

@@ -84,6 +84,14 @@
border-color: var(--#{$prefix}border-color); border-color: var(--#{$prefix}border-color);
} }
.nav-callout, .pagination {
--bs-border-radius: #{$theme-border-radius};
}
.nav-callout .tab-content {
border-radius: #{$theme-border-radius};
}
@if $enable-dark-mode { @if $enable-dark-mode {
@include color-mode(dark) { @include color-mode(dark) {
.nav-callout, .tab-content { .nav-callout, .tab-content {

View File

@@ -319,3 +319,7 @@
position: absolute; position: absolute;
z-index: $zindex-fixed; z-index: $zindex-fixed;
} }
.form-control.is-search {
border: 1px solid var(--bs-border-color) !important;
}

View File

@@ -11,6 +11,12 @@
} }
.sidebar-item { .sidebar-item {
--bs-border-radius: #{$theme-border-radius};
--bs-border-radius-sm: #{$theme-border-radius};
--bs-border-radius-lg: #{$theme-border-radius};
--bs-border-radius-xl: #{$theme-border-radius};
--bs-border-radius-xxl: #{$theme-border-radius};
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
margin-left: 0 !important; margin-left: 0 !important;
display: inline-block; display: inline-block;
@@ -28,6 +34,8 @@
} }
.sidebar-item-group { .sidebar-item-group {
border-radius: #{$theme-border-radius};
&:hover, &:hover,
&:focus { &:focus {
color: $primary; color: $primary;

View File

@@ -16,6 +16,10 @@
flex: 1; flex: 1;
} }
.codeblock.syntax-highlight, .command.syntax-highlight {
border-radius: #{$theme-border-radius};
}
.syntax-highlight { .syntax-highlight {
background-color: var(--bs-light) if($enable-important-utilities, !important, null); background-color: var(--bs-light) if($enable-important-utilities, !important, null);
overflow-x: auto; overflow-x: auto;

View File

@@ -16,6 +16,10 @@
flex: 1; flex: 1;
} }
.codeblock.syntax-highlight, .command.syntax-highlight {
border-radius: #{$theme-border-radius};
}
.syntax-highlight { .syntax-highlight {
background-color: var(--bs-light) if($enable-important-utilities, !important, null); background-color: var(--bs-light) if($enable-important-utilities, !important, null);
overflow-x: auto; overflow-x: auto;

View File

@@ -26,6 +26,10 @@ $semi-circle-border: 0.2rem;
// scss-docs-end timeline // scss-docs-end timeline
.timeline-container {
border-radius: #{$theme-border-radius};
}
.timeline, .timeline-sm { .timeline, .timeline-sm {
position: relative; position: relative;
} }

View File

@@ -0,0 +1,4 @@
.toast {
border-radius: #{$theme-border-radius};
overflow: hidden;
}

View File

@@ -74,6 +74,14 @@
} }
} }
.btn-link.toc-item {
font-size: inherit;
}
#btnTOCShowMore {
padding-top: 0.875rem;
}
a.toc-item { a.toc-item {
display: block; display: block;
} }

View File

@@ -3,6 +3,7 @@
padding-bottom: 56.25%; padding-bottom: 56.25%;
height: 0; height: 0;
overflow: hidden; overflow: hidden;
border-radius: #{$theme-border-radius};
} }
.video-embedded > iframe { .video-embedded > iframe {
@@ -11,7 +12,7 @@
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
border:0; border: 0;
} }
// Adapted from https://github.com/gohugoio/hugo/tpl/tplimpl/embedded/templates/shortcodes/vimeo_simple.html // Adapted from https://github.com/gohugoio/hugo/tpl/tplimpl/embedded/templates/shortcodes/vimeo_simple.html

View File

@@ -10,7 +10,7 @@
/* inter-200 - latin */ /* inter-200 - latin */
@font-face { @font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ font-display: block; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Inter'; font-family: 'Inter';
font-style: normal; font-style: normal;
font-weight: 200; font-weight: 200;
@@ -23,7 +23,7 @@
} }
/* inter-300 - latin */ /* inter-300 - latin */
@font-face { @font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ font-display: block; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Inter'; font-family: 'Inter';
font-style: normal; font-style: normal;
font-weight: 300; font-weight: 300;
@@ -36,7 +36,7 @@
} }
/* inter-regular - latin */ /* inter-regular - latin */
@font-face { @font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ font-display: block; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Inter'; font-family: 'Inter';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
@@ -49,7 +49,7 @@
} }
/* inter-600 - latin */ /* inter-600 - latin */
@font-face { @font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ font-display: block; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Inter'; font-family: 'Inter';
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;

View File

@@ -88,7 +88,7 @@
)}} )}}
{{ if $args.scroll }} {{ if $args.scroll }}
{{ $partial := "assets/stack.html" }} {{ $partial = "assets/stack.html" }}
{{ $params = merge $params (dict {{ $params = merge $params (dict
"header-style" "none" "header-style" "none"
"body-style" "title" "body-style" "title"

View File

@@ -2,6 +2,10 @@
background-color: var(--#{$prefix}primary-bg-subtle); background-color: var(--#{$prefix}primary-bg-subtle);
} }
.cta, .background-img-fluid {
border-radius: #{$theme-border-radius} if($enable-important-utilities, !important, null);
}
.cta .contact-img { .cta .contact-img {
background-color: var(--#{$prefix}body-bg); background-color: var(--#{$prefix}body-bg);
border-radius: var(--bs-border-radius); border-radius: var(--bs-border-radius);

View File

@@ -1,3 +1,13 @@
.panels .dropdown-toggle { .panels .dropdown-toggle {
text-decoration: none !important; text-decoration: none !important;
} }
.panels .nav-tabs {
border-top-left-radius: #{$theme-border-radius};
border-top-right-radius: #{$theme-border-radius};
margin-left: #{$theme-border-radius};
}
.panels .tab-content {
border-radius: #{$theme-border-radius};
}

View File

@@ -31,6 +31,7 @@ blueprint:
media-id: media-id:
autoplay: autoplay:
query-args: query-args:
color:
cols: cols:
messages: messages:
- title: - title:

View File

@@ -28,6 +28,7 @@
{{ $queryArgs := .queryArgs }} {{ $queryArgs := .queryArgs }}
{{ $border := .border }} {{ $border := .border }}
{{ $padding := .padding }} {{ $padding := .padding }}
{{ $color := .color }}
{{ if site.Params.env_bookshop_live }} {{ if site.Params.env_bookshop_live }}
{{/* Define dummy content as we cannot retrieve video data in live mode */}} {{/* Define dummy content as we cannot retrieve video data in live mode */}}
@@ -36,7 +37,7 @@
"ratio" "21x9" "ratio" "21x9"
"wrapper" (printf "text-center mb-%d" $padding.y)) -}} "wrapper" (printf "text-center mb-%d" $padding.y)) -}}
{{ else }} {{ else }}
<div class="video-container{{ if $border }} video-container-border{{ end}}"> <div class="video-container{{ if $border }} video-container-border{{ end}} {{ with $color }}bg-{{ . }}{{ end }}">
{{ partial "assets/video.html" (dict {{ partial "assets/video.html" (dict
"page" page "page" page
"provider" $provider "provider" $provider
@@ -117,6 +118,7 @@
"query-args" .queryArgs "query-args" .queryArgs
"border" $.border "border" $.border
"padding" $padding "padding" $padding
"color" .color
) -}} ) -}}
{{ end }} {{ end }}
</div> </div>
@@ -142,6 +144,7 @@
"query-args" .queryArgs "query-args" .queryArgs
"border" $.border "border" $.border
"padding" $padding "padding" $padding
"color" .color
) -}} ) -}}
{{ end }} {{ end }}
</div> </div>

View File

@@ -2,6 +2,7 @@
--bs-video-border-color: var(--bs-primary); --bs-video-border-color: var(--bs-primary);
--bs-video-border-width: 1rem; --bs-video-border-width: 1rem;
border-radius: $theme-border-radius;
position: relative; position: relative;
} }

View File

@@ -188,7 +188,7 @@ home = ["HTML", "RSS", "REDIR", "netlify", "server"]
[[module.imports]] [[module.imports]]
path = "github.com/gethinode/mod-lottie" path = "github.com/gethinode/mod-lottie"
[[module.imports]] [[module.imports]]
path = "github.com/gethinode/mod-mermaid/v2" path = "github.com/gethinode/mod-mermaid/v3"
[[module.imports]] [[module.imports]]
path = "github.com/gethinode/mod-simple-datatables/v2" path = "github.com/gethinode/mod-simple-datatables/v2"
[[module.imports]] [[module.imports]]

View File

@@ -97,6 +97,9 @@
toc = true toc = true
sidebar = true sidebar = true
size = "md" size = "md"
startLevel = 2
endLevel = 3
maxNumHeadings = 9
[navigation.padding] [navigation.padding]
x = 4 x = 4
y = 4 y = 4

View File

@@ -30,6 +30,7 @@ const purgecss = purgeCSSPlugin({
'./_vendor/github.com/gethinode/mod-flexsearch/v2/assets/scss/modules/flexsearch/flexsearch.scss', './_vendor/github.com/gethinode/mod-flexsearch/v2/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',
'./_vendor/github.com/gethinode/mod-mermaid/v3/assets/scss/mermaid.scss',
'./_vendor/github.com/gethinode/mod-simple-datatables/v2/dist/simple-datatables.scss', './_vendor/github.com/gethinode/mod-simple-datatables/v2/dist/simple-datatables.scss',
'./_vendor/github.com/twbs/bootstrap/scss/_carousel.scss', './_vendor/github.com/twbs/bootstrap/scss/_carousel.scss',
'./_vendor/github.com/twbs/bootstrap/scss/_dropdown.scss', './_vendor/github.com/twbs/bootstrap/scss/_dropdown.scss',

View File

@@ -1,6 +1,6 @@
comment: >- comment: >-
Includes a reference to a local or external JavaScript file. Hinode uses the Includes a reference to a local or external JavaScript file. Hinode uses the
template defined in `layouts/partials/templates/script.html` to generate the template defined in `layouts/_partials/templates/script.html` to generate the
link to a (bundled) JavaScript file. It includes context such as the state, link to a (bundled) JavaScript file. It includes context such as the state,
category, and integrity. For example, you can adapt this template to implement category, and integrity. For example, you can adapt this template to implement
cookie consent management. cookie consent management.
@@ -44,3 +44,10 @@ arguments:
optional: true optional: true
comment: >- comment: >-
Cryptographic hash of the script to enable Subresource Integrity (SRI). Cryptographic hash of the script to enable Subresource Integrity (SRI).
script-type:
type: string
optional: true
release: v1.7.0
comment: >-
Type of the attribute of the script. Set the value to `module` to import
the script as a JavaScript module.

View File

@@ -51,6 +51,9 @@
toc = true toc = true
sidebar = true sidebar = true
size = "md" size = "md"
startLevel = 2
endLevel = 3
maxNumHeadings = 9
[navigation.padding] [navigation.padding]
x = 4 x = 4
y = 4 y = 4
@@ -129,7 +132,7 @@
# 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" themeFontPreload = "/fonts/inter-v12-latin-regular.woff2"
purge = false purge = true
# toml-docs-end theme-colors # toml-docs-end theme-colors
[schema] [schema]
@@ -169,3 +172,6 @@
[modules.cookieyes] [modules.cookieyes]
url = "https://cdn-cookieyes.com/client_data/a54b5553f349dd13bd225f8e/script.js" url = "https://cdn-cookieyes.com/client_data/a54b5553f349dd13bd225f8e/script.js"
[modules.mermaid]
elk = true

View File

@@ -30,6 +30,7 @@ const purgecss = purgeCSSPlugin({
'./_vendor/github.com/gethinode/mod-flexsearch/v2/assets/scss/modules/flexsearch/flexsearch.scss', './_vendor/github.com/gethinode/mod-flexsearch/v2/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',
'./_vendor/github.com/gethinode/mod-mermaid/v3/assets/scss/mermaid.scss',
'./_vendor/github.com/gethinode/mod-simple-datatables/v2/dist/simple-datatables.scss', './_vendor/github.com/gethinode/mod-simple-datatables/v2/dist/simple-datatables.scss',
'./_vendor/github.com/twbs/bootstrap/scss/_carousel.scss', './_vendor/github.com/twbs/bootstrap/scss/_carousel.scss',
'./_vendor/github.com/twbs/bootstrap/scss/_dropdown.scss', './_vendor/github.com/twbs/bootstrap/scss/_dropdown.scss',

View File

@@ -29,6 +29,7 @@ The `video` content block renders a horizontal line to separate sections. The se
provider: vimeo provider: vimeo
media-id: "55073825" media-id: "55073825"
autoplay: true autoplay: true
color: black
messages: messages:
- title: First Message - title: First Message
icon: fas 1 icon: fas 1

View File

@@ -94,6 +94,22 @@ As an example, the following shortcode displays an interactive map of the city o
## Mermaid Diagrams ## Mermaid Diagrams
### Shortcode (with controls and frontmatter)
<!-- markdownlint-disable MD003 MD022 -->
{{< mermaid controls=true >}}
---
config:
layout: elk.stress
look: handDrawn
theme: forest
---
flowchart TD
A --> B
A --> C
{{< /mermaid >}}
<!-- markdownlint-enable MD003 MD022 -->
### Flowchart ### Flowchart
```mermaid ```mermaid

View File

@@ -98,22 +98,20 @@
"ball", "ball",
"bg-bg-body-tertiary", "bg-bg-body-tertiary",
"bg-bg-primary-subtle", "bg-bg-primary-subtle",
"bg-black",
"bg-body", "bg-body",
"bg-body-tertiary", "bg-body-tertiary",
"bg-danger", "bg-danger",
"bg-opacity-10", "bg-opacity-10",
"bg-primary", "bg-primary",
"bg-primary-subtle", "bg-primary-subtle",
"bg-secondary-subtle",
"bi", "bi",
"bi-activity", "bi-activity",
"border", "border",
"border-0", "border-0",
"border-1", "border-1",
"border-bottom", "border-bottom",
"border-end",
"border-none", "border-none",
"border-start",
"border-top", "border-top",
"bottom-0", "bottom-0",
"bottom-bar", "bottom-bar",
@@ -192,10 +190,15 @@
"col-sm-6", "col-sm-6",
"collapse", "collapse",
"collapsed", "collapsed",
"command",
"contact-img", "contact-img",
"container", "container",
"container-fluid", "container-fluid",
"container-xxl", "container-xxl",
"control-btn",
"control-btn-expand",
"control-btn-zoom-in",
"control-btn-zoom-out",
"cta", "cta",
"custom", "custom",
"d-block", "d-block",
@@ -213,10 +216,16 @@
"d-sm-block", "d-sm-block",
"d-sm-none", "d-sm-none",
"data-table", "data-table",
"diagram-container",
"diagram-controls",
"diagram-wrapper",
"disabled", "disabled",
"display-1", "display-1",
"display-4", "display-4",
"display-6", "display-6",
"docs",
"docs-controls",
"docs-panel",
"dropdown", "dropdown",
"dropdown-divider-bg", "dropdown-divider-bg",
"dropdown-item", "dropdown-item",
@@ -243,7 +252,6 @@
"fa-arrow-left", "fa-arrow-left",
"fa-arrow-right", "fa-arrow-right",
"fa-bootstrap", "fa-bootstrap",
"fa-check",
"fa-chevron-right", "fa-chevron-right",
"fa-circle", "fa-circle",
"fa-circle-check", "fa-circle-check",
@@ -253,6 +261,7 @@
"fa-divide", "fa-divide",
"fa-docker", "fa-docker",
"fa-ellipsis", "fa-ellipsis",
"fa-expand",
"fa-face-frown", "fa-face-frown",
"fa-facebook", "fa-facebook",
"fa-fluid", "fa-fluid",
@@ -267,10 +276,11 @@
"fa-info", "fa-info",
"fa-inverse", "fa-inverse",
"fa-lg", "fa-lg",
"fa-li",
"fa-link", "fa-link",
"fa-linkedin", "fa-linkedin",
"fa-magnifying-glass", "fa-magnifying-glass",
"fa-magnifying-glass-minus",
"fa-magnifying-glass-plus",
"fa-medium", "fa-medium",
"fa-moon", "fa-moon",
"fa-rocket", "fa-rocket",
@@ -283,17 +293,20 @@
"fa-stack-2x", "fa-stack-2x",
"fa-sun", "fa-sun",
"fa-timeline", "fa-timeline",
"fa-ul",
"fa-up-right-from-square", "fa-up-right-from-square",
"fa-whatsapp", "fa-whatsapp",
"fa-wrapper", "fa-wrapper",
"fa-x-twitter", "fa-x-twitter",
"fa-xl",
"fa-xs", "fa-xs",
"fab", "fab",
"fade", "fade",
"faq", "faq",
"fas", "fas",
"figure-caption", "figure-caption",
"file",
"file-controls",
"file-panel",
"fixed-top", "fixed-top",
"flex-column", "flex-column",
"flex-fill", "flex-fill",
@@ -344,7 +357,6 @@
"justify-content-between", "justify-content-between",
"justify-content-center", "justify-content-center",
"justify-content-end", "justify-content-end",
"justify-content-md-end",
"justify-content-md-start", "justify-content-md-start",
"justify-content-start", "justify-content-start",
"katex", "katex",
@@ -467,7 +479,6 @@
"px-md-4", "px-md-4",
"px-xxl-0", "px-xxl-0",
"py-%!d(string=0)", "py-%!d(string=0)",
"py-0",
"py-1", "py-1",
"py-2", "py-2",
"py-3", "py-3",
@@ -533,7 +544,6 @@
"text-decoration-none", "text-decoration-none",
"text-end", "text-end",
"text-info", "text-info",
"text-md-start",
"text-muted", "text-muted",
"text-nowrap", "text-nowrap",
"text-primary", "text-primary",
@@ -550,6 +560,7 @@
"timeline-bg-primary-subtle", "timeline-bg-primary-subtle",
"timeline-connector-end", "timeline-connector-end",
"timeline-connector-start", "timeline-connector-start",
"timeline-container",
"timeline-description-text-end", "timeline-description-text-end",
"timeline-description-text-start", "timeline-description-text-start",
"timeline-dot", "timeline-dot",
@@ -590,7 +601,6 @@
], ],
"ids": [ "ids": [
"abbr", "abbr",
"accelerate-your-data-products",
"accordion", "accordion",
"accordion-0", "accordion-0",
"accordion-0-heading-0", "accordion-0-heading-0",
@@ -600,10 +610,8 @@
"accordion-0-item-1", "accordion-0-item-1",
"accordion-0-item-2", "accordion-0-item-2",
"accordéon", "accordéon",
"ai",
"alert", "alert",
"alerte", "alerte",
"analytics",
"animatie", "animatie",
"animation", "animation",
"args", "args",
@@ -618,6 +626,8 @@
"body-file-collapse-1", "body-file-collapse-1",
"bouton", "bouton",
"breadcrumb", "breadcrumb",
"btnTOCShowLess",
"btnTOCShowMore",
"button", "button",
"button-group", "button-group",
"c4-diagram", "c4-diagram",
@@ -640,17 +650,15 @@
"content-blocks", "content-blocks",
"cookies-etc", "cookies-etc",
"custom-activity", "custom-activity",
"data-quality",
"data-tables", "data-tables",
"docs", "docs",
"documentation", "documentation",
"dropdown-nav-0", "dropdown-nav-0",
"dropdown-panel-071ec18d100b1b143a52290acbccb5d2", "dropdown-panel-559429f8ed9abd968d8178a39c12161e",
"dropdown-panel-3", "dropdown-panel-83b60f1acfc59ebca2632e49adc142ea",
"dropdown-panel-353faae960d8e5f264e975d330a6b22f", "dropdown-panel-905f7532046e86d10df934d0bb7e6973",
"dropdown-panel-6f7573c76bb16d93358060c54c56bb25", "dropdown-panel-96d18c1dcc343600bc916fe2c37fa4aa",
"dropdown-panel-78e144cc4646b9bdebe8f1d59a62159d", "dropdown-panel-f6ad6d3ba9fb32a749be0499120c5f22",
"dropdown-panel-fbf9d10f31358572a82e263a6abb2d8c",
"elements-type", "elements-type",
"entity-relationship-diagram", "entity-relationship-diagram",
"example", "example",
@@ -668,11 +676,11 @@
"fab-medium", "fab-medium",
"fab-whatsapp", "fab-whatsapp",
"fab-x-twitter", "fab-x-twitter",
"faq-5113bdcf965ec7494b27d4fb87b2d30c", "faq-106714aa77d6de0ac39f269ae5995985",
"faq-5113bdcf965ec7494b27d4fb87b2d30c-heading-faq-5113bdcf965ec7494b27d4fb87b2d30c", "faq-106714aa77d6de0ac39f269ae5995985-heading-faq-106714aa77d6de0ac39f269ae5995985",
"faq-5113bdcf965ec7494b27d4fb87b2d30c-item-0", "faq-106714aa77d6de0ac39f269ae5995985-item-0",
"faq-5113bdcf965ec7494b27d4fb87b2d30c-item-1", "faq-106714aa77d6de0ac39f269ae5995985-item-1",
"faq-5113bdcf965ec7494b27d4fb87b2d30c-item-2", "faq-106714aa77d6de0ac39f269ae5995985-item-2",
"fas-1", "fas-1",
"fas-2", "fas-2",
"fas-3", "fas-3",
@@ -683,7 +691,6 @@
"fas-angles-right", "fas-angles-right",
"fas-arrow-left", "fas-arrow-left",
"fas-arrow-right", "fas-arrow-right",
"fas-check",
"fas-chevron-right", "fas-chevron-right",
"fas-circle", "fas-circle",
"fas-circle-check", "fas-circle-check",
@@ -692,6 +699,7 @@
"fas-code", "fas-code",
"fas-divide", "fas-divide",
"fas-ellipsis", "fas-ellipsis",
"fas-expand",
"fas-globe", "fas-globe",
"fas-grip", "fas-grip",
"fas-h", "fas-h",
@@ -700,6 +708,8 @@
"fas-info", "fas-info",
"fas-link", "fas-link",
"fas-magnifying-glass", "fas-magnifying-glass",
"fas-magnifying-glass-minus",
"fas-magnifying-glass-plus",
"fas-moon", "fas-moon",
"fas-rocket", "fas-rocket",
"fas-share-nodes", "fas-share-nodes",
@@ -743,7 +753,6 @@
"items-type", "items-type",
"kaart", "kaart",
"kbd", "kbd",
"kickstart-your-data-stack-without-coding",
"language-selector", "language-selector",
"leaflet-map-0", "leaflet-map-0",
"lien", "lien",
@@ -758,7 +767,6 @@
"messages-type", "messages-type",
"mindmap", "mindmap",
"more-type", "more-type",
"move-your-data-into-action",
"nav", "nav",
"nav-0-0", "nav-0-0",
"nav-0-1", "nav-0-1",
@@ -767,12 +775,11 @@
"nav-0-btn-1", "nav-0-btn-1",
"nav-0-btn-2", "nav-0-btn-2",
"nav-nav-0", "nav-nav-0",
"nav-panel-071ec18d100b1b143a52290acbccb5d2", "nav-panel-559429f8ed9abd968d8178a39c12161e",
"nav-panel-3", "nav-panel-83b60f1acfc59ebca2632e49adc142ea",
"nav-panel-353faae960d8e5f264e975d330a6b22f", "nav-panel-905f7532046e86d10df934d0bb7e6973",
"nav-panel-6f7573c76bb16d93358060c54c56bb25", "nav-panel-96d18c1dcc343600bc916fe2c37fa4aa",
"nav-panel-78e144cc4646b9bdebe8f1d59a62159d", "nav-panel-f6ad6d3ba9fb32a749be0499120c5f22",
"nav-panel-fbf9d10f31358572a82e263a6abb2d8c",
"navbar", "navbar",
"navbar-0-collapse", "navbar-0-collapse",
"navbar-mode", "navbar-mode",
@@ -781,42 +788,36 @@
"navigation", "navigation",
"notification", "notification",
"overview", "overview",
"panel-071ec18d100b1b143a52290acbccb5d2-0", "panel-559429f8ed9abd968d8178a39c12161e-0",
"panel-071ec18d100b1b143a52290acbccb5d2-1", "panel-559429f8ed9abd968d8178a39c12161e-1",
"panel-071ec18d100b1b143a52290acbccb5d2-2", "panel-559429f8ed9abd968d8178a39c12161e-2",
"panel-071ec18d100b1b143a52290acbccb5d2-btn-0", "panel-559429f8ed9abd968d8178a39c12161e-btn-0",
"panel-071ec18d100b1b143a52290acbccb5d2-btn-1", "panel-559429f8ed9abd968d8178a39c12161e-btn-1",
"panel-071ec18d100b1b143a52290acbccb5d2-btn-2", "panel-559429f8ed9abd968d8178a39c12161e-btn-2",
"panel-3-0", "panel-83b60f1acfc59ebca2632e49adc142ea-0",
"panel-3-1", "panel-83b60f1acfc59ebca2632e49adc142ea-1",
"panel-3-2", "panel-83b60f1acfc59ebca2632e49adc142ea-2",
"panel-3-btn-0", "panel-83b60f1acfc59ebca2632e49adc142ea-btn-0",
"panel-3-btn-1", "panel-83b60f1acfc59ebca2632e49adc142ea-btn-1",
"panel-3-btn-2", "panel-83b60f1acfc59ebca2632e49adc142ea-btn-2",
"panel-353faae960d8e5f264e975d330a6b22f-0", "panel-905f7532046e86d10df934d0bb7e6973-0",
"panel-353faae960d8e5f264e975d330a6b22f-1", "panel-905f7532046e86d10df934d0bb7e6973-1",
"panel-353faae960d8e5f264e975d330a6b22f-2", "panel-905f7532046e86d10df934d0bb7e6973-2",
"panel-353faae960d8e5f264e975d330a6b22f-btn-0", "panel-905f7532046e86d10df934d0bb7e6973-btn-0",
"panel-353faae960d8e5f264e975d330a6b22f-btn-1", "panel-905f7532046e86d10df934d0bb7e6973-btn-1",
"panel-353faae960d8e5f264e975d330a6b22f-btn-2", "panel-905f7532046e86d10df934d0bb7e6973-btn-2",
"panel-6f7573c76bb16d93358060c54c56bb25-0", "panel-96d18c1dcc343600bc916fe2c37fa4aa-0",
"panel-6f7573c76bb16d93358060c54c56bb25-1", "panel-96d18c1dcc343600bc916fe2c37fa4aa-1",
"panel-6f7573c76bb16d93358060c54c56bb25-2", "panel-96d18c1dcc343600bc916fe2c37fa4aa-2",
"panel-6f7573c76bb16d93358060c54c56bb25-btn-0", "panel-96d18c1dcc343600bc916fe2c37fa4aa-btn-0",
"panel-6f7573c76bb16d93358060c54c56bb25-btn-1", "panel-96d18c1dcc343600bc916fe2c37fa4aa-btn-1",
"panel-6f7573c76bb16d93358060c54c56bb25-btn-2", "panel-96d18c1dcc343600bc916fe2c37fa4aa-btn-2",
"panel-78e144cc4646b9bdebe8f1d59a62159d-0", "panel-f6ad6d3ba9fb32a749be0499120c5f22-0",
"panel-78e144cc4646b9bdebe8f1d59a62159d-1", "panel-f6ad6d3ba9fb32a749be0499120c5f22-1",
"panel-78e144cc4646b9bdebe8f1d59a62159d-2", "panel-f6ad6d3ba9fb32a749be0499120c5f22-2",
"panel-78e144cc4646b9bdebe8f1d59a62159d-btn-0", "panel-f6ad6d3ba9fb32a749be0499120c5f22-btn-0",
"panel-78e144cc4646b9bdebe8f1d59a62159d-btn-1", "panel-f6ad6d3ba9fb32a749be0499120c5f22-btn-1",
"panel-78e144cc4646b9bdebe8f1d59a62159d-btn-2", "panel-f6ad6d3ba9fb32a749be0499120c5f22-btn-2",
"panel-fbf9d10f31358572a82e263a6abb2d8c-0",
"panel-fbf9d10f31358572a82e263a6abb2d8c-1",
"panel-fbf9d10f31358572a82e263a6abb2d8c-2",
"panel-fbf9d10f31358572a82e263a6abb2d8c-btn-0",
"panel-fbf9d10f31358572a82e263a6abb2d8c-btn-1",
"panel-fbf9d10f31358572a82e263a6abb2d8c-btn-2",
"persona", "persona",
"pie-chart", "pie-chart",
"pills", "pills",
@@ -832,18 +833,16 @@
"second-panel", "second-panel",
"security", "security",
"sequence-diagram", "sequence-diagram",
"shortcode-with-controls-and-frontmatter",
"spinner", "spinner",
"stacked-cards-with-an-icon", "stacked-cards-with-an-icon",
"stacked-cards-with-an-image", "stacked-cards-with-an-image",
"stacked-video-message",
"start-using-your-data-immediately",
"state-diagram", "state-diagram",
"sub", "sub",
"sup", "sup",
"sécurité", "sécurité",
"table", "table",
"tabs", "tabs",
"tap-into-the-latest-thinking-from-infusal-and-stay-in-the-lead",
"third-panel", "third-panel",
"third-party-links--use-of-your-information", "third-party-links--use-of-your-information",
"timeline", "timeline",
@@ -855,8 +854,8 @@
"toast-example-2", "toast-example-2",
"toast-message-email-4", "toast-message-email-4",
"toc-collapse", "toc-collapse",
"toc-collapse-items",
"tooltip", "tooltip",
"turn-boring-into-brilliant",
"types-de-cookies-que-nous-utilisons", "types-de-cookies-que-nous-utilisons",
"types-of-cookies-we-use", "types-of-cookies-we-use",
"underline", "underline",
@@ -867,7 +866,6 @@
"vos-droits", "vos-droits",
"welcome-to-hinode", "welcome-to-hinode",
"what-are-cookies", "what-are-cookies",
"works-seamlessly-with-your-current-tech-stack",
"xy-chart", "xy-chart",
"your-rights" "your-rights"
] ]

View File

@@ -0,0 +1,31 @@
{{/*
Copyright © 2022 - 2025 The Hinode Team / Mark Dumay. All rights reserved.
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
Visit gethinode.com/license for more details.
*/}}
<!-- TODO: this partial is not properly mounted for the exampleSite, possibly a bug with Hugo -->
{{/* Initialize arguments */}}
{{- $args := partial "utilities/InitArgs.html" (dict "structure" "script" "args" .) -}}
{{- if or $args.err $args.warnmsg -}}
{{- partial (cond $args.err "utilities/LogErr.html" "utilities/LogWarn.html") (dict
"partial" "templates/script.html"
"warnid" "warn-invalid-arguments"
"msg" "Invalid arguments"
"details" ($args.errmsg | append $args.warnmsg)
"file" page.File
) -}}
{{- end -}}
{{/* Initialize local arguments */}}
{{- $category := cond (ne $args.category "other") $args.category "" -}}
{{/* Main code */}}
{{- if not $args.err -}}
<script src="{{ $args.link }}"
{{- with $args.scriptType }}{{ printf ` type="%s"` . | safeHTMLAttr }}{{ end -}}
{{- with $category }} data-category="{{ . }}"{{ end -}}
{{- with $args.integrity }} integrity="{{ . }}" crossorigin="anonymous"{{ end }}
{{- with $args.state }} {{ . | safeHTMLAttr }}{{ end -}}></script>
{{- end -}}

9
go.mod
View File

@@ -4,7 +4,7 @@ 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/cloudcannon/bookshop/hugo/v3 v3.16.3 // indirect github.com/cloudcannon/bookshop/hugo/v3 v3.16.4 // indirect
github.com/gethinode/mod-bootstrap v1.3.4 // indirect github.com/gethinode/mod-bootstrap v1.3.4 // indirect
github.com/gethinode/mod-csp v1.0.8 // indirect github.com/gethinode/mod-csp v1.0.8 // indirect
github.com/gethinode/mod-flexsearch/v2 v2.1.3 // indirect github.com/gethinode/mod-flexsearch/v2 v2.1.3 // indirect
@@ -13,12 +13,9 @@ require (
github.com/gethinode/mod-katex v1.1.4 // indirect github.com/gethinode/mod-katex v1.1.4 // indirect
github.com/gethinode/mod-leaflet v1.3.1 // indirect github.com/gethinode/mod-leaflet v1.3.1 // indirect
github.com/gethinode/mod-lottie v1.6.1 // indirect github.com/gethinode/mod-lottie v1.6.1 // indirect
github.com/gethinode/mod-mermaid v1.1.23 // indirect github.com/gethinode/mod-mermaid/v3 v3.0.1 // indirect
github.com/gethinode/mod-mermaid/v2 v2.0.3 // indirect
github.com/gethinode/mod-simple-datatables v1.1.7 // indirect
github.com/gethinode/mod-simple-datatables/v2 v2.0.2 // indirect github.com/gethinode/mod-simple-datatables/v2 v2.0.2 // indirect
github.com/gethinode/mod-utils/v3 v3.3.1 // indirect github.com/gethinode/mod-utils/v4 v4.13.0 // indirect
github.com/gethinode/mod-utils/v4 v4.11.1 // indirect
github.com/nextapps-de/flexsearch v0.0.0-20250606060143-c28f52c09b7a // indirect github.com/nextapps-de/flexsearch v0.0.0-20250606060143-c28f52c09b7a // indirect
github.com/twbs/bootstrap v5.3.7+incompatible // indirect github.com/twbs/bootstrap v5.3.7+incompatible // indirect
) )

10
go.sum
View File

@@ -8,6 +8,8 @@ github.com/cloudcannon/bookshop/hugo/v3 v3.16.1 h1:WByz6rqg28h94VLVLscu77/CHhi2p
github.com/cloudcannon/bookshop/hugo/v3 v3.16.1/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8= github.com/cloudcannon/bookshop/hugo/v3 v3.16.1/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8=
github.com/cloudcannon/bookshop/hugo/v3 v3.16.3 h1:/Z66xKILl1SNGQePHZCnxo6vFgED7AGI600OSPotXj4= github.com/cloudcannon/bookshop/hugo/v3 v3.16.3 h1:/Z66xKILl1SNGQePHZCnxo6vFgED7AGI600OSPotXj4=
github.com/cloudcannon/bookshop/hugo/v3 v3.16.3/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8= github.com/cloudcannon/bookshop/hugo/v3 v3.16.3/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8=
github.com/cloudcannon/bookshop/hugo/v3 v3.16.4 h1:k233xdD3ydE6iN8QB+c37//rSsFVtLIo5OUNRN4E3bc=
github.com/cloudcannon/bookshop/hugo/v3 v3.16.4/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8=
github.com/gethinode/mod-bootstrap v1.0.1 h1:NDZar+UEL42YHCvzzO+jVgqkZU5INA12BpjX3y6U4I4= github.com/gethinode/mod-bootstrap v1.0.1 h1:NDZar+UEL42YHCvzzO+jVgqkZU5INA12BpjX3y6U4I4=
github.com/gethinode/mod-bootstrap v1.0.1/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8= github.com/gethinode/mod-bootstrap v1.0.1/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
github.com/gethinode/mod-bootstrap v1.1.0 h1:BbalsW8kmFhv+J+dcc41TGcjIlM/p69AB0h0oGhAXIU= github.com/gethinode/mod-bootstrap v1.1.0 h1:BbalsW8kmFhv+J+dcc41TGcjIlM/p69AB0h0oGhAXIU=
@@ -326,6 +328,10 @@ github.com/gethinode/mod-mermaid/v2 v2.0.2 h1:uRHS3RyrMBK/hhDbEX39HnYkypSvSeci0k
github.com/gethinode/mod-mermaid/v2 v2.0.2/go.mod h1:kp3oUFAjKxuwzFbwxGWPEx5VQOu2ZHzcrwcNhDv08BI= github.com/gethinode/mod-mermaid/v2 v2.0.2/go.mod h1:kp3oUFAjKxuwzFbwxGWPEx5VQOu2ZHzcrwcNhDv08BI=
github.com/gethinode/mod-mermaid/v2 v2.0.3 h1:vWiAE640GAzkQCj0NFyn1VtnpFwiJ5Bljm2YgoQ3qG4= github.com/gethinode/mod-mermaid/v2 v2.0.3 h1:vWiAE640GAzkQCj0NFyn1VtnpFwiJ5Bljm2YgoQ3qG4=
github.com/gethinode/mod-mermaid/v2 v2.0.3/go.mod h1:kp3oUFAjKxuwzFbwxGWPEx5VQOu2ZHzcrwcNhDv08BI= github.com/gethinode/mod-mermaid/v2 v2.0.3/go.mod h1:kp3oUFAjKxuwzFbwxGWPEx5VQOu2ZHzcrwcNhDv08BI=
github.com/gethinode/mod-mermaid/v3 v3.0.0 h1:pFF2soB3ZQcY4KuMzDprcSv2zdC3yTKywNId4yhcPOA=
github.com/gethinode/mod-mermaid/v3 v3.0.0/go.mod h1:+8p5KbFjIkB/I77Gpd8LTQgmNrRBfJpmKGnjclzwJFo=
github.com/gethinode/mod-mermaid/v3 v3.0.1 h1:h4v3QvGpSln9PDbWccSktULq9FbRZ57JN4Lp+gVjvVI=
github.com/gethinode/mod-mermaid/v3 v3.0.1/go.mod h1:rbI8IKFfKVGqTY/eJnuNJwzB5kSjaEUNX0NRHc4rBfA=
github.com/gethinode/mod-simple-datatables v1.0.0 h1:Dj4WGw12OkaimwkCpLn5Jhmd49dvNJW9O2P/W9F+HlQ= github.com/gethinode/mod-simple-datatables v1.0.0 h1:Dj4WGw12OkaimwkCpLn5Jhmd49dvNJW9O2P/W9F+HlQ=
github.com/gethinode/mod-simple-datatables v1.0.0/go.mod h1:K8T7fIdb8pMOB+OSW4A5lz5IW99+HyzcTgx764fvOGw= github.com/gethinode/mod-simple-datatables v1.0.0/go.mod h1:K8T7fIdb8pMOB+OSW4A5lz5IW99+HyzcTgx764fvOGw=
github.com/gethinode/mod-simple-datatables v1.0.2 h1:zhqxHet3iLQWYCBbGROALpOY9zQlptMycFkz1Tto5bA= github.com/gethinode/mod-simple-datatables v1.0.2 h1:zhqxHet3iLQWYCBbGROALpOY9zQlptMycFkz1Tto5bA=
@@ -490,6 +496,10 @@ github.com/gethinode/mod-utils/v4 v4.11.0 h1:24RObT99j/jiQnCyHvXahJHIA8e8uQuBb1p
github.com/gethinode/mod-utils/v4 v4.11.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4= github.com/gethinode/mod-utils/v4 v4.11.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
github.com/gethinode/mod-utils/v4 v4.11.1 h1:12CzZjyLOb/FSXbX8mDAWqs8y4OCXOEavKww7T4V9jU= github.com/gethinode/mod-utils/v4 v4.11.1 h1:12CzZjyLOb/FSXbX8mDAWqs8y4OCXOEavKww7T4V9jU=
github.com/gethinode/mod-utils/v4 v4.11.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4= github.com/gethinode/mod-utils/v4 v4.11.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
github.com/gethinode/mod-utils/v4 v4.12.0 h1:5sSfYIxZCeQbXLoZdS//rl6thwLwtXuvM0ujaWKyPmc=
github.com/gethinode/mod-utils/v4 v4.12.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
github.com/gethinode/mod-utils/v4 v4.13.0 h1:VKAA+wKy4saayXfgJuVBRfhNVWQWmxOjO8LSpQCvLfw=
github.com/gethinode/mod-utils/v4 v4.13.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
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=

View File

@@ -101,6 +101,10 @@
translation: "See also" translation: "See also"
- id: sectionMenu - id: sectionMenu
translation: "Select a topic" translation: "Select a topic"
- id: tocShowMore
translation: "Show {{ . }} more"
- id: tocShowLess
translation: "Show less"
# Sidebar # Sidebar
- id: toggleSidebar - id: toggleSidebar

View File

@@ -99,6 +99,10 @@
translation: "Zie ook" translation: "Zie ook"
- id: sectionMenu - id: sectionMenu
translation: "Selecteer een onderwerp" translation: "Selecteer een onderwerp"
- id: tocShowMore
translation: "Toon {{ . }} meer"
- id: tocShowLess
translation: "Toon minder"
# Sidebar # Sidebar
- id: toggleSidebar - id: toggleSidebar

View File

@@ -1,4 +1,4 @@
<div class="mb-3 syntax-highlight"> <div class="codeblock syntax-highlight mb-3">
{{- $result := transform.HighlightCodeBlock . -}} {{- $result := transform.HighlightCodeBlock . -}}
{{- $result.Wrapped -}} {{- $result.Wrapped -}}
</div> </div>

View File

@@ -168,7 +168,7 @@
-}} -}}
{{/* Main code */}} {{/* Main code */}}
{{ if or (ne $args.gutter "0") ($args.wrapper) }}<div class="g-{{ $args.gutter }} {{ $args.wrapper }} h-100">{{ end }} {{ if or (gt $args.gutter "0") ($args.wrapper) }}<div class="{{ with $args.gutter }}g-{{ . }}{{ end }} {{ $args.wrapper }}">{{ end }}
{{ $stack := "" }} {{ $stack := "" }}
@@ -301,4 +301,4 @@
</div> </div>
{{- end -}} {{- end -}}
{{ if or (ne $args.gutter "0") ($args.wrapper) }}</div>{{ end }} {{ if or (gt $args.gutter "0") ($args.wrapper) }}</div>{{ end }}

View File

@@ -111,7 +111,7 @@
{{ end }} {{ end }}
{{/* Render default timeline */}} {{/* Render default timeline */}}
<div class="container p-0 d-none d-md-block {{ with $background }} timeline-{{ . }} {{ . }}{{ end }}{{ with $args.class }} {{ . }}{{ end }}"> <div class="timeline-container container p-0 d-none d-md-block {{ with $background }} timeline-{{ . }} {{ . }}{{ end }}{{ with $args.class }} {{ . }}{{ end }}">
{{ $title | safeHTML }} {{ $title | safeHTML }}
{{ range $index, $item := $data }} {{ range $index, $item := $data }}
<div class="row timeline timeline-{{ $item.color }} timeline-dot g-0 "> <div class="row timeline timeline-{{ $item.color }} timeline-dot g-0 ">
@@ -137,7 +137,7 @@
</div> </div>
{{/* Render timeline for smaller devices */}} {{/* Render timeline for smaller devices */}}
<div class="container p-0 d-block d-md-none small{{ with $background }} timeline-bg-{{ . }} bg-{{ . }}{{ end }}{{ with $args.class }} {{ . }}{{ end }}"> <div class="timeline-container container p-0 d-block d-md-none small{{ with $background }} timeline-bg-{{ . }} bg-{{ . }}{{ end }}{{ with $args.class }} {{ . }}{{ end }}">
{{ range $index, $item := $data }} {{ range $index, $item := $data }}
<div class="row timeline-sm timeline-{{ $item.color }} timeline-dot g-0"> <div class="row timeline-sm timeline-{{ $item.color }} timeline-dot g-0">
{{ partial "inline/timeline-icon.html" (dict "icon" $item.icon "direction" "end" "col" 3) }} {{ partial "inline/timeline-icon.html" (dict "icon" $item.icon "direction" "end" "col" 3) }}

View File

@@ -1,107 +1,88 @@
{{- /* {{/*
Copyright 2023 Veriphor, LLC Copyright © 2025 The Hinode Team / Mark Dumay. All rights reserved.
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
Licensed under the Apache License, Version 2.0 (the "License"); you may not Visit gethinode.com/license for more details.
use this file except in compliance with the License. You may obtain a copy of */}}
the License at
{{ define "_partials/inline/toc-item.html" }}
https://www.apache.org/licenses/LICENSE-2.0 {{ $base := .base }}
{{ $startLevel := .startLevel }}
Unless required by applicable law or agreed to in writing, software {{ $endLevel := .endLevel }}
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT {{ $item := .item }}
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the {{ $maxNumHeadings := .maxNumHeadings }}
License for the specific language governing permissions and limitations under {{ $result := .result | default slice }}
the License.
*/}} {{ if and (ge $item.Level $startLevel) (le $item.Level $endLevel) }}
{{- $attrs := dict "class" (printf "toc-item toc-level-%d" (add 1 (sub $item.Level $startLevel))) }}
{{- /* {{- with $item.ID }}
Renders a table of contents by parsing rendered content. {{- $attrs = merge $attrs (dict "href" (printf "%s#%s" $base .)) }}
{{- end }}
In site configuration, set the default start level, end level, and the minimum
number of headings required to show the table of contents: {{ $htmlAttr := "" }}
{{ range $k, $v := $attrs }}{{ $htmlAttr = printf "%s %s=%q" $htmlAttr $k $v | safeHTMLAttr }}{{ end }}
[params.toc] {{ $rendered := printf "<a %s>%s</a>" $htmlAttr $item.Title }}
startLevel = 2 # default is 2 {{ $result = $result | append $rendered }}
endLevel = 3 # default is 3 {{ end }}
minNumHeadings = 2 # default is 2
{{ range $item.Headings }}
To display the table of contents on a page: {{ $result = $result | append (partial "inline/toc-item.html" (dict
"base" $base
+++ "item" .
title = 'Post 1' "startLevel" $startLevel
toc = true "endLevel" $endLevel
+++ "maxNumHeadings" $maxNumHeadings
)) }}
To display the table of contents on a page, and override one or more of the {{ end }}
default settings:
{{ return $result }}
+++ {{ end }}
title = 'Post 1'
[toc] {{- /* Get configuration. */}}
startLevel = 2 # default is 2 {{- $startLevel := or (.Site.Params.navigation.startLevel | int) 2 }}
endLevel = 3 # default is 3 {{- $endLevel := or (.Site.Params.navigation.endLevel | int) 3 }}
minNumHeadings = 2 # default is 2 {{- $minNumHeadings := or (.Site.Params.navigation.minNumHeadings | int) 2 }}
+++ {{- $maxNumHeadings := or (.Site.Params.navigation.maxNumHeadings | int) 9 }}
Change or localize the title with a "toc_title" key in your i18n file(s). {{- /* Render */}}
{{- if and .Site.Params.navigation.toc (ge (len .Fragments.HeadingsMap) $minNumHeadings) }}
Start with these basic CSS rules to style the table of contents: <strong class="d-block h6 my-2 pt-4">{{ T "toc" }}:</strong>
<nav class="toc">
a.toc-item { {{ $result := slice }}
display: block; {{ range .Fragments.Headings }}
} {{ $result = $result | append (partial "inline/toc-item.html" (dict
a.toc-level-1 { "base" $.RelPermalink
margin-left: 0em; "item" .
} "startLevel" $startLevel
a.toc-level-2 { "endLevel" $endLevel
margin-left: 1em; "maxNumHeadings" $maxNumHeadings
} )) }}
a.toc-level-3 { {{ end }}
margin-left: 2em;
} {{ range $i, $v := $result }}
a.toc-level-4 { {{ if eq $i $maxNumHeadings }}
margin-left: 3em; {{ partial "assets/button.html" (dict
} "id" "btnTOCShowMore"
a.toc-level-5 { "collapse-id" "toc-collapse-items"
margin-left: 4em; "link-type" "link"
} "class" "toc-item"
a.toc-level-6 { "title" (T "tocShowMore" (sub (len $result) $i))
margin-left: 5em; "spacing" false
} ) }}
<div class="collapse" id="toc-collapse-items">
@context {page} . {{ end }}
{{ print $v | safeHTML }}
@returns {template.HTML} {{ end }}
@example {{ partial "toc-parse-content.html" . }} {{ if gt (len $result) $maxNumHeadings }}
*/}} &nbsp;
{{ partial "assets/button.html" (dict
{{- /* Get configuration. */}} "id" "btnTOCShowLess"
{{- $startLevel := or (.Site.Params.navigation.startLevel | int) 2 }} "collapse-id" "toc-collapse-items"
{{- $endLevel := or (.Site.Params.navigation.endLevel | int) 3 }} "link-type" "link"
{{- $minNumHeadings := or (.Site.Params.navigation.minNumHeadings | int) 2 }} "class" "toc-item"
"title" (T "tocShowLess")
{{- /* Initialize. */}} "spacing" false
{{ $headings := partial "assets/toc-headings.html" . }} ) }}
</div>{{ end }}
{{- /* Render */}} </nav>
{{- if .Site.Params.navigation.toc }} {{ end }}
{{- with $headings }}
{{- if ge (len .) $minNumHeadings }}
<strong class="d-block h6 my-2 pt-4">{{ T "toc" }}:</strong>
<nav class="toc">
{{- range . }}
{{- $attrs := dict "class" (printf "toc-item toc-level-%d" (add 1 (sub .level $startLevel))) }}
{{- with .id }}
{{- $attrs = merge $attrs (dict "href" (printf "%s#%s" $.RelPermalink .)) }}
{{- end }}
<a
{{- range $k, $v := $attrs }}
{{- printf " %s=%q" $k $v | safeHTMLAttr }}
{{- end -}}
>{{ .text }}</a>
{{- end }}
</nav>
{{- end }}
{{- end }}
{{- end }}

View File

@@ -4,175 +4,204 @@
Visit gethinode.com/license for more details. Visit gethinode.com/license for more details.
*/}} */}}
{{ $error := false }} {{- $error := false -}}
{{/* Define inline partials */}} {{/* Define inline partials */}}
{{ define "_partials/inline/match.html" }} {{- define "_partials/inline/match.html" -}}
{{ $result := "" }} {{- $result := "" -}}
{{ $matches := slice }} {{- $matches := slice -}}
{{ if gt (len .modules) 0 }} {{- if gt (len .modules) 0 -}}
{{ range .modules }} {{- range .modules -}}
{{ $matches = $matches | append (printf "js/modules/%s/**.js" .) }} {{- $matches = $matches | append (printf "js/modules/%s/**.*js" .) -}}
{{ end }} {{- end -}}
{{ $result = printf "{%s}" (delimit $matches ",") }} {{- $result = printf "{%s}" (delimit $matches ",") -}}
{{ end }}
{{ return $result }}
{{ end }}
{{ define "_partials/inline/bundle-script.html" }}
{{ $page := .page }}
{{ $match := .match }}
{{ $destination := .destination }}
{{ $cat := .cat }}
{{ $localize := .localize }}
{{ $modules := .modules }}
{{ $skipTemplate := .skipTemplate }}
{{ $absoluteURL := .absoluteURL }}
{{ $state := cond (ne .state "immediate") .state "" }}
{{ if and $cat (ne $cat "other") }}
{{ $destination = path.Join (path.Dir $destination) (printf "%s-%s%s" (path.BaseName $destination) $cat (path.Ext $destination)) }}
{{ end }}
{{ if $localize }}
{{ $destination = path.Join (path.Dir $destination) (printf "%s.%s%s" (path.BaseName $destination) $page.Language.Lang (path.Ext $destination)) }}
{{ end }}
{{- $bundle := partial "utilities/bundle.html" (dict
"match" $match
"filename" $destination
"modules" $modules
"basepath" "js/modules"
"all" true
"debugging" site.Params.debugging.showJS
) -}}
{{- $js := $bundle -}}
{{- if not $skipTemplate -}}
{{- $js = $bundle | resources.ExecuteAsTemplate $destination $page -}}
{{- end -}} {{- end -}}
{{- return $result -}}
{{- end -}}
{{- define "_partials/inline/bundle-script.html" -}}
{{- $page := .page -}}
{{- $match := .match -}}
{{- $destination := .destination -}}
{{- $cat := .cat -}}
{{- $localize := .localize -}}
{{- $modules := .modules -}}
{{- $skipTemplate := .skipTemplate -}}
{{- $enableTemplate := .enableTemplate }}
{{- $absoluteURL := .absoluteURL -}}
{{- $state := cond (ne .state "immediate") .state "" -}}
{{- if and $cat (ne $cat "other") -}}
{{- $destination = path.Join (path.Dir $destination) (printf "%s-%s%s" (path.BaseName $destination) $cat (path.Ext $destination)) -}}
{{- end -}}
{{- if $localize -}}
{{- $destination = path.Join (path.Dir $destination) (printf "%s.%s%s" (path.BaseName $destination) $page.Language.Lang (path.Ext $destination)) -}}
{{- end -}}
{{- $bundle := partial "utilities/bundlev2.html" (dict
"page" $page
"match" $match
"filename" $destination
"modules" $modules
"basepath" "js/modules"
"all" true
"skip-template" $skipTemplate
"enable-template" $enableTemplate
"debugging" site.Params.debugging.showJS
) -}}
{{- $js := $bundle.bundle -}}
{{- $jsmod := $bundle.module -}}
{{- if gt (len $js.Content) 0 -}} {{- if gt (len $js.Content) 0 -}}
{{ $integrity := "" }} {{- $integrity := "" -}}
{{- if hugo.IsProduction -}} {{- if hugo.IsProduction -}}
{{ $js = $js | minify | fingerprint -}} {{- $js = $js | minify | fingerprint -}}
{{ $integrity = $js.Data.Integrity }} {{- $integrity = $js.Data.Integrity -}}
{{ end -}} {{- end -}}
{{ partial "templates/script.html" (dict "link" (cond $absoluteURL $js.Permalink $js.RelPermalink) "category" $cat "state" $state "integrity" $integrity) }}
{{ end -}} {{- partial "templates/script.html" (dict
{{ end }} "link" (cond $absoluteURL $js.Permalink $js.RelPermalink)
"category" $cat
"state" $state
"integrity" $integrity
) -}}
{{- end -}}
{{- if gt (len $jsmod.Content) 0 -}}
{{- $integrity := "" -}}
{{- if hugo.IsProduction -}}
{{- $jsmod = $jsmod | minify | fingerprint -}}
{{- $integrity = $jsmod.Data.Integrity -}}
{{- end -}}
{{- partial "templates/script.html" (dict
"link" (cond $absoluteURL $jsmod.Permalink $jsmod.RelPermalink)
"category" $cat
"state" $state
"integrity" $integrity
"script-type" "module"
) -}}
{{- end -}}
{{- end -}}
{{/* Initialize arguments */}} {{/* Initialize arguments */}}
{{ $args := partial "utilities/InitArgs.html" (dict "structure" "scripts" "args" .) }} {{- $args := partial "utilities/InitArgs.html" (dict "structure" "scripts" "args" .) -}}
{{ if $args.err }} {{- if $args.err -}}
{{ partial "utilities/LogErr.html" (dict {{- partial "utilities/LogErr.html" (dict
"partial" "footer/scripts.html" "partial" "footer/scripts.html"
"msg" "Invalid arguments" "msg" "Invalid arguments"
"details" $args.errmsg "details" $args.errmsg
"file" page.File "file" page.File
)}} )}}
{{ $error = true }} {{- $error = true -}}
{{ end }} {{- end -}}
{{ $page := $args.page | default page }} {{- $page := $args.page | default page -}}
{{/* Initialize local arguments */}} {{/* Initialize local arguments */}}
{{ $patterns := dict {{- $patterns := dict
"other" "js/critical/*.js" "other" "js/critical/*.*js"
"functional" "js/critical/functional/**.js" "functional" "js/critical/functional/**.*js"
"analytics" "js/critical/analytics/**.js" "analytics" "js/critical/analytics/**.*js"
"performance" "js/critical/performance/**.js" "performance" "js/critical/performance/**.*js"
"advertisement" "js/critical/advertisement/**.js" "advertisement" "js/critical/advertisement/**.*js"
"core" "{js/*.js,js/vendor/**.js}" "core" "{js/*.*js,js/vendor/**.*js}"
}} }}
{{- $absoluteURL := site.Params.main.canonifyAssetsURLs | default false -}} {{- $absoluteURL := site.Params.main.canonifyAssetsURLs | default false -}}
{{ $state := "immediate" }} {{- $state := "immediate" -}}
{{ $config := $page.Scratch.Get "modules" }} {{- $config := $page.Scratch.Get "modules" -}}
{{ $page_modules := slice }} {{- $page_modules := slice -}}
{{ if reflect.IsMap $page.Params.modules }} {{- if reflect.IsMap $page.Params.modules -}}
{{ $page_modules = $page.Params.modules }} {{- $page_modules = $page.Params.modules -}}
{{ else }} {{- else -}}
{{ $page_modules = $page_modules | append $page.Params.modules }} {{- $page_modules = $page_modules | append $page.Params.modules -}}
{{ end }} {{- end -}}
{{ with $page.Scratch.Get "dependencies" }}{{ $page_modules = append $page_modules . | uniq }}{{ end }} {{- with $page.Scratch.Get "dependencies" -}}{{- $page_modules = append $page_modules . | uniq -}}{{- end -}}
{{- $categories := dict "other" slice -}} {{- $categories := dict "other" slice -}}
{{ $modules := slice }} {{- $modules := slice -}}
{{ if eq $args.type "critical" }} {{- if eq $args.type "critical" -}}
{{- $modules = $config.critical -}} {{- $modules = $config.critical -}}
{{ $categories = merge $categories (dict "functional" slice "analytics" slice "performance" slice "advertisement" slice) }} {{- $categories = merge $categories (dict "functional" slice "analytics" slice "performance" slice "advertisement" slice) -}}
{{ else if eq $args.type "core" }} {{- else if eq $args.type "core" -}}
{{- $modules = $config.core -}} {{- $modules = $config.core -}}
{{ else if eq $args.type "optional" }} {{- else if eq $args.type "optional" -}}
{{- $modules = $config.optional | intersect $page_modules -}} {{- $modules = $config.optional | intersect $page_modules -}}
{{ end }} {{- end -}}
{{ range $cat, $val := $config.categories }} {{- range $cat, $val := $config.categories -}}
{{ $categories = merge $categories (dict $cat (intersect $val $modules)) }} {{- $categories = merge $categories (dict $cat (intersect $val $modules)) -}}
{{ end }} {{- end -}}
{{ $localize := false }} {{- $localize := false -}}
{{ if gt (intersect (or $config.localize slice) $modules | len) 0 }}{{ $localize = true }}{{ end }} {{- if gt (intersect (or $config.localize slice) $modules | len) 0 }}{{ $localize = true }}{{ end -}}
{{ $skipTemplate := false }} {{- $skipTemplate := false -}}
{{ if gt (intersect (or $config.skipTemplate slice) $modules | len) 0 }}{{ $skipTemplate = true }}{{ end }} {{- if gt (intersect (or $config.skipTemplate slice) $modules | len) 0 }}{{ $skipTemplate = true }}{{ end -}}
{{/* Main code */}} {{/* Main code */}}
{{ if not $error }} {{- if not $error -}}
{{/* include external scripts first */}} {{/* include external scripts first */}}
{{ range $mod, $cfg := $config.modules }} {{- range $mod, $cfg := $config.modules -}}
{{ if in $modules $mod }} {{- if in $modules $mod -}}
{{ if or (index $cfg "local") (not hugo.IsServer) }} {{- if or (index $cfg "local") (not hugo.IsServer) -}}
{{ with index $cfg "url" }} {{- with index $cfg "url" -}}
{{ partial "templates/script.html" (dict "link" . "category" (index $cfg "category") "state" (index $cfg "state")) }} {{- partial "templates/script.html" (dict
{{ end }} "link" .
{{ end }} "category" (index $cfg "category")
{{ end }} "state" (index $cfg "state"))
{{ end }} -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/* Bundle the critical and core scripts by category */}} {{/* Bundle the critical and core scripts by category */}}
{{ if ne $args.type "optional" }} {{- if ne $args.type "optional" -}}
{{ range $cat, $val := $categories }} {{- range $cat, $val := $categories -}}
{{ if or (gt ($val | len) 0) (eq $args.type "critical") }} {{- if or (gt ($val | len) 0) (eq $args.type "critical") -}}
{{ $match := "" }} {{- $match := "" -}}
{{ if eq $args.type "critical" }} {{- if eq $args.type "critical" -}}
{{ $match = index $patterns $cat }} {{- $match = index $patterns $cat -}}
{{ else if eq $cat "other" }} {{- else if eq $cat "other" -}}
{{ $match = index $patterns $args.type }} {{- $match = index $patterns $args.type -}}
{{ end }} {{- end -}}
{{ partial "inline/bundle-script.html" (dict {{- partial "inline/bundle-script.html" (dict
"page" $page "page" $page
"match" $match "match" $match
"destination" (printf "js/%s.bundle.js" $args.type) "destination" (printf "js/%s.bundle.js" $args.type)
"cat" $cat "cat" $cat
"modules" $val "modules" $val
"localize" $localize "localize" $localize
"skipTemplate" $skipTemplate "skipTemplate" $skipTemplate
"absoluteURL" $absoluteURL "absoluteURL" $absoluteURL
"state" (cond (eq $args.type "critical") "immediate" "async") "state" (cond (eq $args.type "critical") "immediate" "async")
)}} )}}
{{ end }} {{- end -}}
{{ end }} {{- end -}}
{{ else }} {{- else -}}
{{/* Bundle the optional scripts by module name and category */}} {{/* Bundle the optional scripts by module name and category */}}
{{ range $cat, $val := $categories }} {{- range $cat, $val := $categories -}}
{{ range $val }} {{- range $val -}}
{{ $modconfig := index $config.modules . }} {{- $modconfig := index $config.modules . -}}
{{ partial "inline/bundle-script.html" (dict {{- partial "inline/bundle-script.html" (dict
"page" $page "page" $page
"destination" (printf "js/%s.js" .) "destination" (printf "js/%s.js" .)
"cat" $cat "cat" $cat
"modules" (slice .) "modules" (slice .)
"localize" $modconfig.localize "localize" $modconfig.localize
"skipTemplate" $modconfig.disabletemplate "skipTemplate" $modconfig.disabletemplate
"absoluteURL" $absoluteURL "enableTemplate" $modconfig.enableTemplate
"state" $modconfig.state "absoluteURL" $absoluteURL
"state" $modconfig.state
)}} )}}
{{ end }} {{- end -}}
{{ end }} {{- end -}}
{{ end }} {{- end -}}
{{ end }} {{- end -}}

View File

@@ -46,7 +46,7 @@
{{ if eq .Kind "404" -}} {{ if eq .Kind "404" -}}
<meta name="robots" content="noindex, follow"> <meta name="robots" content="noindex, follow">
{{ else }} {{ else }}
{{ with or .Params.robots .Params.meta.robots -}} {{ with or .Params.robots .Params.meta.robots .Site.Params.meta.robots -}}
<meta name="robots" content="{{ . }}"> <meta name="robots" content="{{ . }}">
{{ else -}} {{ else -}}
<meta name="robots" content="index, follow"> <meta name="robots" content="index, follow">

View File

@@ -66,11 +66,24 @@
"dark-mode-tint" (default "0%" site.Params.style.darkModeTint) "dark-mode-tint" (default "0%" site.Params.style.darkModeTint)
-}} -}}
{{- $options := (dict "transpiler" $transpiler "silenceDeprecations" $silence "targetPath" $target "enableSourceMap" (not hugo.IsProduction) "vars" $vars) -}} {{- $options := (dict
{{- $bundle := partial "utilities/bundle.html" (dict "match" $source "filename" (printf "scss/bundle-%d.scss" now.UnixNano) "modules" $modules "basepath" "scss" "debugging" site.Params.debugging.showSCSS) -}} "transpiler" $transpiler
"silenceDeprecations" $silence
"targetPath" $target
"enableSourceMap" (not hugo.IsProduction)
"vars" $vars
) -}}
{{- $bundle := partial "utilities/bundlev2.html" (dict
"page" page
"match" $source
"filename" (printf "scss/bundle-%d.scss" now.UnixNano)
"modules" $modules
"basepath" "scss"
"debugging" site.Params.debugging.showSCSS
) -}}
{{- if gt ($bundle.Content | len) 0 }} {{- if gt ($bundle.bundle.Content | len) 0 }}
{{- $css := $bundle | resources.ExecuteAsTemplate $target . | toCSS $options -}} {{- $css := $bundle.bundle | resources.ExecuteAsTemplate $target . | toCSS $options -}}
{{ if $core }} {{ if $core }}
{{- partial "head/icons.html" (dict "css" $css) -}} {{- partial "head/icons.html" (dict "css" $css) -}}

View File

@@ -6,7 +6,7 @@
{{/* Initialize arguments */}} {{/* Initialize arguments */}}
{{- $args := partial "utilities/InitArgs.html" (dict "structure" "script" "args" .) -}} {{- $args := partial "utilities/InitArgs.html" (dict "structure" "script" "args" .) -}}
{{ if or $args.err $args.warnmsg }} {{- if or $args.err $args.warnmsg -}}
{{- partial (cond $args.err "utilities/LogErr.html" "utilities/LogWarn.html") (dict {{- partial (cond $args.err "utilities/LogErr.html" "utilities/LogWarn.html") (dict
"partial" "templates/script.html" "partial" "templates/script.html"
"warnid" "warn-invalid-arguments" "warnid" "warn-invalid-arguments"
@@ -16,15 +16,15 @@
) -}} ) -}}
{{- end -}} {{- end -}}
{{/* Initialize local arguments */}} {{/* Initialize local arguments */}}
{{- $category := cond (ne $args.category "other") $args.category "" -}} {{- $category := cond (ne $args.category "other") $args.category "" -}}
{{/* Main code */}} {{/* Main code */}}
{{- if not $args.err -}} {{- if not $args.err -}}
<script src="{{ $args.link }}" <script src="{{ $args.link }}"
{{/* with $args.scriptType generates an error when using type="{{ . }}", possibly a Hugo bug */}}
{{- with $args.scriptType }}{{ printf ` type="%s"` . | safeHTMLAttr }}{{ end -}}
{{- with $category }} data-category="{{ . }}"{{ end -}} {{- with $category }} data-category="{{ . }}"{{ end -}}
{{- with $args.integrity }}integrity="{{ . }}" crossorigin="anonymous"{{ end }} {{- with $args.integrity }} integrity="{{ . }}" crossorigin="anonymous"{{ end }}
{{- with $args.state }} {{ . | safeHTMLAttr }}{{ end -}}> {{- with $args.state }} {{ . | safeHTMLAttr }}{{ end -}}></script>
</script>
{{- end -}} {{- end -}}

View File

@@ -45,14 +45,14 @@
{{ end }} {{ end }}
{{ $modules := dict {{ $modules := dict
"modules" $modules "modules" $modules
"critical" $critical "critical" $critical
"core" $core "core" $core
"optional" $optional "optional" $optional
"excludeSCSS" $excludeSCSS "excludeSCSS" $excludeSCSS
"disableTemplate" $disableTemplate "disableTemplate" $disableTemplate
"localize" $localize "localize" $localize
"categories" $category "categories" $category
}} }}
{{- if and .IsPage (not (in $core "bootstrap")) -}} {{- if and .IsPage (not (in $core "bootstrap")) -}}

View File

@@ -72,7 +72,7 @@
{{- $output = (replace $output "<span class=\"c\">#" "<span class=\"c\">" | safeHTML) -}} {{- $output = (replace $output "<span class=\"c\">#" "<span class=\"c\">" | safeHTML) -}}
{{- end -}} {{- end -}}
<div class="mb-3 syntax-highlight{{ with $args.class }} {{ . }}{{ end }}"> <div class="command syntax-highlight mb-3{{ with $args.class }} {{ . }}{{ end }}">
{{- $output -}} {{- $output -}}
</div> </div>
{{ end }} {{ end }}

View File

@@ -71,33 +71,35 @@
{{- $match = replace $match $captureStart "" -}} {{- $match = replace $match $captureStart "" -}}
{{- $match = replace $match $captureEnd "" -}} {{- $match = replace $match $captureEnd "" -}}
<ul class="nav nav-tabs{{ with $args.class }} {{ . }}{{ end }}"> <div class="docs">
<li class="nav-item"> <ul class="docs-controls nav nav-tabs{{ with $args.class }} {{ . }}{{ end }}">
<a class="nav-link active font-monospace" <li class="nav-item">
href="#body-{{ $id }}" <a class="nav-link active font-monospace"
aria-current="page" href="#body-{{ $id }}"
data-bs-toggle="collapse" aria-current="page"
data-bs-target=".multi-{{ $id }}" data-bs-toggle="collapse"
aria-expanded="false" data-bs-target=".multi-{{ $id }}"
aria-controls="body-{{ $id }} footer-{{ $id }}"> aria-expanded="false"
<small>{{ if $args.full }}{{ strings.TrimPrefix "/" (strings.TrimPrefix $basePath $file) }}{{ else }}{{ path.Base $file }}{{ end }}</small> aria-controls="body-{{ $id }} footer-{{ $id }}">
</a> <small>{{ if $args.full }}{{ strings.TrimPrefix "/" (strings.TrimPrefix $basePath $file) }}{{ else }}{{ path.Base $file }}{{ end }}</small>
</li> </a>
</ul> </li>
<div class="border-start border-end border-bottom mb-3"> </ul>
<div class="collapse multi-{{ $id }}{{ if $args.show }} show{{ end }} syntax-highlight" id="body-{{ $id }}"> <div class="docs-panel mb-3">
{{- highlight (trim $match "\r\n") $extension "" -}} <div class="collapse multi-{{ $id }}{{ if $args.show }} show{{ end }} syntax-highlight" id="body-{{ $id }}">
</div> {{- highlight (trim $match "\r\n") $extension "" -}}
<div class="collapse multi-{{ $id }}{{ if not $args.show }} show{{ end }} p-3" id="footer-{{ $id }}"> </div>
<a class="nav-link active" <div class="collapse multi-{{ $id }}{{ if not $args.show }} show{{ end }} p-3" id="footer-{{ $id }}">
href="#body-{{ $id }}" <a class="nav-link active"
aria-current="page" href="#body-{{ $id }}"
data-bs-toggle="collapse" aria-current="page"
data-bs-target=".multi-{{ $id }}" data-bs-toggle="collapse"
aria-expanded="false" data-bs-target=".multi-{{ $id }}"
aria-controls="body-{{ $id }} footer-{{ $id }}"> aria-expanded="false"
<small><i>{{ T "clickToExpand" }}</i></small> aria-controls="body-{{ $id }} footer-{{ $id }}">
</a> <small><i>{{ T "clickToExpand" }}</i></small>
</a>
</div>
</div> </div>
</div> </div>
{{- end -}} {{- end -}}

View File

@@ -58,33 +58,35 @@
{{- $tmp := os.Stat $file -}} {{- $tmp := os.Stat $file -}}
{{- $content := readFile $file -}} {{- $content := readFile $file -}}
<ul class="nav nav-tabs{{ with $args.class }} {{ . }}{{ end }}"> <div class="file">
<li class="nav-item"> <ul class="file-controls nav nav-tabs{{ with $args.class }} {{ . }}{{ end }}">
<a class="nav-link active font-monospace" <li class="nav-item">
href="#body-{{ $id }}" <a class="nav-link active font-monospace"
aria-current="page" href="#body-{{ $id }}"
data-bs-toggle="collapse" aria-current="page"
data-bs-target=".multi-{{ $id }}" data-bs-toggle="collapse"
aria-expanded="false" data-bs-target=".multi-{{ $id }}"
aria-controls="body-{{ $id }} footer-{{ $id }}"> aria-expanded="false"
<small>{{ if $args.full }}{{ strings.TrimPrefix $basePath $file }}{{ else }}{{ path.Base $file }}{{ end }}</small> aria-controls="body-{{ $id }} footer-{{ $id }}">
</a> <small>{{ if $args.full }}{{ strings.TrimPrefix $basePath $file }}{{ else }}{{ path.Base $file }}{{ end }}</small>
</li> </a>
</ul> </li>
<div class="border-start border-end border-bottom mb-3"> </ul>
<div class="collapse multi-{{ $id }}{{ if $args.show }} show{{ end }} syntax-highlight" id="body-{{ $id }}"> <div class="file-panel mb-3">
{{- highlight (trim $content "\r\n") $lang (or $args.highlightOptions $args.options) -}} <div class="collapse multi-{{ $id }}{{ if $args.show }} show{{ end }} syntax-highlight" id="body-{{ $id }}">
</div> {{- highlight (trim $content "\r\n") $lang (or $args.highlightOptions $args.options) -}}
<div class="collapse multi-{{ $id }}{{ if not $args.show }} show{{ end }} p-3" id="footer-{{ $id }}"> </div>
<a class="nav-link active" <div class="collapse multi-{{ $id }}{{ if not $args.show }} show{{ end }} p-3" id="footer-{{ $id }}">
href="#body-{{ $id }}" <a class="nav-link active"
aria-current="page" href="#body-{{ $id }}"
data-bs-toggle="collapse" aria-current="page"
data-bs-target=".multi-{{ $id }}" data-bs-toggle="collapse"
aria-expanded="false" data-bs-target=".multi-{{ $id }}"
aria-controls="body-{{ $id }} footer-{{ $id }}"> aria-expanded="false"
<small><i>{{ T "clickToExpand" }}</i></small> aria-controls="body-{{ $id }} footer-{{ $id }}">
</a> <small><i>{{ T "clickToExpand" }}</i></small>
</a>
</div>
</div> </div>
</div> </div>
{{- end -}} {{- end -}}

View File

@@ -23,8 +23,9 @@
{{- /* Define main breakpoint */ -}} {{- /* Define main breakpoint */ -}}
{{- $.Scratch.Set "breakpoint" (partialCached "utilities/GetBreakpoint.html" .) }} {{- $.Scratch.Set "breakpoint" (partialCached "utilities/GetBreakpoint.html" .) }}
{{- /* Render blocks and establish overlay mode */ -}} {{- /* Prepare content blocks and establish overlay mode */ -}}
{{ $blocks := partial "utilities/RenderContentBlocks.html" (dict "page" . "blocks" .Params.content_blocks) }} {{ $blocks := partial "utilities/RenderContentBlocks.html" (dict "page" . "blocks" .Params.content_blocks) }}
{{ $.Scratch.Set "blocks" $blocks }}
{{ $overlayMode := $.Scratch.Get "overlayMode" }} {{ $overlayMode := $.Scratch.Get "overlayMode" }}
{{- /* Define base URL */ -}} {{- /* Define base URL */ -}}
@@ -51,7 +52,6 @@
-}} -}}
<div id="container" class="main"> <div id="container" class="main">
{{ $blocks }}
{{ block "main" . }}{{ end -}} {{ block "main" . }}{{ end -}}
</div> </div>

View File

@@ -1,5 +1,8 @@
{{ define "main" -}} {{ define "main" -}}
{{- $breakpoint := $.Scratch.Get "breakpoint" -}} {{- $breakpoint := $.Scratch.Get "breakpoint" -}}
{{- $blocks := $.Scratch.Get "blocks" -}}
{{ $blocks | safeHTML }}
<div class="container-xxl flex-fill p-4 px-xxl-0"> <div class="container-xxl flex-fill p-4 px-xxl-0">
{{ .Render "body" }} {{ .Render "body" }}

View File

@@ -1,4 +1,5 @@
{{ define "main" -}} {{ define "main" -}}
{{- $blocks := $.Scratch.Get "blocks" -}}
{{- $breakpoint := $.Scratch.Get "breakpoint" -}} {{- $breakpoint := $.Scratch.Get "breakpoint" -}}
{{- $sidebar := partial "page/sidebar" . -}} {{- $sidebar := partial "page/sidebar" . -}}
{{- $toc := partial "page/panel-toc" . -}} {{- $toc := partial "page/panel-toc" . -}}
@@ -15,6 +16,8 @@
</div> </div>
{{ end }} {{ end }}
{{ $blocks | safeHTML }}
<div class="container-xxl flex-fill p-4 px-xxl-0"> <div class="container-xxl flex-fill p-4 px-xxl-0">
<div class="row row-cols-1 row-cols-{{ $breakpoint.current }}-2 row-cols-{{ $breakpoint.next }}-3"> <div class="row row-cols-1 row-cols-{{ $breakpoint.current }}-2 row-cols-{{ $breakpoint.next }}-3">
<div class="col col-{{ $breakpoint.next }}-2 d-none d-{{ $breakpoint.next }}-block sidebar-overflow sticky-top pt-5"> <div class="col col-{{ $breakpoint.next }}-2 d-none d-{{ $breakpoint.next }}-block sidebar-overflow sticky-top pt-5">

985
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -73,9 +73,9 @@
"dependencies": { "dependencies": {
"@fullhuman/postcss-purgecss": "^7.0.2", "@fullhuman/postcss-purgecss": "^7.0.2",
"autoprefixer": "^10.4.21", "autoprefixer": "^10.4.21",
"cssnano": "^7.0.7", "cssnano": "^7.1.0",
"cssnano-preset-advanced": "^7.0.7", "cssnano-preset-advanced": "^7.0.8",
"hugo-bin": "0.145.0", "hugo-bin": "0.145.2",
"purgecss-whitelister": "^2.4.0" "purgecss-whitelister": "^2.4.0"
}, },
"devDependencies": { "devDependencies": {
@@ -85,9 +85,9 @@
"@semantic-release/exec": "^7.1.0", "@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^10.0.1", "@semantic-release/git": "^10.0.1",
"commitizen": "^4.3.1", "commitizen": "^4.3.1",
"cpy-cli": "^5.0.0", "cpy-cli": "^6.0.0",
"cz-conventional-changelog": "^3.3.0", "cz-conventional-changelog": "^3.3.0",
"eslint": "^9.30.1", "eslint": "^9.33.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"markdownlint-cli2": "^0.18.1", "markdownlint-cli2": "^0.18.1",
"neostandard": "^0.12.2", "neostandard": "^0.12.2",
@@ -96,9 +96,9 @@
"postcss-cli": "^11.0.1", "postcss-cli": "^11.0.1",
"replace-in-files-cli": "^3.0.0", "replace-in-files-cli": "^3.0.0",
"rimraf": "^6.0.1", "rimraf": "^6.0.1",
"semantic-release": "^24.2.6", "semantic-release": "^24.2.7",
"shx": "^0.4.0", "shx": "^0.4.0",
"stylelint": "^16.21.1", "stylelint": "^16.23.1",
"stylelint-config-standard-scss": "^15.0.1" "stylelint-config-standard-scss": "^15.0.1"
}, },
"optionalDependencies": { "optionalDependencies": {