mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 18:14:28 +00:00
Compare commits
63 Commits
v1.0.0-bet
...
v1.1.0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
32fd60bb58 | ||
![]() |
8fa19c9ed1 | ||
![]() |
d36fcd894b | ||
![]() |
7378a61542 | ||
![]() |
fb63e36c56 | ||
![]() |
ae1cda1f5a | ||
![]() |
4846d1b016 | ||
![]() |
01522dad71 | ||
![]() |
0bbef1dad2 | ||
![]() |
5e048d32df | ||
![]() |
d1128fa7c3 | ||
![]() |
cf9a39b51f | ||
![]() |
ae9ec71966 | ||
![]() |
f6c4bbfffb | ||
![]() |
7a655315f1 | ||
![]() |
5c27178881 | ||
![]() |
c829049842 | ||
![]() |
613da916aa | ||
![]() |
d3d75c9dc6 | ||
![]() |
2f5b49397e | ||
![]() |
632f3d861b | ||
![]() |
004063f02a | ||
![]() |
1bd498f816 | ||
![]() |
291220256a | ||
![]() |
7bcb87a73e | ||
![]() |
55cebc752e | ||
![]() |
14bf59a551 | ||
![]() |
bce0fedd15 | ||
![]() |
694e7fc7b1 | ||
![]() |
93749cb368 | ||
![]() |
cf01e22a4d | ||
![]() |
f416f6bb7e | ||
![]() |
a7b776c0dc | ||
![]() |
e70f3acb57 | ||
![]() |
6e7b40ad0f | ||
![]() |
7446b2958e | ||
![]() |
6c18ada352 | ||
![]() |
323b42996b | ||
![]() |
ab8074b293 | ||
![]() |
9419e18ba9 | ||
![]() |
0f007ba5c2 | ||
![]() |
7d0943fb0c | ||
![]() |
3d2cfdaf0a | ||
![]() |
281c16b561 | ||
![]() |
fe68bd6be3 | ||
![]() |
3bf0c241a3 | ||
![]() |
a6a670cd2b | ||
![]() |
a44b5449f8 | ||
![]() |
461f53c67e | ||
![]() |
9a5059d8bd | ||
![]() |
c1586ee00e | ||
![]() |
88d2a50954 | ||
![]() |
77aa394c8e | ||
![]() |
5d4147fea9 | ||
![]() |
9c1d84487d | ||
![]() |
944a9705d7 | ||
![]() |
5e274d952a | ||
![]() |
a7f2d6d003 | ||
![]() |
057ae25f7b | ||
![]() |
a6454e3b4e | ||
![]() |
4b8f59782a | ||
![]() |
777c4f671f | ||
![]() |
990a016434 |
41
.github/workflows/npm-publish.yml
vendored
41
.github/workflows/npm-publish.yml
vendored
@@ -1,41 +0,0 @@
|
|||||||
# This workflow will run tests using node and then publish a package to npmjs.org when a release is created
|
|
||||||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
||||||
name: Publish package to npmjs
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
release:
|
|
||||||
types: [published]
|
|
||||||
|
|
||||||
env:
|
|
||||||
REGISTRY_URL: 'https://registry.npmjs.org/'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
node-version: [20.x]
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup .npmrc file to publish to npm
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
registry-url: ${{ env.REGISTRY_URL }}
|
|
||||||
cache: 'npm'
|
|
||||||
cache-dependency-path: '**/package-lock.json'
|
|
||||||
|
|
||||||
# [27/AUG/23] Adjusted from npm ci to prevent EBADPLATFORM error due to fsevents
|
|
||||||
- name: Install npm
|
|
||||||
run: npm i
|
|
||||||
|
|
||||||
- name: Publish package to npm
|
|
||||||
run: npm publish
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
44
.github/workflows/release.yml
vendored
Normal file
44
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
HUSKY: 0
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read # for checkout
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write # to be able to publish a GitHub release
|
||||||
|
issues: write # to be able to comment on released issues
|
||||||
|
pull-requests: write # to be able to comment on released pull requests
|
||||||
|
id-token: write # to enable use of OIDC for npm provenance
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "lts/*"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm clean-install
|
||||||
|
|
||||||
|
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
|
||||||
|
run: npm audit signatures
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: npx semantic-release
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
_vendor/
|
_vendor/
|
||||||
prebuild/
|
prebuild/
|
||||||
|
prebuild-headers/
|
||||||
public/
|
public/
|
||||||
resources/
|
resources/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
1
.husky/commit-msg
Normal file
1
.husky/commit-msg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
npx --no -- commitlint --edit $1
|
6
.husky/install.mjs
Normal file
6
.husky/install.mjs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
// Skip Husky install in production and CI
|
||||||
|
if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') {
|
||||||
|
process.exit(0)
|
||||||
|
}
|
||||||
|
const husky = (await import('husky')).default
|
||||||
|
console.log(husky())
|
1
.husky/pre-commit
Normal file
1
.husky/pre-commit
Normal file
@@ -0,0 +1 @@
|
|||||||
|
npm test
|
@@ -69,3 +69,8 @@ $theme-colors: (
|
|||||||
"body": $body-bg,
|
"body": $body-bg,
|
||||||
"body-tertiary": $gray-100,
|
"body-tertiary": $gray-100,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$btn-padding-y-xs: .08rem !default;
|
||||||
|
$btn-padding-x-xs: 0.3rem !default;
|
||||||
|
$btn-font-size-xs: $font-size-base * .6 !default;
|
||||||
|
$btn-border-radius-xs: .2rem !default;
|
||||||
|
@@ -64,3 +64,8 @@ $theme-colors: (
|
|||||||
"body": $body-bg,
|
"body": $body-bg,
|
||||||
"body-tertiary": $gray-100,
|
"body-tertiary": $gray-100,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$btn-padding-y-xs: .08rem !default;
|
||||||
|
$btn-padding-x-xs: 0.3rem !default;
|
||||||
|
$btn-font-size-xs: $font-size-base * .6 !default;
|
||||||
|
$btn-border-radius-xs: .2rem !default;
|
||||||
|
@@ -48,3 +48,7 @@ a.btn {
|
|||||||
|
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-xs {
|
||||||
|
@include button-size($btn-padding-y-xs, $btn-padding-x-xs, $btn-font-size-xs, $btn-border-radius-xs);
|
||||||
|
}
|
||||||
|
@@ -1,14 +1,8 @@
|
|||||||
.nav-tabs .nav-tabs {
|
.nav-tabs {
|
||||||
border: none;
|
border: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-tabs .nav-link.active {
|
.nav-callout, .tab-content {
|
||||||
border-bottom-color: var(--bs-body-bg) !important;
|
|
||||||
border-bottom-style: solid !important;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-callout {
|
|
||||||
--#{$prefix}nav-callout-bg: var(--#{$prefix}light);
|
--#{$prefix}nav-callout-bg: var(--#{$prefix}light);
|
||||||
--#{$prefix}nav-callout-active-bg: var(--bs-primary-bg-subtle);
|
--#{$prefix}nav-callout-active-bg: var(--bs-primary-bg-subtle);
|
||||||
--#{$prefix}nav-callout-gap: #{$nav-underline-gap};
|
--#{$prefix}nav-callout-gap: #{$nav-underline-gap};
|
||||||
@@ -92,7 +86,7 @@
|
|||||||
|
|
||||||
@if $enable-dark-mode {
|
@if $enable-dark-mode {
|
||||||
@include color-mode(dark) {
|
@include color-mode(dark) {
|
||||||
.nav-callout {
|
.nav-callout, .tab-content {
|
||||||
--#{$prefix}nav-callout-bg: var(--#{$prefix}tertiary-bg);
|
--#{$prefix}nav-callout-bg: var(--#{$prefix}tertiary-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
commitlint.config.js
Normal file
1
commitlint.config.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
module.exports = {extends: ['@commitlint/config-conventional']}
|
@@ -21,7 +21,7 @@
|
|||||||
{{ partial "assets/hero.html" (dict
|
{{ partial "assets/hero.html" (dict
|
||||||
"heading" $args.heading
|
"heading" $args.heading
|
||||||
"background" $args.background
|
"background" $args.background
|
||||||
"illustration" (merge (dict "ratio" "1x1") $args.illustration)
|
"illustration" (merge (dict "ratio" "auto") $args.illustration)
|
||||||
"order" $args.order
|
"order" $args.order
|
||||||
"link-type" $args.linkType
|
"link-type" $args.linkType
|
||||||
"links" $args.links
|
"links" $args.links
|
||||||
|
@@ -29,7 +29,7 @@ blueprint:
|
|||||||
link:
|
link:
|
||||||
cols:
|
cols:
|
||||||
padding:
|
padding:
|
||||||
max:
|
limit:
|
||||||
pagination:
|
pagination:
|
||||||
paginate:
|
paginate:
|
||||||
background:
|
background:
|
||||||
|
@@ -62,14 +62,14 @@
|
|||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
{{ if not $error }}
|
{{ if not $error }}
|
||||||
{{- partial "assets/section-title.html" (dict "heading" $args.heading) -}}
|
{{- partial "assets/section-title.html" (dict "heading" $args.heading "justify" $args.justify) -}}
|
||||||
|
|
||||||
{{ $partial := "assets/card-group.html" }}
|
{{ $partial := "assets/card-group.html" }}
|
||||||
{{ $params := dict }}
|
{{ $params := dict }}
|
||||||
{{- $params = merge $params (dict
|
{{- $params = merge $params (dict
|
||||||
"page" page
|
"page" page
|
||||||
"list" $pages
|
"list" $pages
|
||||||
"max" $args.max
|
"limit" $args.limit
|
||||||
"cols" $args.cols
|
"cols" $args.cols
|
||||||
"icon-rounded" $args.iconRounded
|
"icon-rounded" $args.iconRounded
|
||||||
"href" (cond $moreButton $moreLink "")
|
"href" (cond $moreButton $moreLink "")
|
||||||
|
@@ -35,7 +35,7 @@
|
|||||||
{{ end}}
|
{{ end}}
|
||||||
|
|
||||||
{{ if not $error }}
|
{{ if not $error }}
|
||||||
{{- partial "assets/section-title.html" (dict "heading" $args.heading) -}}
|
{{- partial "assets/section-title.html" (dict "heading" $args.heading "justify" $args.justify) -}}
|
||||||
|
|
||||||
{{- partial "assets/card-group.html" (dict
|
{{- partial "assets/card-group.html" (dict
|
||||||
"page" page
|
"page" page
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
{{ if not $args.err }}
|
{{ if not $args.err }}
|
||||||
{{ $color := "" }}
|
{{ $color := "" }}
|
||||||
{{ if $args.contrast }}{{ $color = "white" }}{{ end }}
|
{{ if $args.contrast }}{{ $color = "white" }}{{ end }}
|
||||||
{{- partial "assets/section-title.html" (dict "heading" $args.heading "color" $color) -}}
|
{{- partial "assets/section-title.html" (dict "heading" $args.heading "color" $color "justify" $args.justify) -}}
|
||||||
|
|
||||||
{{ $class := "" }}
|
{{ $class := "" }}
|
||||||
{{ $id := printf "faq-%s" (md5 (delimit (slice . now) "-")) }}
|
{{ $id := printf "faq-%s" (md5 (delimit (slice . now) "-")) }}
|
||||||
|
@@ -96,7 +96,7 @@
|
|||||||
) }}
|
) }}
|
||||||
{{ end}}
|
{{ end}}
|
||||||
|
|
||||||
{{- partial "assets/section-title.html" (dict "heading" $args.heading) -}}
|
{{- partial "assets/section-title.html" (dict "heading" $args.heading "justify" $args.justify) -}}
|
||||||
|
|
||||||
{{ if eq $args.orientation "stacked" }}
|
{{ if eq $args.orientation "stacked" }}
|
||||||
<div class="col-{{ $breakpoint.current }}-{{ $args.width }} mx-auto pb-{{ $padding.y }}">
|
<div class="col-{{ $breakpoint.current }}-{{ $args.width }} mx-auto pb-{{ $padding.y }}">
|
||||||
|
@@ -10,10 +10,10 @@
|
|||||||
footerBelowFold = false
|
footerBelowFold = false
|
||||||
loading = "lazy"
|
loading = "lazy"
|
||||||
breakpoint = "md"
|
breakpoint = "md"
|
||||||
|
titleCase = false
|
||||||
[main.padding]
|
[main.padding]
|
||||||
x = 4
|
x = 4
|
||||||
y = 4
|
y = 4
|
||||||
titleCase = false
|
|
||||||
[main.internalLinks]
|
[main.internalLinks]
|
||||||
validate = true
|
validate = true
|
||||||
pretty = false
|
pretty = false
|
||||||
|
@@ -7,7 +7,7 @@ content_blocks:
|
|||||||
title: Welcome to Hinode!
|
title: Welcome to Hinode!
|
||||||
content: |-
|
content: |-
|
||||||
A clean documentation and blog theme for your Hugo site based on Bootstrap 5.
|
A clean documentation and blog theme for your Hugo site based on Bootstrap 5.
|
||||||
align: start
|
width: 6
|
||||||
background:
|
background:
|
||||||
color: primary
|
color: primary
|
||||||
subtle: true
|
subtle: true
|
||||||
@@ -15,10 +15,10 @@ content_blocks:
|
|||||||
image: /img/sunrise.jpg
|
image: /img/sunrise.jpg
|
||||||
ratio: 16x9
|
ratio: 16x9
|
||||||
width: 8
|
width: 8
|
||||||
width: 6
|
|
||||||
links:
|
links:
|
||||||
- title: Get started
|
- title: About
|
||||||
url: https://gethinode.com/docs
|
url: about
|
||||||
icon: fas book-open
|
icon: fas chevron-right
|
||||||
orientation: horizontal
|
orientation: horizontal
|
||||||
|
justify: center
|
||||||
---
|
---
|
||||||
|
@@ -4,12 +4,12 @@
|
|||||||
command = "npm run build:example"
|
command = "npm run build:example"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
DART_SASS_VERSION = "1.83.1"
|
DART_SASS_VERSION = "1.89.2"
|
||||||
HUGO_VERSION = "0.140.2"
|
HUGO_VERSION = "0.147.9"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
NODE_VERSION = "22.12.0"
|
NODE_VERSION = "22.13.0"
|
||||||
NPM_VERSION = "10.9.0"
|
NPM_VERSION = "10.9.2"
|
||||||
# toml-docs-end netlify
|
# toml-docs-end netlify
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
|
@@ -22,7 +22,8 @@ arguments:
|
|||||||
release: 1.0.0
|
release: 1.0.0
|
||||||
list:
|
list:
|
||||||
cards:
|
cards:
|
||||||
max:
|
limit:
|
||||||
|
release: v1.0.0
|
||||||
cols:
|
cols:
|
||||||
release: v0.19.0
|
release: v0.19.0
|
||||||
paginate:
|
paginate:
|
||||||
@@ -158,3 +159,12 @@ arguments:
|
|||||||
group: partial
|
group: partial
|
||||||
deprecated: v1.0.0
|
deprecated: v1.0.0
|
||||||
alternative: href-title
|
alternative: href-title
|
||||||
|
max:
|
||||||
|
type: int
|
||||||
|
optional: true
|
||||||
|
comment: Maximum number of elements to display.
|
||||||
|
group: partial
|
||||||
|
options:
|
||||||
|
min: 1
|
||||||
|
deprecated: v1.0.0
|
||||||
|
alternative: limit
|
||||||
|
@@ -11,8 +11,8 @@ arguments:
|
|||||||
full:
|
full:
|
||||||
id:
|
id:
|
||||||
class:
|
class:
|
||||||
options:
|
highlight-options:
|
||||||
release: v0.27.6
|
release: v1.0.0
|
||||||
# deprecated arguments
|
# deprecated arguments
|
||||||
path:
|
path:
|
||||||
type: string
|
type: string
|
||||||
@@ -22,3 +22,11 @@ arguments:
|
|||||||
the path of the repository is used as base path instead.
|
the path of the repository is used as base path instead.
|
||||||
deprecated: v1.0.0
|
deprecated: v1.0.0
|
||||||
alternative: file
|
alternative: file
|
||||||
|
options:
|
||||||
|
type: string
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Hugo highlighting options, see https://gohugo.io/shortcodes/highlight/#options-1.
|
||||||
|
release: v0.27.6
|
||||||
|
deprecated: v1.0.0
|
||||||
|
alternative: highlight-options
|
||||||
|
@@ -2,3 +2,17 @@ comment: >-
|
|||||||
Initializes images dimensions (widht x height for supported image ratios.
|
Initializes images dimensions (widht x height for supported image ratios.
|
||||||
arguments:
|
arguments:
|
||||||
ratio:
|
ratio:
|
||||||
|
type: select
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Ratio of the media asset. When the asset is an image, it is resized and
|
||||||
|
cropped (not applicable to vector graphics). For video assets, the padding
|
||||||
|
of the embedded frame is adjusted.
|
||||||
|
options:
|
||||||
|
values:
|
||||||
|
- 1x1
|
||||||
|
- 3x2
|
||||||
|
- 4x3
|
||||||
|
- 16x9
|
||||||
|
- 21x9
|
||||||
|
- auto
|
||||||
|
@@ -7,8 +7,12 @@ arguments:
|
|||||||
group: partial
|
group: partial
|
||||||
list:
|
list:
|
||||||
group: partial
|
group: partial
|
||||||
|
nav-disabled:
|
||||||
|
release: v1.0.0
|
||||||
nav-items:
|
nav-items:
|
||||||
release: v1.0.0
|
release: v1.0.0
|
||||||
|
nav-show:
|
||||||
|
release: v1.0.0
|
||||||
nav-titles:
|
nav-titles:
|
||||||
release: v1.0.0
|
release: v1.0.0
|
||||||
tab-type:
|
tab-type:
|
||||||
|
@@ -9,3 +9,4 @@ arguments:
|
|||||||
optional: false
|
optional: false
|
||||||
background:
|
background:
|
||||||
class:
|
class:
|
||||||
|
justify:
|
@@ -31,6 +31,11 @@ arguments:
|
|||||||
deprecated: v1.0.0
|
deprecated: v1.0.0
|
||||||
alternative: media-id
|
alternative: media-id
|
||||||
options:
|
options:
|
||||||
|
type: string
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Optional query parameters to append to video asset's url. The query string
|
||||||
|
is prepended with a `?` symbol. Only applicable to Cloudinary.
|
||||||
release: v0.28.2
|
release: v0.28.2
|
||||||
deprecated: v1.0.0
|
deprecated: v1.0.0
|
||||||
alternative: query-args
|
alternative: query-args
|
||||||
|
@@ -8,10 +8,10 @@
|
|||||||
footerBelowFold = false
|
footerBelowFold = false
|
||||||
loading = "lazy"
|
loading = "lazy"
|
||||||
breakpoint = "md"
|
breakpoint = "md"
|
||||||
|
titleCase = true
|
||||||
[main.padding]
|
[main.padding]
|
||||||
x = 4
|
x = 4
|
||||||
y = 4
|
y = 4
|
||||||
titleCase = true
|
|
||||||
[main.internalLinks]
|
[main.internalLinks]
|
||||||
validate = true
|
validate = true
|
||||||
pretty = true
|
pretty = true
|
||||||
|
@@ -37,7 +37,7 @@ content_blocks:
|
|||||||
more:
|
more:
|
||||||
title: More Posts
|
title: More Posts
|
||||||
padding: 0
|
padding: 0
|
||||||
max: 3
|
limit: 3
|
||||||
class: border-0 card-zoom card-body-margin
|
class: border-0 card-zoom card-body-margin
|
||||||
|
|
||||||
- _bookshop_name: articles
|
- _bookshop_name: articles
|
||||||
@@ -55,7 +55,7 @@ content_blocks:
|
|||||||
title: More articles
|
title: More articles
|
||||||
cols: 1
|
cols: 1
|
||||||
padding: 4
|
padding: 4
|
||||||
max: 2
|
limit: 2
|
||||||
header-style: none
|
header-style: none
|
||||||
footer-style: tags
|
footer-style: tags
|
||||||
orientation: horizontal-sm
|
orientation: horizontal-sm
|
||||||
|
@@ -6,18 +6,17 @@ content_blocks:
|
|||||||
- _bookshop_name: hero
|
- _bookshop_name: hero
|
||||||
heading:
|
heading:
|
||||||
title: Content blocks
|
title: Content blocks
|
||||||
align: start
|
|
||||||
breadcrumb: true
|
|
||||||
|
|
||||||
- _bookshop_name: articles
|
|
||||||
heading:
|
|
||||||
content: >-
|
content: >-
|
||||||
Hinode uses [Bookshop](https://github.com/CloudCannon/bookshop) to
|
Hinode uses [Bookshop](https://github.com/CloudCannon/bookshop) to
|
||||||
support so-called content blocks. Content blocks are reusable page
|
support so-called content blocks. Content blocks are reusable page
|
||||||
elements, such as a hero, about panel, or an FAQ. Hinode includes
|
elements, such as a hero, about panel, or an FAQ. Hinode includes
|
||||||
several ready-to-use blocks. Click on a card for more details about
|
several ready-to-use blocks. Click on a card for more details about
|
||||||
a content block, including its frontmatter configuration.
|
a content block, including its frontmatter configuration.
|
||||||
|
align: start
|
||||||
width: 8
|
width: 8
|
||||||
|
breadcrumb: true
|
||||||
|
|
||||||
|
- _bookshop_name: articles
|
||||||
hide-empty: false
|
hide-empty: false
|
||||||
input:
|
input:
|
||||||
section: blocks
|
section: blocks
|
||||||
@@ -27,7 +26,7 @@ content_blocks:
|
|||||||
title: More Posts
|
title: More Posts
|
||||||
cols: 3
|
cols: 3
|
||||||
padding: 0
|
padding: 0
|
||||||
max: 9
|
limit: 9
|
||||||
paginate: true
|
paginate: true
|
||||||
cover: false
|
cover: false
|
||||||
header-style: none
|
header-style: none
|
||||||
|
@@ -25,6 +25,7 @@ The `about` content block renders a short message next to an illustration. You c
|
|||||||
subtle: true
|
subtle: true
|
||||||
illustration:
|
illustration:
|
||||||
image: /assets/img/nat-9l98kFByiao-unsplash.jpg
|
image: /assets/img/nat-9l98kFByiao-unsplash.jpg
|
||||||
|
ratio: 1x1
|
||||||
link-type: link
|
link-type: link
|
||||||
links:
|
links:
|
||||||
- title: First link
|
- title: First link
|
||||||
|
@@ -26,12 +26,12 @@ The `articles` content block renders a group of article cards.
|
|||||||
more:
|
more:
|
||||||
title: More Blogs
|
title: More Blogs
|
||||||
padding: 0
|
padding: 0
|
||||||
max: 3
|
limit: 3
|
||||||
background:
|
background:
|
||||||
color: primary
|
color: primary
|
||||||
subtle: true
|
subtle: true
|
||||||
class: border-0 card-zoom card-body-margin
|
class: border-0 card-zoom card-body-margin
|
||||||
justify: center
|
justify: start
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< /example-bookshop >}}
|
{{< /example-bookshop >}}
|
||||||
|
@@ -59,6 +59,16 @@ As an example, the following shortcode displays a simple alert.
|
|||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
|
## Args
|
||||||
|
|
||||||
|
Use the args shortcode to generates a table of structured arguments. The argument definitions are expected to be defined in a data file identified by a provided structure name.
|
||||||
|
|
||||||
|
<!-- markdownlint-disable MD037 -->
|
||||||
|
{{< example lang="hugo" >}}
|
||||||
|
{{</* args "args" */>}}
|
||||||
|
{{< /example >}}
|
||||||
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
## Badge
|
## Badge
|
||||||
|
|
||||||
Use the badge shortcode to display a badge for a heading.
|
Use the badge shortcode to display a badge for a heading.
|
||||||
@@ -238,7 +248,7 @@ Use the `file` shortcode to print and highlight the full content of a given inpu
|
|||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* file file="./config/_default/languages.toml" id="file-collapse-1" */>}}
|
{{</* file file="./config/_default/languages.toml" id="file-collapse-1" full=false */>}}
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
@@ -352,14 +362,14 @@ As an example, the following shortcode displays a tab group with vertically alig
|
|||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* nav tab-type="pills" vertical="true" */>}}
|
{{</* nav tab-type="pills" vertical="true" */>}}
|
||||||
{{</* nav-item title="Nav Item #1" show="true" */>}}
|
{{</* nav-item title="Nav Item #1" */>}}
|
||||||
This is the first item's nav body. It supports Markdown content.
|
This is the first item's nav body. It supports Markdown content.
|
||||||
The item is shown by adding the value `show` to the `class` argument.
|
The item is shown by adding the value `show` to the `class` argument.
|
||||||
{{</* /nav-item */>}}
|
{{</* /nav-item */>}}
|
||||||
{{</* nav-item title="Nav Item #2" */>}}
|
{{</* nav-item title="Nav Item #2" show="true" */>}}
|
||||||
This is the second item's nav body.
|
This is the second item's nav body.
|
||||||
{{</* /nav-item */>}}
|
{{</* /nav-item */>}}
|
||||||
{{</* nav-item title="Nav Item #3" */>}}
|
{{</* nav-item title="Nav Item #3" disabled="true" */>}}
|
||||||
This is the third item's nav body.
|
This is the third item's nav body.
|
||||||
{{</* /nav-item */>}}
|
{{</* /nav-item */>}}
|
||||||
{{</* /nav */>}}
|
{{</* /nav */>}}
|
||||||
|
@@ -122,18 +122,20 @@
|
|||||||
"btn-group",
|
"btn-group",
|
||||||
"btn-light",
|
"btn-light",
|
||||||
"btn-link",
|
"btn-link",
|
||||||
"btn-md",
|
|
||||||
"btn-outline-primary",
|
"btn-outline-primary",
|
||||||
"btn-outline-secondary",
|
"btn-outline-secondary",
|
||||||
"btn-primary",
|
"btn-primary",
|
||||||
"btn-secondary",
|
"btn-secondary",
|
||||||
|
"btn-sm",
|
||||||
"btn-social",
|
"btn-social",
|
||||||
|
"btn-xs",
|
||||||
"card",
|
"card",
|
||||||
"card-block-2",
|
"card-block-2",
|
||||||
"card-body",
|
"card-body",
|
||||||
"card-body-link",
|
"card-body-link",
|
||||||
"card-body-margin",
|
"card-body-margin",
|
||||||
"card-button",
|
"card-button",
|
||||||
|
"card-button-link",
|
||||||
"card-container",
|
"card-container",
|
||||||
"card-container-wrapper",
|
"card-container-wrapper",
|
||||||
"card-emphasize",
|
"card-emphasize",
|
||||||
@@ -205,6 +207,7 @@
|
|||||||
"d-sm-block",
|
"d-sm-block",
|
||||||
"d-sm-none",
|
"d-sm-none",
|
||||||
"data-table",
|
"data-table",
|
||||||
|
"disabled",
|
||||||
"display-1",
|
"display-1",
|
||||||
"display-4",
|
"display-4",
|
||||||
"dropdown",
|
"dropdown",
|
||||||
@@ -228,23 +231,19 @@
|
|||||||
"fa-angle-left",
|
"fa-angle-left",
|
||||||
"fa-arrow-left",
|
"fa-arrow-left",
|
||||||
"fa-arrow-right",
|
"fa-arrow-right",
|
||||||
"fa-book-open",
|
|
||||||
"fa-bootstrap",
|
"fa-bootstrap",
|
||||||
"fa-check",
|
|
||||||
"fa-chevron-right",
|
"fa-chevron-right",
|
||||||
"fa-circle",
|
"fa-circle",
|
||||||
"fa-circle-check",
|
"fa-circle-check",
|
||||||
"fa-circle-play",
|
"fa-circle-play",
|
||||||
"fa-circle-question",
|
"fa-circle-question",
|
||||||
"fa-code",
|
"fa-code",
|
||||||
"fa-display",
|
|
||||||
"fa-divide",
|
"fa-divide",
|
||||||
"fa-docker",
|
"fa-docker",
|
||||||
"fa-ellipsis",
|
"fa-ellipsis",
|
||||||
"fa-face-frown",
|
"fa-face-frown",
|
||||||
"fa-facebook",
|
"fa-facebook",
|
||||||
"fa-fluid",
|
"fa-fluid",
|
||||||
"fa-font-awesome",
|
|
||||||
"fa-fw",
|
"fa-fw",
|
||||||
"fa-github",
|
"fa-github",
|
||||||
"fa-globe",
|
"fa-globe",
|
||||||
@@ -257,14 +256,11 @@
|
|||||||
"fa-link",
|
"fa-link",
|
||||||
"fa-linkedin",
|
"fa-linkedin",
|
||||||
"fa-magnifying-glass",
|
"fa-magnifying-glass",
|
||||||
"fa-markdown",
|
|
||||||
"fa-medium",
|
"fa-medium",
|
||||||
"fa-moon",
|
"fa-moon",
|
||||||
"fa-robot",
|
|
||||||
"fa-rocket",
|
"fa-rocket",
|
||||||
"fa-rotate-90",
|
"fa-rotate-90",
|
||||||
"fa-share-nodes",
|
"fa-share-nodes",
|
||||||
"fa-sitemap",
|
|
||||||
"fa-sort",
|
"fa-sort",
|
||||||
"fa-square-check",
|
"fa-square-check",
|
||||||
"fa-stack",
|
"fa-stack",
|
||||||
@@ -331,7 +327,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",
|
||||||
@@ -372,6 +367,7 @@
|
|||||||
"mt-auto",
|
"mt-auto",
|
||||||
"mt-md-0",
|
"mt-md-0",
|
||||||
"multi-docs-collapse-15",
|
"multi-docs-collapse-15",
|
||||||
|
"multi-docs-collapse-16",
|
||||||
"multi-file-collapse-1",
|
"multi-file-collapse-1",
|
||||||
"mx-auto",
|
"mx-auto",
|
||||||
"mx-md-0",
|
"mx-md-0",
|
||||||
@@ -499,7 +495,6 @@
|
|||||||
"text-decoration-none",
|
"text-decoration-none",
|
||||||
"text-end",
|
"text-end",
|
||||||
"text-info",
|
"text-info",
|
||||||
"text-md-end",
|
|
||||||
"text-muted",
|
"text-muted",
|
||||||
"text-nowrap",
|
"text-nowrap",
|
||||||
"text-primary",
|
"text-primary",
|
||||||
@@ -569,6 +564,7 @@
|
|||||||
"alerte",
|
"alerte",
|
||||||
"animatie",
|
"animatie",
|
||||||
"animation",
|
"animation",
|
||||||
|
"args",
|
||||||
"arguments",
|
"arguments",
|
||||||
"background-type",
|
"background-type",
|
||||||
"badge",
|
"badge",
|
||||||
@@ -576,10 +572,10 @@
|
|||||||
"block-diagram",
|
"block-diagram",
|
||||||
"blog",
|
"blog",
|
||||||
"body-docs-collapse-15",
|
"body-docs-collapse-15",
|
||||||
|
"body-docs-collapse-16",
|
||||||
"body-file-collapse-1",
|
"body-file-collapse-1",
|
||||||
"bouton",
|
"bouton",
|
||||||
"breadcrumb",
|
"breadcrumb",
|
||||||
"build-a-static-website-fast-and-flexible",
|
|
||||||
"button",
|
"button",
|
||||||
"button-group",
|
"button-group",
|
||||||
"c4-diagram",
|
"c4-diagram",
|
||||||
@@ -602,7 +598,6 @@
|
|||||||
"cookies-etc",
|
"cookies-etc",
|
||||||
"custom-activity",
|
"custom-activity",
|
||||||
"data-tables",
|
"data-tables",
|
||||||
"developer-friendly-and-secure",
|
|
||||||
"docs",
|
"docs",
|
||||||
"documentation",
|
"documentation",
|
||||||
"elements-type",
|
"elements-type",
|
||||||
@@ -611,37 +606,32 @@
|
|||||||
"exemple",
|
"exemple",
|
||||||
"fa-address-card",
|
"fa-address-card",
|
||||||
"fa-face-frown",
|
"fa-face-frown",
|
||||||
"fa-font-awesome",
|
|
||||||
"fa-square-check",
|
"fa-square-check",
|
||||||
"fab-bootstrap",
|
"fab-bootstrap",
|
||||||
"fab-docker",
|
"fab-docker",
|
||||||
"fab-facebook",
|
"fab-facebook",
|
||||||
"fab-github",
|
"fab-github",
|
||||||
"fab-linkedin",
|
"fab-linkedin",
|
||||||
"fab-markdown",
|
|
||||||
"fab-medium",
|
"fab-medium",
|
||||||
"fab-whatsapp",
|
"fab-whatsapp",
|
||||||
"fab-x-twitter",
|
"fab-x-twitter",
|
||||||
"faq-664efd96843c20a5a8800d1318cb7744",
|
"faq-46cc9ad0fb899a0f4539dbaa956f4df4",
|
||||||
"faq-664efd96843c20a5a8800d1318cb7744-heading-faq-664efd96843c20a5a8800d1318cb7744",
|
"faq-46cc9ad0fb899a0f4539dbaa956f4df4-heading-faq-46cc9ad0fb899a0f4539dbaa956f4df4",
|
||||||
"faq-664efd96843c20a5a8800d1318cb7744-item-0",
|
"faq-46cc9ad0fb899a0f4539dbaa956f4df4-item-0",
|
||||||
"faq-664efd96843c20a5a8800d1318cb7744-item-1",
|
"faq-46cc9ad0fb899a0f4539dbaa956f4df4-item-1",
|
||||||
"faq-664efd96843c20a5a8800d1318cb7744-item-2",
|
"faq-46cc9ad0fb899a0f4539dbaa956f4df4-item-2",
|
||||||
"fas-1",
|
"fas-1",
|
||||||
"fas-2",
|
"fas-2",
|
||||||
"fas-3",
|
"fas-3",
|
||||||
"fas-angle-left",
|
"fas-angle-left",
|
||||||
"fas-arrow-left",
|
"fas-arrow-left",
|
||||||
"fas-arrow-right",
|
"fas-arrow-right",
|
||||||
"fas-book-open",
|
|
||||||
"fas-check",
|
|
||||||
"fas-chevron-right",
|
"fas-chevron-right",
|
||||||
"fas-circle",
|
"fas-circle",
|
||||||
"fas-circle-check",
|
"fas-circle-check",
|
||||||
"fas-circle-play",
|
"fas-circle-play",
|
||||||
"fas-circle-question",
|
"fas-circle-question",
|
||||||
"fas-code",
|
"fas-code",
|
||||||
"fas-display",
|
|
||||||
"fas-divide",
|
"fas-divide",
|
||||||
"fas-ellipsis",
|
"fas-ellipsis",
|
||||||
"fas-globe",
|
"fas-globe",
|
||||||
@@ -653,10 +643,8 @@
|
|||||||
"fas-link",
|
"fas-link",
|
||||||
"fas-magnifying-glass",
|
"fas-magnifying-glass",
|
||||||
"fas-moon",
|
"fas-moon",
|
||||||
"fas-robot",
|
|
||||||
"fas-rocket",
|
"fas-rocket",
|
||||||
"fas-share-nodes",
|
"fas-share-nodes",
|
||||||
"fas-sitemap",
|
|
||||||
"fas-sort",
|
"fas-sort",
|
||||||
"fas-sun",
|
"fas-sun",
|
||||||
"fas-timeline",
|
"fas-timeline",
|
||||||
@@ -664,9 +652,9 @@
|
|||||||
"fichier",
|
"fichier",
|
||||||
"fil-dariane",
|
"fil-dariane",
|
||||||
"file",
|
"file",
|
||||||
"flexible--ready-to-use",
|
|
||||||
"flowchart",
|
"flowchart",
|
||||||
"footer-docs-collapse-15",
|
"footer-docs-collapse-15",
|
||||||
|
"footer-docs-collapse-16",
|
||||||
"footer-file-collapse-1",
|
"footer-file-collapse-1",
|
||||||
"formula-katex",
|
"formula-katex",
|
||||||
"formule-katex",
|
"formule-katex",
|
||||||
@@ -711,23 +699,20 @@
|
|||||||
"nav-0-0",
|
"nav-0-0",
|
||||||
"nav-0-1",
|
"nav-0-1",
|
||||||
"nav-0-2",
|
"nav-0-2",
|
||||||
|
"nav-0-btn-0",
|
||||||
|
"nav-0-btn-1",
|
||||||
|
"nav-0-btn-2",
|
||||||
"nav-nav-0",
|
"nav-nav-0",
|
||||||
"nav-nav-0-btn-0",
|
|
||||||
"nav-nav-0-btn-1",
|
|
||||||
"nav-nav-0-btn-2",
|
|
||||||
"navbar",
|
"navbar",
|
||||||
"navbar-0-collapse",
|
"navbar-0-collapse",
|
||||||
"navbar-mode",
|
"navbar-mode",
|
||||||
"navbar-mode-checkbox",
|
"navbar-mode-checkbox",
|
||||||
"navbar-sample",
|
|
||||||
"navbar-sample-checkbox",
|
|
||||||
"navbar-sample-collapse",
|
"navbar-sample-collapse",
|
||||||
"navigation",
|
"navigation",
|
||||||
"notification",
|
"notification",
|
||||||
"overview",
|
"overview",
|
||||||
"persona",
|
"persona",
|
||||||
"pie-chart",
|
"pie-chart",
|
||||||
"powered-by-open-source",
|
|
||||||
"projecten",
|
"projecten",
|
||||||
"projects",
|
"projects",
|
||||||
"projets",
|
"projets",
|
||||||
|
2
go.mod
2
go.mod
@@ -18,7 +18,7 @@ require (
|
|||||||
github.com/gethinode/mod-simple-datatables v1.1.7 // indirect
|
github.com/gethinode/mod-simple-datatables v1.1.7 // indirect
|
||||||
github.com/gethinode/mod-simple-datatables/v2 v2.0.1 // indirect
|
github.com/gethinode/mod-simple-datatables/v2 v2.0.1 // indirect
|
||||||
github.com/gethinode/mod-utils/v3 v3.3.1 // indirect
|
github.com/gethinode/mod-utils/v3 v3.3.1 // indirect
|
||||||
github.com/gethinode/mod-utils/v4 v4.5.1 // indirect
|
github.com/gethinode/mod-utils/v4 v4.8.4 // 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
|
||||||
)
|
)
|
||||||
|
14
go.sum
14
go.sum
@@ -438,6 +438,20 @@ github.com/gethinode/mod-utils/v4 v4.5.0 h1:p6sDsMNA/KE2IK3SPdWjFX3cPAwPP5gDxzJu
|
|||||||
github.com/gethinode/mod-utils/v4 v4.5.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
github.com/gethinode/mod-utils/v4 v4.5.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
github.com/gethinode/mod-utils/v4 v4.5.1 h1:VKmqi6+oC93noHUJ6HvFlelglHT/9+kXQjpJs7VtWko=
|
github.com/gethinode/mod-utils/v4 v4.5.1 h1:VKmqi6+oC93noHUJ6HvFlelglHT/9+kXQjpJs7VtWko=
|
||||||
github.com/gethinode/mod-utils/v4 v4.5.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
github.com/gethinode/mod-utils/v4 v4.5.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.6.0 h1:XQ7hiCrn15SzgkcD0j53XVZPQYeQKUxg/UUkr80pJ2w=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.6.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.7.0 h1:JaL/+APOwdEzAi6y174ZdwoguCdALyGiGX8qBVXXBdU=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.7.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.8.0 h1:/+M3EHqA8IzgBWXX1GLmT/xKbk2FVhUwmUfMnk/goF4=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.8.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.8.1 h1:XJULrx5VWO4wR69EsvfPp9bQoRvx8Y7GwnknpDbrDpg=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.8.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.8.2 h1:mhPmqdeCar2sOdVwKIyJl5la0RVBPtw4d29ncRKN3ek=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.8.2/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.8.3 h1:CSaFR/c1cGrSPpH5ZfrNOoMhAbNb8sw0SCRh9ZxCJTU=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.8.3/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.8.4 h1:ExD2zZCGonAmbIxC9wBU2dp+V4ZfvG46NWaz+LaV3iQ=
|
||||||
|
github.com/gethinode/mod-utils/v4 v4.8.4/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=
|
||||||
|
210
hugo_stats.json
210
hugo_stats.json
@@ -1,211 +1,7 @@
|
|||||||
{
|
{
|
||||||
"htmlElements": {
|
"htmlElements": {
|
||||||
"tags": [
|
"tags": null,
|
||||||
"a",
|
"classes": null,
|
||||||
"body",
|
"ids": null
|
||||||
"button",
|
|
||||||
"div",
|
|
||||||
"footer",
|
|
||||||
"form",
|
|
||||||
"head",
|
|
||||||
"html",
|
|
||||||
"img",
|
|
||||||
"input",
|
|
||||||
"label",
|
|
||||||
"li",
|
|
||||||
"link",
|
|
||||||
"meta",
|
|
||||||
"nav",
|
|
||||||
"ol",
|
|
||||||
"p",
|
|
||||||
"path",
|
|
||||||
"script",
|
|
||||||
"section",
|
|
||||||
"small",
|
|
||||||
"span",
|
|
||||||
"strong",
|
|
||||||
"svg",
|
|
||||||
"symbol",
|
|
||||||
"title",
|
|
||||||
"ul",
|
|
||||||
"use"
|
|
||||||
],
|
|
||||||
"classes": [
|
|
||||||
"active",
|
|
||||||
"align-items-center",
|
|
||||||
"align-items-start",
|
|
||||||
"align-self-center",
|
|
||||||
"align-self-end",
|
|
||||||
"ball",
|
|
||||||
"bg-body",
|
|
||||||
"bg-opacity-10",
|
|
||||||
"bg-primary",
|
|
||||||
"bg-primary-subtle",
|
|
||||||
"bottom-0",
|
|
||||||
"bottom-bar",
|
|
||||||
"breadcrumb",
|
|
||||||
"breadcrumb-item",
|
|
||||||
"btn",
|
|
||||||
"btn-close",
|
|
||||||
"btn-primary",
|
|
||||||
"checkbox",
|
|
||||||
"col",
|
|
||||||
"col-12",
|
|
||||||
"col-6",
|
|
||||||
"col-8",
|
|
||||||
"col-md-1",
|
|
||||||
"col-md-11",
|
|
||||||
"col-md-2",
|
|
||||||
"col-md-6",
|
|
||||||
"col-md-8",
|
|
||||||
"col-sm-12",
|
|
||||||
"collapse",
|
|
||||||
"collapsed",
|
|
||||||
"container-fluid",
|
|
||||||
"container-xxl",
|
|
||||||
"d-flex",
|
|
||||||
"d-inline",
|
|
||||||
"d-md-block",
|
|
||||||
"d-md-none",
|
|
||||||
"d-none",
|
|
||||||
"d-sm-block",
|
|
||||||
"d-sm-none",
|
|
||||||
"display-1",
|
|
||||||
"display-4",
|
|
||||||
"emphasis",
|
|
||||||
"end-0",
|
|
||||||
"fa",
|
|
||||||
"fa-10x",
|
|
||||||
"fa-2x",
|
|
||||||
"fa-angle-left",
|
|
||||||
"fa-book-open",
|
|
||||||
"fa-ellipsis",
|
|
||||||
"fa-face-frown",
|
|
||||||
"fa-fw",
|
|
||||||
"fa-github",
|
|
||||||
"fa-linkedin",
|
|
||||||
"fa-medium",
|
|
||||||
"fa-moon",
|
|
||||||
"fa-sun",
|
|
||||||
"fab",
|
|
||||||
"fas",
|
|
||||||
"fixed-top",
|
|
||||||
"flex-column",
|
|
||||||
"flex-fill",
|
|
||||||
"flex-grow-1",
|
|
||||||
"footer",
|
|
||||||
"form-control",
|
|
||||||
"fs-3",
|
|
||||||
"fw-30",
|
|
||||||
"fw-bold",
|
|
||||||
"h-100",
|
|
||||||
"hero",
|
|
||||||
"hero-content",
|
|
||||||
"hero-image",
|
|
||||||
"hero-image-container",
|
|
||||||
"hero-title",
|
|
||||||
"hstack",
|
|
||||||
"img-fluid",
|
|
||||||
"img-wrap",
|
|
||||||
"invisible",
|
|
||||||
"is-search",
|
|
||||||
"justify-content-center",
|
|
||||||
"justify-content-end",
|
|
||||||
"justify-content-md-start",
|
|
||||||
"justify-content-start",
|
|
||||||
"label",
|
|
||||||
"lead",
|
|
||||||
"link-bg-footer",
|
|
||||||
"link-secondary",
|
|
||||||
"m-auto",
|
|
||||||
"main",
|
|
||||||
"main-nav-toggler",
|
|
||||||
"me-auto",
|
|
||||||
"middle-bar",
|
|
||||||
"mode-switch",
|
|
||||||
"ms-auto",
|
|
||||||
"ms-md-3",
|
|
||||||
"mt-3",
|
|
||||||
"mt-4",
|
|
||||||
"mt-5",
|
|
||||||
"mt-md-0",
|
|
||||||
"mx-auto",
|
|
||||||
"mx-md-0",
|
|
||||||
"my-auto",
|
|
||||||
"my-md-auto",
|
|
||||||
"nav-item",
|
|
||||||
"nav-link",
|
|
||||||
"navbar",
|
|
||||||
"navbar-brand",
|
|
||||||
"navbar-collapse",
|
|
||||||
"navbar-container",
|
|
||||||
"navbar-expand-md",
|
|
||||||
"navbar-fixed-top",
|
|
||||||
"navbar-mode-selector",
|
|
||||||
"navbar-nav",
|
|
||||||
"navbar-toggler",
|
|
||||||
"no-js",
|
|
||||||
"order-0",
|
|
||||||
"order-1",
|
|
||||||
"order-md-0",
|
|
||||||
"order-md-1",
|
|
||||||
"p-0",
|
|
||||||
"p-2",
|
|
||||||
"p-3",
|
|
||||||
"p-4",
|
|
||||||
"position-fixed",
|
|
||||||
"position-relative",
|
|
||||||
"ps-1",
|
|
||||||
"pt-1",
|
|
||||||
"pt-4",
|
|
||||||
"pt-md-0",
|
|
||||||
"px-4",
|
|
||||||
"px-xxl-0",
|
|
||||||
"py-3",
|
|
||||||
"py-4",
|
|
||||||
"rounded",
|
|
||||||
"row",
|
|
||||||
"row-cols-1",
|
|
||||||
"row-cols-2",
|
|
||||||
"row-cols-sm-3",
|
|
||||||
"search",
|
|
||||||
"search-input",
|
|
||||||
"search-suggestions",
|
|
||||||
"section-cover",
|
|
||||||
"shadow",
|
|
||||||
"svg-inline--fa",
|
|
||||||
"text-body",
|
|
||||||
"text-center",
|
|
||||||
"text-decoration-none",
|
|
||||||
"text-md-start",
|
|
||||||
"text-muted",
|
|
||||||
"text-secondary",
|
|
||||||
"text-sm-start",
|
|
||||||
"text-start",
|
|
||||||
"toast",
|
|
||||||
"toast-body",
|
|
||||||
"toast-container",
|
|
||||||
"toast-header",
|
|
||||||
"toggler-icon",
|
|
||||||
"top-bar"
|
|
||||||
],
|
|
||||||
"ids": [
|
|
||||||
"container",
|
|
||||||
"fa-face-frown",
|
|
||||||
"fab-github",
|
|
||||||
"fab-linkedin",
|
|
||||||
"fab-medium",
|
|
||||||
"fas-angle-left",
|
|
||||||
"fas-book-open",
|
|
||||||
"fas-ellipsis",
|
|
||||||
"fas-moon",
|
|
||||||
"fas-sun",
|
|
||||||
"navbar-0-collapse",
|
|
||||||
"navbar-mode",
|
|
||||||
"navbar-mode-checkbox",
|
|
||||||
"toast-container",
|
|
||||||
"toast-copied-code-message",
|
|
||||||
"welcome-to-hinode"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
{{ $comment := $val.comment }}
|
{{ $comment := $val.comment }}
|
||||||
{{ if $val.deprecated }}
|
{{ if $val.deprecated }}
|
||||||
{{ $btn := printf `{{< release version="%s" short="true" button-size="sm" inline="true" release-state="deprecated" >}}` $val.deprecated }}
|
{{ $btn := printf `{{< release version="%s" short="true" button-size="xs" inline="true" release-state="deprecated" >}}` $val.deprecated }}
|
||||||
{{ with $val.alternative }}
|
{{ with $val.alternative }}
|
||||||
{{ $comment = printf "%s **%s**. %s" $btn (T "alternativeFeature" .) $comment }}
|
{{ $comment = printf "%s **%s**. %s" $btn (T "alternativeFeature" .) $comment }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if $val.release }}
|
{{ if $val.release }}
|
||||||
{{ $comment = printf `{{< release version="%s" short="true" button-size="sm" inline="true" >}} %s` $val.release $comment }}
|
{{ $comment = printf `{{< release version="%s" short="true" button-size="xs" inline="true" >}} %s` $val.release $comment }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $min := "" }}
|
{{ $min := "" }}
|
||||||
@@ -125,7 +125,9 @@
|
|||||||
{{ if in (slice "types" "both") $args.renderType }}
|
{{ if in (slice "types" "both") $args.renderType }}
|
||||||
{{ $prefix := strings.Repeat $args.headerLevel "#" }}
|
{{ $prefix := strings.Repeat $args.headerLevel "#" }}
|
||||||
{{ range $k, $v := $types.udt }}
|
{{ range $k, $v := $types.udt }}
|
||||||
{{ printf "%s %s %s" $prefix $k (T "type") | $args.page.RenderString }}
|
{{ $title := $k }}
|
||||||
|
{{ if site.Params.main.titleCase }}{{ $title = title $title }}{{ end }}
|
||||||
|
{{ printf "%s %s %s" $prefix $title (T "type") | $args.page.RenderString }}
|
||||||
{{ partial "inline/args-table.html" (merge $params (dict "args" $v)) }}
|
{{ partial "inline/args-table.html" (merge $params (dict "args" $v)) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -33,8 +33,7 @@
|
|||||||
{{- with $args.tooltip }}{{ $tooltip = . }}{{ end -}}
|
{{- with $args.tooltip }}{{ $tooltip = . }}{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- $href := .href -}}
|
{{- $href := $args.href -}}
|
||||||
|
|
||||||
{{ $linkType := or $args.linkType $args.type }}
|
{{ $linkType := or $args.linkType $args.type }}
|
||||||
{{ $buttonSize := or $args.buttonSize $args.size }}
|
{{ $buttonSize := or $args.buttonSize $args.size }}
|
||||||
{{ $toastID := or $args.toastId $args.toast }}
|
{{ $toastID := or $args.toastId $args.toast }}
|
||||||
@@ -74,13 +73,21 @@
|
|||||||
|
|
||||||
{{/* Main code */}}
|
{{/* Main code */}}
|
||||||
{{ if not $error }}
|
{{ if not $error }}
|
||||||
|
{{- $btnClass := "" -}}
|
||||||
|
{{- if eq $linkType "button" }}
|
||||||
|
{{- $btnClass = printf "btn btn-%s%s" (cond $args.outline "outline-" "") $args.color -}}
|
||||||
|
{{- if ne $buttonSize "md" }}{{ $btnClass = printf "%s btn-%s" $btnClass $buttonSize }}{{ end -}}
|
||||||
|
{{- if in (slice "disabled" "active") $state }}{{ $btnClass = printf "%s %s" $btnClass $state }}{{ end -}}
|
||||||
|
{{- $btnClass = printf "%s position-relative %s" $btnClass $class }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
<a aria-label="{{ (or $label $title) | safeHTML }}"
|
<a aria-label="{{ (or $label $title) | safeHTML }}"
|
||||||
{{ if ne $state "disabled" }}{{ with $href }}href="{{ . }}"{{ end }}{{ end -}}
|
{{ if ne $state "disabled" }}{{ with $href }}href="{{ . }}"{{ end }}{{ end -}}
|
||||||
{{- with $args.id }} id="{{ . }}"{{ end -}}
|
{{- with $args.id }} id="{{ . }}"{{ end -}}
|
||||||
{{- with $target }} target="{{ . }}"{{ end }}{{ with $rel }} rel="{{ . }}"{{ end -}}
|
{{- with $target }} target="{{ . }}"{{ end }}{{ with $rel }} rel="{{ . }}"{{ end -}}
|
||||||
{{- with $toastID }} data-toast-target="{{ . }}"{{ end -}}
|
{{- with $toastID }} data-toast-target="{{ . }}"{{ end -}}
|
||||||
{{- with $args.clipboard }} data-clipboard="{{ . }}"{{ end -}}
|
{{- with $args.clipboard }} data-clipboard="{{ . }}"{{ end -}}
|
||||||
{{- if eq $linkType "button" }} class="btn btn-{{ if $args.outline }}outline-{{ end }}{{ $args.color }} {{ if ne $buttonSize "md" }}btn-{{ $args.size }}{{ end }} position-relative {{ if in (slice "disabled" "active") $args.state }}{{ $args.state }}{{ end }} {{ $class -}}"
|
{{- with $btnClass }} class="{{ . }}"
|
||||||
{{ if eq $state "disabled" }}aria-disabled="true"{{ end -}}
|
{{ if eq $state "disabled" }}aria-disabled="true"{{ end -}}
|
||||||
{{- else }} class="btn btn-link link-{{ $args.color }} position-relative {{ $class }}"{{ end -}}
|
{{- else }} class="btn btn-link link-{{ $args.color }} position-relative {{ $class }}"{{ end -}}
|
||||||
{{- with $tooltip }} data-bs-toggle="tooltip" data-bs-title="{{ . }}" data-bs-placement="{{ $args.placement }}"{{ end -}}
|
{{- with $tooltip }} data-bs-toggle="tooltip" data-bs-title="{{ . }}" data-bs-placement="{{ $args.placement }}"{{ end -}}
|
||||||
|
@@ -113,7 +113,7 @@
|
|||||||
{{/* Limit list to max elements */}}
|
{{/* Limit list to max elements */}}
|
||||||
{{- $count := len $elements -}}
|
{{- $count := len $elements -}}
|
||||||
{{- $max := $count -}}
|
{{- $max := $count -}}
|
||||||
{{- $max = math.Min ($args.max | default $count) $count -}}
|
{{- $max = math.Min ((or $args.limit $args.max) | default $count) $count -}}
|
||||||
{{- if not $args.paginate -}}
|
{{- if not $args.paginate -}}
|
||||||
{{- $elements = first $max $elements -}}
|
{{- $elements = first $max $elements -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@@ -179,7 +179,7 @@
|
|||||||
{{ if eq (lower (path.Ext $thumbnail)) ".svg" }}{{ $fullHeight = "" }}{{ $rounding = "" }}{{ end }}
|
{{ if eq (lower (path.Ext $thumbnail)) ".svg" }}{{ $fullHeight = "" }}{{ $rounding = "" }}{{ end }}
|
||||||
{{- partial $args.hook (dict
|
{{- partial $args.hook (dict
|
||||||
"src" $thumbnail
|
"src" $thumbnail
|
||||||
"ratio" (or $ratio "1x1")
|
"ratio" (or $ratio "auto")
|
||||||
"portrait" $args.portrait
|
"portrait" $args.portrait
|
||||||
"sizes" $args.sizes
|
"sizes" $args.sizes
|
||||||
"anchor" $anchor
|
"anchor" $anchor
|
||||||
@@ -203,9 +203,22 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
<div class="{{ $col2 }}">
|
<div class="{{ $col2 }}">
|
||||||
<div class="card-body d-flex p-{{ $args.padding }} flex-column h-100 flex-fill">
|
<div class="card-body d-flex p-{{ $args.padding }} flex-column h-100 flex-fill">
|
||||||
{{ if $page }}<div>{{ partial "inline/card-caption.html" (dict "page" $page "keywords" $args.headerStyle "color" $args.color) }}</div>{{ end }}
|
{{ if $page }}
|
||||||
|
<div>{{ partial "inline/card-caption.html" (dict
|
||||||
|
"page" $page
|
||||||
|
"keywords" $args.headerStyle
|
||||||
|
"color" $args.color
|
||||||
|
) }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
<div class="flex-fill">
|
<div class="flex-fill">
|
||||||
{{- partial "inline/card-body.html" (dict "title" $title "href" $href "color" $args.color "description" $description "button" $args.button) -}}
|
{{- partial "inline/card-body.html" (dict
|
||||||
|
"title" $title
|
||||||
|
"href" $href
|
||||||
|
"color" $args.color
|
||||||
|
"description" $description
|
||||||
|
"button" $args.button
|
||||||
|
) -}}
|
||||||
</div>
|
</div>
|
||||||
{{ if $page }}<div>{{ partial "inline/card-caption.html" (dict "page" $page "keywords" $args.footerStyle "color" $args.color) }}</div>{{ end }}
|
{{ if $page }}<div>{{ partial "inline/card-caption.html" (dict "page" $page "keywords" $args.footerStyle "color" $args.color) }}</div>{{ end }}
|
||||||
{{ if and $href $args.button }}
|
{{ if and $href $args.button }}
|
||||||
|
@@ -20,21 +20,23 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* Initialize local arguments */}}
|
{{/* Initialize local arguments */}}
|
||||||
{{ $dim := "" }}
|
{{ $dim := slice }}
|
||||||
{{ $default := dict "4x3" "1400x1050" "3x2" "1400x933" "1x1" "1400x1400" "16x9" "1400x788" "21x9" "1400x600" "auto" "1400" }}
|
{{ $default := dict "4x3" "1400x1050" "3x2" "1400x933" "1x1" "1400x1400" "16x9" "1400x788" "21x9" "1400x600" "auto" "1400" }}
|
||||||
|
|
||||||
{{/* Initialize dimensions data - stripping unsupported file extension */}}
|
{{ if not $args.err }}
|
||||||
{{ $config := "dimensions" }}
|
{{/* Initialize dimensions data - stripping unsupported file extension */}}
|
||||||
{{ with index site.Params "dam" }}{{ with index . "dimensions" }}{{ $config = . }}{{ end }}{{ end }}
|
{{ $config := "dimensions" }}
|
||||||
{{ $config = path.Join (path.Dir $config) (path.BaseName $config) }}
|
{{ with index site.Params "dam" }}{{ with index . "dimensions" }}{{ $config = . }}{{ end }}{{ end }}
|
||||||
|
{{ $config = path.Join (path.Dir $config) (path.BaseName $config) }}
|
||||||
|
|
||||||
{{ with index site.Data $config }}
|
{{ with index site.Data $config }}
|
||||||
{{ $matches := first 1 (where . "ratio" $args.ratio) }}
|
{{ $matches := first 1 (where . "ratio" $args.ratio) }}
|
||||||
{{ if eq ($matches | len) 1 }}
|
{{ if eq ($matches | len) 1 }}
|
||||||
{{ $dim = (index $matches 0).dimensions }}
|
{{ $dim = (index $matches 0).dimensions }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if not $dim }}{{ $dim = slice (index $default $args.ratio) }}{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if not $dim }}{{ $dim = slice (index $default $args.ratio) }}{{ end }}
|
|
||||||
|
|
||||||
{{ return $dim }}
|
{{ return $dim }}
|
||||||
|
@@ -83,7 +83,7 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{ warnf "Unsupported media type '%s': %q" (string $res.MediaType) $src -}}
|
{{ warnf "Unsupported media type '%s': %q" (string $res.MediaType) $src -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else if $args.ratio }}
|
{{ else if and $args.ratio (ne $args.ratio "auto") }}
|
||||||
{{ $transform = "fill" }}
|
{{ $transform = "fill" }}
|
||||||
{{ $dims = partial "assets/helpers/GetDimension.html" (dict "ratio" $args.ratio) }}
|
{{ $dims = partial "assets/helpers/GetDimension.html" (dict "ratio" $args.ratio) }}
|
||||||
{{ if not $dims }}{{ errorf "partial [assets/image.html] - Cannot find dimension data: %s" $args.ratio }}{{ end }}
|
{{ if not $dims }}{{ errorf "partial [assets/image.html] - Cannot find dimension data: %s" $args.ratio }}{{ end }}
|
||||||
@@ -154,6 +154,7 @@
|
|||||||
"anchor" $args.anchor
|
"anchor" $args.anchor
|
||||||
"transform" $transform
|
"transform" $transform
|
||||||
"hook" $hook
|
"hook" $hook
|
||||||
|
"include-width" true
|
||||||
) -}}
|
) -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -101,6 +101,7 @@
|
|||||||
"link-type" (or $args.linkType $args.type)
|
"link-type" (or $args.linkType $args.type)
|
||||||
"class" "hero-title"
|
"class" "hero-title"
|
||||||
"arrangement" $arrangement
|
"arrangement" $arrangement
|
||||||
|
"justify" $args.justify
|
||||||
) }}
|
) }}
|
||||||
|
|
||||||
{{ if eq $args.orientation "stacked" }}
|
{{ if eq $args.orientation "stacked" }}
|
||||||
|
@@ -6,16 +6,16 @@
|
|||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{/* Initialize arguments */}}
|
{{/* Initialize arguments */}}
|
||||||
{{ $args := partial "utilities/InitArgs.html" (dict "structure" "nav-item" "args" . "group" "partial") }}
|
{{- $args := partial "utilities/InitArgs.html" (dict "structure" "nav-item" "args" . "group" "partial") -}}
|
||||||
{{ 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" "assets/nav-item.html"
|
"partial" "assets/nav-item.html"
|
||||||
"warnid" "warn-invalid-arguments"
|
"warnid" "warn-invalid-arguments"
|
||||||
"msg" "Invalid arguments"
|
"msg" "Invalid arguments"
|
||||||
"details" ($args.errmsg | append $args.warnmsg)
|
"details" ($args.errmsg | append $args.warnmsg)
|
||||||
"file" page.File
|
"file" page.File
|
||||||
)}}
|
) -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
|
|
||||||
{{/* Initialize local arguments */}}
|
{{/* Initialize local arguments */}}
|
||||||
{{- $parentID := or $args.parentId $args.parentID -}}
|
{{- $parentID := or $args.parentId $args.parentID -}}
|
||||||
@@ -36,16 +36,16 @@
|
|||||||
"class" "hero-image"
|
"class" "hero-image"
|
||||||
"image-overlay" $args.imageOverlay
|
"image-overlay" $args.imageOverlay
|
||||||
) }}
|
) }}
|
||||||
{{ else }}
|
{{- else -}}
|
||||||
{{ $illustration = partial $args.hook (dict "page" $args.page "image" $args.illustration) }}
|
{{- $illustration = partial $args.hook (dict "page" $args.page "image" $args.illustration) -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
|
|
||||||
{{/* Main code */}}
|
{{/* Main code */}}
|
||||||
{{ if not $args.err }}
|
{{- if not $args.err -}}
|
||||||
{{ if eq $type "accordion" }}
|
{{- if eq $type "accordion" -}}
|
||||||
<div class="accordion-item{{ if $args.show }} show{{ end }}{{ with $args.class }} {{ . }}{{ end }}">
|
<div class="accordion-item{{ if $args.show }} show{{ end }}{{ with $args.class }} {{ . }}{{ end }}">
|
||||||
{{- with $title -}}
|
{{- with $title -}}
|
||||||
<h2 id="accordion-{{ $parentID }}-heading-{{ $args.id }}" class="accordion-header m-0" >
|
<h2 id="accordion-{{ $parentID }}-heading-{{ $args.id }}" class="accordion-header m-0">
|
||||||
<button
|
<button
|
||||||
class="accordion-button collapsed {{ if $args.disabled }} text-secondary{{ end }}"
|
class="accordion-button collapsed {{ if $args.disabled }} text-secondary{{ end }}"
|
||||||
type="button"
|
type="button"
|
||||||
@@ -55,14 +55,14 @@
|
|||||||
aria-controls="accordion-{{ $parentID }}-item-{{ $args.id }}"
|
aria-controls="accordion-{{ $parentID }}-item-{{ $args.id }}"
|
||||||
{{ if $args.disabled }} disabled{{ end }}
|
{{ if $args.disabled }} disabled{{ end }}
|
||||||
>
|
>
|
||||||
{{ if $illustration }}
|
{{- if $illustration -}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-3 col-sm-2 my-auto">{{ $illustration | safeHTML }}</div>
|
<div class="col-3 col-sm-2 my-auto">{{ $illustration | safeHTML }}</div>
|
||||||
<div class="col-9 col-sm-10 fs-6 fs-sm-5 my-auto">{{ . }}</div>
|
<div class="col-9 col-sm-10 fs-6 fs-sm-5 my-auto">{{ . }}</div>
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{- else }}
|
||||||
{{ . }}
|
{{ . }}
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -75,19 +75,16 @@
|
|||||||
<div class="accordion-body">{{ $args.body | $args.page.RenderString | safeHTML }}</div>
|
<div class="accordion-body">{{ $args.body | $args.page.RenderString | safeHTML }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{- else -}}
|
||||||
<div
|
<div
|
||||||
id="{{ $parentID }}-{{ $args.id }}"
|
id="{{ $parentID }}-{{ $args.id }}"
|
||||||
class="tab-pane{{ if $args.show }} active {{ if $args.fade }}show{{ end }}{{ end }} {{ if $args.fade }}fade{{ end }}{{ with $args.class }} {{ . }}{{ end }}"
|
class="tab-pane{{ if $args.show }} active{{ if $args.fade }} show{{ end }}{{ end }}{{ if $args.fade }} fade{{ end }}{{ with $args.class }} {{ . }}{{ end }}"
|
||||||
role="tabpanel"
|
role="tabpanel"
|
||||||
aria-labelledby="{{ $parentID }}-btn-{{ $args.id }}"
|
aria-labelledby="{{ $parentID }}-btn-{{ $args.id }}"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
data-header="{{ $title }}"
|
|
||||||
{{ if $args.show }}data-show-id="{{ $args.id }}"{{ end }}
|
|
||||||
data-has-content="{{ gt (len $args.body) 0 }}"
|
data-has-content="{{ gt (len $args.body) 0 }}"
|
||||||
{{ if $args.disabled }} data-disabled-id="{{ $args.id }}"{{ end }}
|
|
||||||
>
|
>
|
||||||
{{ $args.body | $args.page.RenderString | safeHTML }}
|
{{ $args.body | $args.page.RenderString | safeHTML }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ end }}
|
{{- end -}}
|
@@ -42,7 +42,7 @@
|
|||||||
"class" $args.class
|
"class" $args.class
|
||||||
"body" (or $item.Description $item.Content)
|
"body" (or $item.Description $item.Content)
|
||||||
"show" false
|
"show" false
|
||||||
"disabled" false
|
"disabled" $item.disabled
|
||||||
"item_type" "accordion"
|
"item_type" "accordion"
|
||||||
"illustration" (partial "utilities/GetIllustration.html" (dict "item" $item "size" "col-12"))
|
"illustration" (partial "utilities/GetIllustration.html" (dict "item" $item "size" "col-12"))
|
||||||
)
|
)
|
||||||
@@ -64,11 +64,14 @@
|
|||||||
{{- range $args.list }}{{ $titles = $titles | append .Title }} {{ end -}}
|
{{- range $args.list }}{{ $titles = $titles | append .Title }} {{ end -}}
|
||||||
{{- if reflect.IsSlice $args.navTitles }}{{ $titles = $titles | append $args.navTitles }}{{ end -}}
|
{{- if reflect.IsSlice $args.navTitles }}{{ $titles = $titles | append $args.navTitles }}{{ end -}}
|
||||||
{{- range $index, $item := $titles -}}
|
{{- range $index, $item := $titles -}}
|
||||||
{{ $show := eq $index 0}}
|
{{ $itemID := printf "%s-btn-%d" $args.id $index -}}
|
||||||
|
{{- $show := eq $index 0 -}}
|
||||||
|
{{- if $args.navShow }}{{ $show = eq $args.navShow $itemID }}{{ end -}}
|
||||||
|
{{- $disabled := in $args.navDisabled $itemID -}}
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<button
|
<button
|
||||||
class="nav-link {{ if not $wrap }} text-nowrap{{ end }}{{ if $show }} active{{ end }}"
|
class="nav-link{{ if not $wrap }} text-nowrap{{ end }}{{ if $show }} active{{ end }}{{ if $disabled }} disabled{{ end }}"
|
||||||
id="nav-{{ $id }}-btn-{{ $index }}"
|
id="{{ $itemID }}"
|
||||||
data-bs-toggle="pill"
|
data-bs-toggle="pill"
|
||||||
data-bs-target="#{{ $id }}-{{ $index }}"
|
data-bs-target="#{{ $id }}-{{ $index }}"
|
||||||
type="button"
|
type="button"
|
||||||
@@ -82,7 +85,7 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="tab-content {{ if eq $type "tabs" }}border border-bottom-0 p-3{{ else if $args.vertical }}ms-3{{ else }}mt-3{{ end }}">
|
<div class="tab-content {{ if eq $type "tabs" }}border p-3{{ else if $args.vertical }}ms-3{{ else }}mt-3{{ end }}">
|
||||||
{{- range $index, $item := $args.list -}}
|
{{- range $index, $item := $args.list -}}
|
||||||
{{- $header := $item.Title -}}
|
{{- $header := $item.Title -}}
|
||||||
{-{ $body := $item.Content -}}
|
{-{ $body := $item.Content -}}
|
||||||
|
@@ -26,8 +26,9 @@
|
|||||||
{{- $preheading := $args.heading.preheading }}
|
{{- $preheading := $args.heading.preheading }}
|
||||||
{{- $title := $args.heading.title }}
|
{{- $title := $args.heading.title }}
|
||||||
{{- $width := $args.heading.width | default 12 -}}
|
{{- $width := $args.heading.width | default 12 -}}
|
||||||
|
{{- $width = cond (lt $width 12) (printf "col-12 col-%s-%d" $breakpoint.current $width) "" }}
|
||||||
{{ if and (not $preheading) $args.useSection }}{{ $preheading = page.CurrentSection.Name }}{{ end }}
|
{{ if and (not $preheading) $args.useSection }}{{ $preheading = page.CurrentSection.Name }}{{ end }}
|
||||||
|
{{ $justify := cond (eq $args.justify "start") "" (cond (eq $args.justify "end") "me-0" "mx-auto") }}
|
||||||
|
|
||||||
{{ if site.Params.main.titleCase }}
|
{{ if site.Params.main.titleCase }}
|
||||||
{{ $preheading = title $preheading }}
|
{{ $preheading = title $preheading }}
|
||||||
@@ -85,7 +86,7 @@
|
|||||||
}}
|
}}
|
||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
<div class="text-{{ $args.heading.align }}{{ with $args.class }} {{ . }}{{ end }}{{ if lt $width 12 }} col-12 col-{{ $breakpoint.current }}-{{ $width }}{{ end }} py-{{ $padding.y }}">
|
<div class="text-{{ $args.heading.align }}{{ with $justify }} {{ . }}{{ end }}{{ with $args.class }} {{ . }}{{ end }}{{ with $width }} {{ . }}{{ end }} py-{{ $padding.y }}">
|
||||||
{{ if and $preheading (eq $arrangement "first") }}
|
{{ if and $preheading (eq $arrangement "first") }}
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@@ -45,7 +45,7 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<div class="py-3 text-body-secondary hstack gap-1">
|
<div class="py-3 text-body-secondary hstack gap-1">
|
||||||
{{ T "shareLink" "" }}
|
{{ T "shareLink" " " }}
|
||||||
{{- range $index, $item := $list -}}
|
{{- range $index, $item := $list -}}
|
||||||
{{- $url := $item.url -}}
|
{{- $url := $item.url -}}
|
||||||
{{- $url = replace $url "{url}" $page.Permalink -}}
|
{{- $url = replace $url "{url}" $page.Permalink -}}
|
||||||
|
@@ -104,6 +104,7 @@
|
|||||||
"links" $args.links
|
"links" $args.links
|
||||||
"link-type" (or $args.linkType $args.type)
|
"link-type" (or $args.linkType $args.type)
|
||||||
"arrangement" $arrangement
|
"arrangement" $arrangement
|
||||||
|
"justify" $args.justify
|
||||||
) }}
|
) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@@ -33,10 +33,6 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{- $thumbnail = $page.Params.Thumbnail -}}
|
{{- $thumbnail = $page.Params.Thumbnail -}}
|
||||||
{{ if or $page.Params.photoCredits $page.Params.photoSource }}
|
|
||||||
{{ warnf "DEPRECATED: frontmatter variables `photoCredits` and `photoSource` have been deprecated in release v0.18: %s" $page.RelPermalink }}
|
|
||||||
{{ end }}
|
|
||||||
{{- if and $page.Params.photoCredits $page.Params.PhotoSource }}{{ $credits = printf (T "photoFull") $page.Params.photoCredits $page.Params.PhotoSource }}{{ end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ if $thumbnail -}}
|
{{ if $thumbnail -}}
|
@@ -1,20 +0,0 @@
|
|||||||
{{- /* Define main padding size */ -}}
|
|
||||||
{{- $defaultY := 5 -}}
|
|
||||||
{{- $defaultX := 5 -}}
|
|
||||||
{{- $permitted := slice 0 1 2 3 4 5 }}
|
|
||||||
{{- $paddingX := $defaultX -}}
|
|
||||||
{{- if isset site.Params.main.padding "x" }}{{ $paddingX = site.Params.main.padding.x }}{{ end -}}
|
|
||||||
{{- $paddingY := $defaultY -}}
|
|
||||||
{{- if isset site.Params.main.padding "y" }}{{ $paddingY = site.Params.main.padding.y }}{{ end -}}
|
|
||||||
|
|
||||||
{{- if not (in $permitted $paddingX) -}}
|
|
||||||
{{- warnf "layout [_default/baseof.html] - Invalid value for param 'padding.x': %d" $paddingX -}}
|
|
||||||
{{- $paddingX = $defaultX -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- if not (in $permitted $paddingY) -}}
|
|
||||||
{{- warnf "layout [_default/baseof.html] - Invalid value for param 'padding.y': %d" $paddingY -}}
|
|
||||||
{{- $paddingY = $defaultY -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- return (dict "x" $paddingX "y" $paddingY) -}}
|
|
@@ -39,6 +39,7 @@
|
|||||||
"breadcrumb" $breadcrumb
|
"breadcrumb" $breadcrumb
|
||||||
"background" (dict "backdrop" $page.Site.Params.modules.bookshop.hero.backdrop)
|
"background" (dict "backdrop" $page.Site.Params.modules.bookshop.hero.backdrop)
|
||||||
"overlay-mode" $page.Site.Params.modules.bookshop.hero.overlayMode
|
"overlay-mode" $page.Site.Params.modules.bookshop.hero.overlayMode
|
||||||
|
"justify" "start"
|
||||||
)}}
|
)}}
|
||||||
|
|
||||||
{{ if eq $page.Kind "section" }}
|
{{ if eq $page.Kind "section" }}
|
||||||
@@ -50,6 +51,7 @@
|
|||||||
"padding" "0"
|
"padding" "0"
|
||||||
"paginate" true
|
"paginate" true
|
||||||
"scroll" false
|
"scroll" false
|
||||||
|
"justify" "start"
|
||||||
)}}
|
)}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@@ -26,27 +26,27 @@
|
|||||||
{{- $class := partial "utilities/GetArgParent" (dict "page" . "arg" "class" "merge" true) -}}
|
{{- $class := partial "utilities/GetArgParent" (dict "page" . "arg" "class" "merge" true) -}}
|
||||||
{{- $color := partial "utilities/GetArgParent" (dict "page" . "arg" "color") -}}
|
{{- $color := partial "utilities/GetArgParent" (dict "page" . "arg" "color") -}}
|
||||||
{{- $description := trim .Inner " \r\n" | .Page.RenderString | safeHTML -}}
|
{{- $description := trim .Inner " \r\n" | .Page.RenderString | safeHTML -}}
|
||||||
{{- $footer := partial "utilities/GetArgParent" (dict "page" . "arg" "footer-style") | partial "utilities/GetArgParent" (dict "page" . "arg" "footer") | default "none" -}}
|
{{- $footer := or (partial "utilities/GetArgParent" (dict "page" . "arg" "footer-style")) (partial "utilities/GetArgParent" (dict "page" . "arg" "footer")) -}}
|
||||||
{{- $gutter := partial "utilities/GetArgParent" (dict "page" . "arg" "gutter") | default "0" -}}
|
{{- $gutter := partial "utilities/GetArgParent" (dict "page" . "arg" "gutter") -}}
|
||||||
{{- $header := partial "utilities/GetArgParent" (dict "page" . "arg" "header-style") | partial "utilities/GetArgParent" (dict "page" . "arg" "header") | default "full" -}}
|
{{- $header := or (partial "utilities/GetArgParent" (dict "page" . "arg" "header-style")) (partial "utilities/GetArgParent" (dict "page" . "arg" "header")) -}}
|
||||||
{{- $icon := .Get "icon" -}}
|
{{- $icon := .Get "icon" -}}
|
||||||
{{- $iconRounded := partial "utilities/GetArgParent" (dict "page" . "arg" "icon-rounded") | partial "utilities/GetArgParent" (dict "page" . "arg" "iconRounded") | default false -}}
|
{{- $iconRounded := or (partial "utilities/GetArgParent" (dict "page" . "arg" "icon-rounded")) (partial "utilities/GetArgParent" (dict "page" . "arg" "iconRounded")) -}}
|
||||||
{{- $align := partial "utilities/GetArgParent" (dict "page" . "arg" "align") | default "start" -}}
|
{{- $align := partial "utilities/GetArgParent" (dict "page" . "arg" "align") -}}
|
||||||
{{- $style := partial "utilities/GetArgParent" (dict "page" . "arg" "icon-style") | partial "utilities/GetArgParent" (dict "page" . "arg" "style") | default "" -}}
|
{{- $style := or (partial "utilities/GetArgParent" (dict "page" . "arg" "icon-style")) (partial "utilities/GetArgParent" (dict "page" . "arg" "style")) -}}
|
||||||
{{- $subtle := partial "utilities/GetArgParent" (dict "page" . "arg" "subtle") | default false -}}
|
{{- $subtle := partial "utilities/GetArgParent" (dict "page" . "arg" "subtle") -}}
|
||||||
{{- $loading := .Get "loading" -}}
|
{{- $loading := .Get "loading" -}}
|
||||||
{{- $orientation := partial "utilities/GetArgParent" (dict "page" . "arg" "orientation") | default "stacked" -}}
|
{{- $orientation := partial "utilities/GetArgParent" (dict "page" . "arg" "orientation") -}}
|
||||||
{{- $padding := partial "utilities/GetArgParent" (dict "page" . "arg" "padding") | default 3 -}}
|
{{- $padding := partial "utilities/GetArgParent" (dict "page" . "arg" "padding") -}}
|
||||||
{{- $ratio := partial "utilities/GetArgParent" (dict "page" . "arg" "ratio") | default "" -}}
|
{{- $ratio := partial "utilities/GetArgParent" (dict "page" . "arg" "ratio") -}}
|
||||||
{{- $page := .Page -}}
|
{{- $page := .Page -}}
|
||||||
{{- $path := .Get "path" -}}
|
{{- $path := .Get "path" -}}
|
||||||
{{- $thumbnail := .Get "thumbnail" -}}
|
{{- $thumbnail := .Get "thumbnail" -}}
|
||||||
{{- $anchor := .Get "anchor" -}}
|
{{- $anchor := .Get "anchor" -}}
|
||||||
{{- $title := .Get "title" -}}
|
{{- $title := .Get "title" -}}
|
||||||
{{- $button := partial "utilities/GetArgParent" (dict "page" . "arg" "button") | default false -}}
|
{{- $button := partial "utilities/GetArgParent" (dict "page" . "arg" "button") -}}
|
||||||
{{- $linkType := partial "utilities/GetArgParent" (dict "page" . "arg" "link-type") | partial "utilities/GetArgParent" (dict "page" . "arg" "buttonType") | default "" -}}
|
{{- $linkType := or (partial "utilities/GetArgParent" (dict "page" . "arg" "link-type")) (partial "utilities/GetArgParent" (dict "page" . "arg" "buttonType")) -}}
|
||||||
{{- $cols := partial "utilities/GetArgParent" (dict "page" . "arg" "cols") | default 3 -}}
|
{{- $cols := partial "utilities/GetArgParent" (dict "page" . "arg" "cols") -}}
|
||||||
{{- $scroll := partial "utilities/GetArgParent" (dict "page" . "arg" "scroll") | default false -}}
|
{{- $scroll := partial "utilities/GetArgParent" (dict "page" . "arg" "scroll") -}}
|
||||||
{{- $wrapper := "" -}}
|
{{- $wrapper := "" -}}
|
||||||
|
|
||||||
{{/* Override arguments */}}
|
{{/* Override arguments */}}
|
||||||
@@ -66,7 +66,6 @@
|
|||||||
{{ $wrapper = printf "card-block-%d p-0" $cols }}
|
{{ $wrapper = printf "card-block-%d p-0" $cols }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{/* Main code */}}
|
{{/* Main code */}}
|
||||||
{{ if not $error -}}
|
{{ if not $error -}}
|
||||||
{{/* Render card */}}
|
{{/* Render card */}}
|
||||||
|
@@ -73,7 +73,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<div class="border-start border-end border-bottom mb-3">
|
<div class="border-start border-end border-bottom mb-3">
|
||||||
<div class="collapse multi-{{ $id }}{{ if $args.show }} show{{ end }} syntax-highlight" id="body-{{ $id }}">
|
<div class="collapse multi-{{ $id }}{{ if $args.show }} show{{ end }} syntax-highlight" id="body-{{ $id }}">
|
||||||
{{- highlight (trim $content "\r\n") $lang $args.options -}}
|
{{- highlight (trim $content "\r\n") $lang (or $args.highlightOptions $args.options) -}}
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse multi-{{ $id }}{{ if not $args.show }} show{{ end }} p-3" id="footer-{{ $id }}">
|
<div class="collapse multi-{{ $id }}{{ if not $args.show }} show{{ end }} p-3" id="footer-{{ $id }}">
|
||||||
<a class="nav-link active"
|
<a class="nav-link active"
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/* Initialize local arguments */}}
|
{{/* Initialize local arguments */}}
|
||||||
{{- $text := or $args.text $args.title }}
|
{{- $text := trim (or $args.text $args.title) " \n\r" }}
|
||||||
{{- if not $text -}}
|
{{- if not $text -}}
|
||||||
{{- partial "utilities/LogErr.html" (dict
|
{{- partial "utilities/LogErr.html" (dict
|
||||||
"partial" "shortcodes/kbd.html"
|
"partial" "shortcodes/kbd.html"
|
||||||
@@ -36,6 +36,6 @@
|
|||||||
{{/* Main code */}}
|
{{/* Main code */}}
|
||||||
{{- if not $error }}
|
{{- if not $error }}
|
||||||
<kbd {{ if or $args.color $args.class }}class="{{ with $args.color }}text-bg-{{ . }} {{ end }}{{ $args.class }}"{{ end }}>
|
<kbd {{ if or $args.color $args.class }}class="{{ with $args.color }}text-bg-{{ . }} {{ end }}{{ $args.class }}"{{ end }}>
|
||||||
{{ $text | plainify }}
|
{{- $text -}}
|
||||||
</kbd>
|
</kbd>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
@@ -30,6 +30,8 @@
|
|||||||
{{- if isset .Parent.Params "fade" }}{{ $parentFade = partial "utilities/CastBool.html" (.Parent.Get "fade") }}{{ end -}}
|
{{- if isset .Parent.Params "fade" }}{{ $parentFade = partial "utilities/CastBool.html" (.Parent.Get "fade") }}{{ end -}}
|
||||||
{{- $fade = or $fade $parentFade -}}
|
{{- $fade = or $fade $parentFade -}}
|
||||||
{{- $title := or $args.title $args.header -}}
|
{{- $title := or $args.title $args.header -}}
|
||||||
|
{{- $itemID := printf "%s-btn-%d" $parent $id }}
|
||||||
|
{{- $disabledID := cond $args.disabled $itemID "" }}
|
||||||
{{- $body := trim .Inner " \r\n" -}}
|
{{- $body := trim .Inner " \r\n" -}}
|
||||||
{{- $current := "" -}}
|
{{- $current := "" -}}
|
||||||
|
|
||||||
@@ -49,15 +51,19 @@
|
|||||||
|
|
||||||
{{- $current := .Parent.Scratch.Get "inner" -}}
|
{{- $current := .Parent.Scratch.Get "inner" -}}
|
||||||
{{- $titles := .Parent.Scratch.Get "inner-title" -}}
|
{{- $titles := .Parent.Scratch.Get "inner-title" -}}
|
||||||
|
{{- $disabled := .Parent.Scratch.Get "inner-disabled" -}}
|
||||||
|
{{- if $args.show }}{{ .Parent.Scratch.Set "inner-show" $itemID }}{{ end -}}
|
||||||
{{- if $current -}}
|
{{- if $current -}}
|
||||||
{{- .Parent.Scratch.Set "inner" (print $current $output) -}}
|
{{- .Parent.Scratch.Set "inner" (print $current $output) -}}
|
||||||
{{- .Parent.Scratch.Set "inner-title" ($titles | append $title) -}}
|
{{- .Parent.Scratch.Set "inner-title" ($titles | append $title) -}}
|
||||||
|
{{- .Parent.Scratch.Set "inner-disabled" ($disabled | append $disabledID) -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- .Parent.Scratch.Set "inner" $output -}}
|
{{- .Parent.Scratch.Set "inner" $output -}}
|
||||||
{{- .Parent.Scratch.Set "inner-title" (slice $title) -}}
|
{{- .Parent.Scratch.Set "inner-title" (slice $title) -}}
|
||||||
|
{{- .Parent.Scratch.Set "inner-disabled" (slice $disabledID) -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- $alternative := partial "assets/nav-item" (dict
|
{{- $alternative := partial "assets/nav-item.html" (dict
|
||||||
"page" .Page
|
"page" .Page
|
||||||
"id" $id
|
"id" $id
|
||||||
"parent-id" $parent
|
"parent-id" $parent
|
||||||
|
@@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
{{- $inner := .Scratch.Get "inner" -}}
|
{{- $inner := .Scratch.Get "inner" -}}
|
||||||
{{- $innerTitles := .Scratch.Get "inner-title" -}}
|
{{- $innerTitles := .Scratch.Get "inner-title" -}}
|
||||||
|
{{- $innerDisabled := .Scratch.Get "inner-disabled" -}}
|
||||||
|
{{- $innerShow := .Scratch.Get "inner-show" -}}
|
||||||
{{- $input := trim .Inner " \r\n" -}}
|
{{- $input := trim .Inner " \r\n" -}}
|
||||||
{{- if $input -}}
|
{{- if $input -}}
|
||||||
{{- $input = replace $input "\n" "\n " -}}
|
{{- $input = replace $input "\n" "\n " -}}
|
||||||
@@ -33,6 +35,8 @@
|
|||||||
"list" $args.list
|
"list" $args.list
|
||||||
"nav-items" $inner
|
"nav-items" $inner
|
||||||
"nav-titles" $innerTitles
|
"nav-titles" $innerTitles
|
||||||
|
"nav-disabled" $innerDisabled
|
||||||
|
"nav-show" $innerShow
|
||||||
"tab-type" (or $args.tabType $args.type)
|
"tab-type" (or $args.tabType $args.type)
|
||||||
"vertical" $args.vertical
|
"vertical" $args.vertical
|
||||||
"word-wrap" $args.wordWrap
|
"word-wrap" $args.wordWrap
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
{{- partial "single/thumbnail.html" (dict "page" . "wrapper" "mb-5") -}}
|
{{- partial "page/thumbnail.html" (dict "page" . "wrapper" "mb-5") -}}
|
||||||
|
|
||||||
{{ partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }}
|
{{ partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }}
|
||||||
|
@@ -27,9 +27,10 @@
|
|||||||
{{ if .Date }}
|
{{ if .Date }}
|
||||||
{{ $lastmodstr := (partial "utilities/date.html" (dict "date" .Lastmod "format" "long")) -}}
|
{{ $lastmodstr := (partial "utilities/date.html" (dict "date" .Lastmod "format" "long")) -}}
|
||||||
{{ $datestr := (partial "utilities/date.html" (dict "date" .Date "format" "long")) -}}
|
{{ $datestr := (partial "utilities/date.html" (dict "date" .Date "format" "long")) -}}
|
||||||
|
{{ if gt .Lastmod .Date }}
|
||||||
|
{{ $lastmodstr | i18n "lastModified" }}
|
||||||
|
{{ else }}
|
||||||
{{ $datestr | i18n "postedOnDate" -}}
|
{{ $datestr | i18n "postedOnDate" -}}
|
||||||
{{ if eq $metadata "full" }}
|
|
||||||
{{ if ne $datestr $lastmodstr -}} ({{ $lastmodstr | i18n "lastModified" }}){{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
•
|
•
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
{{- $breakpoint := $.Scratch.Get "breakpoint" -}}
|
{{- $breakpoint := $.Scratch.Get "breakpoint" -}}
|
||||||
{{- $sidebar := partial "body/sidebar" . -}}
|
{{- $sidebar := partial "page/sidebar" . -}}
|
||||||
{{- $toc := partial "body/panel-toc" . -}}
|
{{- $toc := partial "page/panel-toc" . -}}
|
||||||
|
|
||||||
{{ with $sidebar }}
|
{{ with $sidebar }}
|
||||||
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvass-sidebar" aria-labelledby="offcanvas-label">
|
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvass-sidebar" aria-labelledby="offcanvas-label">
|
||||||
|
40
netlify.toml
40
netlify.toml
@@ -4,12 +4,12 @@
|
|||||||
publish = 'exampleSite/public'
|
publish = 'exampleSite/public'
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
DART_SASS_VERSION = '1.78.0'
|
DART_SASS_VERSION = '1.89.2'
|
||||||
HUGO_ENABLEGITINFO = 'true'
|
HUGO_ENABLEGITINFO = 'true'
|
||||||
HUGO_ENV = 'production'
|
HUGO_ENV = 'production'
|
||||||
HUGO_VERSION = '0.134.1'
|
HUGO_VERSION = '0.147.9'
|
||||||
NODE_VERSION = '20.17.0'
|
NODE_VERSION = '22.13.0'
|
||||||
NPM_VERSION = '10.8.2'
|
NPM_VERSION = '10.9.2'
|
||||||
|
|
||||||
[context]
|
[context]
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
@@ -39,17 +39,17 @@
|
|||||||
Access-Control-Allow-Origin = '*'
|
Access-Control-Allow-Origin = '*'
|
||||||
Content-Security-Policy = """
|
Content-Security-Policy = """
|
||||||
base-uri 'self'; \
|
base-uri 'self'; \
|
||||||
connect-src 'self' *.cookieyes.com cdn-cookieyes.com *.google-analytics.com *.analytics.google.com *.googletagmanager.com; \
|
connect-src 'self' *.analytics.google.com *.google.com *.google-analytics.com *.googletagmanager.com; \
|
||||||
default-src 'none'; \
|
default-src 'none'; \
|
||||||
font-src 'self' fonts.gstatic.com; \
|
font-src 'self' fonts.gstatic.com data:; \
|
||||||
form-action 'self'; \
|
form-action 'self'; \
|
||||||
frame-src player.cloudinary.com www.youtube-nocookie.com www.youtube.com player.vimeo.com; \
|
frame-src *.googletagmanager.com player.cloudinary.com www.youtube-nocookie.com www.youtube.com player.vimeo.com; \
|
||||||
img-src 'self' cdn-cookieyes.com *.google-analytics.com *.googletagmanager.com data: *.imgix.net *.imagekit.io *.cloudinary.com i.ytimg.com tile.openstreetmap.org i.vimeocdn.com; \
|
img-src 'self' *.google-analytics.com *.googletagmanager.com googletagmanager.com ssl.gstatic.com www.gstatic.com data: *.imgix.net *.imagekit.io *.cloudinary.com i.ytimg.com tile.openstreetmap.org i.vimeocdn.com; \
|
||||||
manifest-src 'self'; \
|
manifest-src 'self'; \
|
||||||
media-src 'self'; \
|
media-src 'self'; \
|
||||||
object-src 'none'; \
|
object-src 'none'; \
|
||||||
script-src 'self' cdn-cookieyes.com *.google-analytics.com *.googletagmanager.com player.vimeo.com; \
|
script-src 'self' *.google-analytics.com *.googletagmanager.com *.analytics.google.com googletagmanager.com tagmanager.google.com player.vimeo.com; \
|
||||||
style-src 'self' 'unsafe-inline' www.youtube.com; \
|
style-src 'self' googletagmanager.com tagmanager.google.com fonts.googleapis.com www.youtube.com; \
|
||||||
"""
|
"""
|
||||||
Permissions-Policy = 'geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=() '
|
Permissions-Policy = 'geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(), payment=() '
|
||||||
Referrer-Policy = 'strict-origin'
|
Referrer-Policy = 'strict-origin'
|
||||||
@@ -59,23 +59,3 @@
|
|||||||
X-XSS-Protection = '1; mode=block'
|
X-XSS-Protection = '1; mode=block'
|
||||||
cache-control = 'max-age=0, no-cache, no-store, must-revalidate '
|
cache-control = 'max-age=0, no-cache, no-store, must-revalidate '
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = '/fr/*'
|
|
||||||
status = 404
|
|
||||||
to = '/fr/404.html'
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = '/nl/*'
|
|
||||||
status = 404
|
|
||||||
to = '/nl/404.html'
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = '/en/*'
|
|
||||||
status = 404
|
|
||||||
to = '/en/404.html'
|
|
||||||
|
|
||||||
[[redirects]]
|
|
||||||
from = '/*'
|
|
||||||
status = 404
|
|
||||||
to = '/en/404.html'
|
|
||||||
|
|
||||||
|
7680
package-lock.json
generated
7680
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
50
package.json
50
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "1.0.0-beta",
|
"version": "0.0.0-semantically-released",
|
||||||
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"hugo",
|
"hugo",
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
"documentation"
|
"documentation"
|
||||||
],
|
],
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"private": true,
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"registry": "https://registry.npmjs.org/"
|
"registry": "https://registry.npmjs.org/"
|
||||||
@@ -28,7 +29,7 @@
|
|||||||
"build:example": "npm run -s prebuild && hugo --gc --minify -s exampleSite",
|
"build:example": "npm run -s prebuild && hugo --gc --minify -s exampleSite",
|
||||||
"build:example:ci": "npm run -s prebuild && hugo --gc --minify -s exampleSite -e ci",
|
"build:example:ci": "npm run -s prebuild && hugo --gc --minify -s exampleSite -e ci",
|
||||||
"build:debug": "hugo -e debug --debug",
|
"build:debug": "hugo -e debug --debug",
|
||||||
"build:headers": "hugo --renderSegments headers -d prebuild && cpy prebuild/server.toml config/_default/ --flat",
|
"build:headers": "hugo --renderSegments headers -d prebuild-headers -e headers && cpy prebuild-headers/netlify.toml ./ --flat && cpy prebuild-headers/server.toml config/_default/ --flat",
|
||||||
"build:example:headers": "hugo -s exampleSite --renderSegments headers -d prebuild && cpy exampleSite/prebuild/netlify.toml ./ --flat && cpy exampleSite/prebuild/server.toml exampleSite/config/_default/ --flat",
|
"build:example:headers": "hugo -s exampleSite --renderSegments headers -d prebuild && cpy exampleSite/prebuild/netlify.toml ./ --flat && cpy exampleSite/prebuild/server.toml exampleSite/config/_default/ --flat",
|
||||||
"build:preview": "npm run build -D -F",
|
"build:preview": "npm run build -D -F",
|
||||||
"clean:public": "rimraf public exampleSite/public",
|
"clean:public": "rimraf public exampleSite/public",
|
||||||
@@ -44,6 +45,7 @@
|
|||||||
"test": "npm run -s lint",
|
"test": "npm run -s lint",
|
||||||
"env": "hugo env",
|
"env": "hugo env",
|
||||||
"precheck": "npm version",
|
"precheck": "npm version",
|
||||||
|
"prepare": "node .husky/install.mjs",
|
||||||
"check": "hugo version",
|
"check": "hugo version",
|
||||||
"create:syntax": "npm-run-all update:syntax:**",
|
"create:syntax": "npm-run-all update:syntax:**",
|
||||||
"update:syntax:light1": "hugo gen chromastyles --style=github > ./assets/scss/components/_syntax-light.scss",
|
"update:syntax:light1": "hugo gen chromastyles --style=github > ./assets/scss/components/_syntax-light.scss",
|
||||||
@@ -73,13 +75,20 @@
|
|||||||
"autoprefixer": "^10.4.21",
|
"autoprefixer": "^10.4.21",
|
||||||
"cssnano": "^7.0.7",
|
"cssnano": "^7.0.7",
|
||||||
"cssnano-preset-advanced": "^7.0.7",
|
"cssnano-preset-advanced": "^7.0.7",
|
||||||
"hugo-bin": "0.144.8",
|
"hugo-bin": "0.144.9",
|
||||||
"purgecss-whitelister": "^2.4.0"
|
"purgecss-whitelister": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@commitlint/cli": "^19.8.1",
|
||||||
|
"@commitlint/config-conventional": "^19.8.1",
|
||||||
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
|
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
|
||||||
|
"@semantic-release/exec": "^7.1.0",
|
||||||
|
"@semantic-release/git": "^10.0.1",
|
||||||
|
"commitizen": "^4.3.1",
|
||||||
"cpy-cli": "^5.0.0",
|
"cpy-cli": "^5.0.0",
|
||||||
"eslint": "^9.29.0",
|
"cz-conventional-changelog": "^3.3.0",
|
||||||
|
"eslint": "^9.30.0",
|
||||||
|
"husky": "^9.1.7",
|
||||||
"markdownlint-cli2": "^0.18.1",
|
"markdownlint-cli2": "^0.18.1",
|
||||||
"neostandard": "^0.12.1",
|
"neostandard": "^0.12.1",
|
||||||
"netlify-plugin-hugo-cache-resources": "^0.2.1",
|
"netlify-plugin-hugo-cache-resources": "^0.2.1",
|
||||||
@@ -87,8 +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",
|
||||||
"shx": "^0.4.0",
|
"shx": "^0.4.0",
|
||||||
"stylelint": "^16.20.0",
|
"stylelint": "^16.21.0",
|
||||||
"stylelint-config-standard-scss": "^15.0.1"
|
"stylelint-config-standard-scss": "^15.0.1"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
@@ -98,5 +108,35 @@
|
|||||||
},
|
},
|
||||||
"hugo-bin": {
|
"hugo-bin": {
|
||||||
"buildTags": "extended"
|
"buildTags": "extended"
|
||||||
|
},
|
||||||
|
"release": {
|
||||||
|
"branches": "main",
|
||||||
|
"plugins": [
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
"@semantic-release/release-notes-generator",
|
||||||
|
"@semantic-release/github",
|
||||||
|
[
|
||||||
|
"@semantic-release/exec",
|
||||||
|
{
|
||||||
|
"prepare": "npm install"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@semantic-release/git",
|
||||||
|
{
|
||||||
|
"assets": [
|
||||||
|
"dist",
|
||||||
|
"package.json",
|
||||||
|
"package-lock.json"
|
||||||
|
],
|
||||||
|
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"commitizen": {
|
||||||
|
"path": "./node_modules/cz-conventional-changelog"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user