mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-08 10:34:26 +00:00
Compare commits
140 Commits
v0.23.0-be
...
v0.23.6
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1a585304f3 | ||
![]() |
05e1f58c1a | ||
![]() |
dda87bb14f | ||
![]() |
2bce17eb46 | ||
![]() |
5356483d71 | ||
![]() |
a465c23cb3 | ||
![]() |
26c2519c8b | ||
![]() |
8ee63e6a8b | ||
![]() |
c71895ffcf | ||
![]() |
e52ae48f28 | ||
![]() |
340f591c09 | ||
![]() |
e873fed3f2 | ||
![]() |
b60dc747c6 | ||
![]() |
996d31ca5b | ||
![]() |
6bbe0a166d | ||
![]() |
48d500776a | ||
![]() |
4e3cfb2e86 | ||
![]() |
5361d1d182 | ||
![]() |
4a0d0aa896 | ||
![]() |
cab639f687 | ||
![]() |
2c4a905d36 | ||
![]() |
3119cf064b | ||
![]() |
a3b678e88b | ||
![]() |
e03b82a0d1 | ||
![]() |
546186670d | ||
![]() |
b02e9f864c | ||
![]() |
f7ba0acf96 | ||
![]() |
214856b97f | ||
![]() |
5410a0dc5f | ||
![]() |
a1049bce2c | ||
![]() |
660f2bce9f | ||
![]() |
065c0a0ab2 | ||
![]() |
61cb0c50da | ||
![]() |
c897cd3860 | ||
![]() |
184ccea8c2 | ||
![]() |
d5b8e6af8b | ||
![]() |
ff120808ad | ||
![]() |
ceaa91b511 | ||
![]() |
1f0ba55904 | ||
![]() |
37a97bf2a5 | ||
![]() |
109ccc1599 | ||
![]() |
cbdf348bd1 | ||
![]() |
d17079951c | ||
![]() |
a69402a205 | ||
![]() |
2b4472d9fe | ||
![]() |
6e9b54a5ff | ||
![]() |
10e3e5358e | ||
![]() |
3ff8eb8f14 | ||
![]() |
e4fa0716aa | ||
![]() |
fd3522eb54 | ||
![]() |
80d7c3e9cb | ||
![]() |
0df7bedbab | ||
![]() |
51cdae471f | ||
![]() |
ce79ef402e | ||
![]() |
d63c838799 | ||
![]() |
e209704acf | ||
![]() |
01d19609c4 | ||
![]() |
ee3bdfc9a0 | ||
![]() |
a0db71d3ff | ||
![]() |
fc40ee55c3 | ||
![]() |
2f61fcabf2 | ||
![]() |
9d30a98ff3 | ||
![]() |
b3c0b7a4e8 | ||
![]() |
3705aea23d | ||
![]() |
5a7f215604 | ||
![]() |
2608545104 | ||
![]() |
a78361ec9f | ||
![]() |
9b79092328 | ||
![]() |
41198b04be | ||
![]() |
c4684f0073 | ||
![]() |
063cabc610 | ||
![]() |
72304ff12e | ||
![]() |
d7e0aacd9a | ||
![]() |
3add028519 | ||
![]() |
1ef26ef98b | ||
![]() |
5d56f2bd01 | ||
![]() |
71c57b277b | ||
![]() |
38afd31cff | ||
![]() |
7a460ca0de | ||
![]() |
f3d5fef59d | ||
![]() |
10f1519c33 | ||
![]() |
aecb6d45ff | ||
![]() |
1c763939b9 | ||
![]() |
fbabf9c02c | ||
![]() |
d584761891 | ||
![]() |
65e85e5991 | ||
![]() |
ae665652ca | ||
![]() |
d5c494d510 | ||
![]() |
4760d5562a | ||
![]() |
455af2d04a | ||
![]() |
e13adaa5ca | ||
![]() |
cae4d7702d | ||
![]() |
ed6001f1bc | ||
![]() |
18e1b4032a | ||
![]() |
67b7871464 | ||
![]() |
1be67ff695 | ||
![]() |
8f3a4a425d | ||
![]() |
166010a3a1 | ||
![]() |
dd6f54cbbe | ||
![]() |
bc50cce9bb | ||
![]() |
100d1d9aa4 | ||
![]() |
56d5191734 | ||
![]() |
81e0a8ee80 | ||
![]() |
7af4a9c0f4 | ||
![]() |
769faa5877 | ||
![]() |
c1510e8dfe | ||
![]() |
632a29ed35 | ||
![]() |
04cf43eaf9 | ||
![]() |
34a25d9034 | ||
![]() |
7841145c72 | ||
![]() |
156ef8cb1f | ||
![]() |
3936dab5cf | ||
![]() |
aa5118a2ec | ||
![]() |
e8ff6841b2 | ||
![]() |
78d3fc96b3 | ||
![]() |
f4054126b3 | ||
![]() |
380363663c | ||
![]() |
3bb8b54286 | ||
![]() |
92975614b8 | ||
![]() |
f7a769d894 | ||
![]() |
4d8648720d | ||
![]() |
e9bbb411c0 | ||
![]() |
fcc6866980 | ||
![]() |
ce7e613017 | ||
![]() |
eb4f49c62b | ||
![]() |
084b8c30ad | ||
![]() |
a11085eb4b | ||
![]() |
f27b426089 | ||
![]() |
ddc2a16c68 | ||
![]() |
343a4856c3 | ||
![]() |
ba47834a9f | ||
![]() |
ebcf0633f1 | ||
![]() |
54307f7daa | ||
![]() |
f7903cec97 | ||
![]() |
78362323ed | ||
![]() |
8463bfa73b | ||
![]() |
cd3dd2ce9c | ||
![]() |
9966439c14 | ||
![]() |
59aca5c4c9 | ||
![]() |
1bff1e4aa8 |
2
.github/workflows/auto-merge.yml
vendored
2
.github/workflows/auto-merge.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Dependabot metadata
|
- name: Dependabot metadata
|
||||||
id: metadata
|
id: metadata
|
||||||
uses: dependabot/fetch-metadata@v1
|
uses: dependabot/fetch-metadata@v2
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
2
.github/workflows/mod-update.yml
vendored
2
.github/workflows/mod-update.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
|||||||
echo 'EOF' >> $GITHUB_OUTPUT
|
echo 'EOF' >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: gethinode-actions/create-pull-request@v5
|
uses: gethinode-actions/create-pull-request@v6
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.HUGO_MOD_PR }}
|
token: ${{ secrets.HUGO_MOD_PR }}
|
||||||
commit-message: 'fix: update Hugo module dependencies'
|
commit-message: 'fix: update Hugo module dependencies'
|
||||||
|
@@ -20,8 +20,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const setTheme = function (theme) {
|
const setTheme = function (theme) {
|
||||||
if (theme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
if (theme === 'auto') {
|
||||||
document.documentElement.setAttribute('data-bs-theme', 'dark')
|
document.documentElement.setAttribute('data-bs-theme', (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'))
|
||||||
} else {
|
} else {
|
||||||
document.documentElement.setAttribute('data-bs-theme', theme)
|
document.documentElement.setAttribute('data-bs-theme', theme)
|
||||||
}
|
}
|
||||||
|
@@ -51,8 +51,9 @@
|
|||||||
@include meta.load-css(theme/fonts);
|
@include meta.load-css(theme/fonts);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Import theme placeholder
|
// Import theme placeholders
|
||||||
|
@import "theme/base.scss";
|
||||||
@import "theme/theme.scss";
|
@import "theme/theme.scss";
|
||||||
|
|
||||||
// Import Bootstrap utilities API (mounted by core Bootstrap module)
|
// Import Bootstrap utilities API (mounted by core Bootstrap module)
|
||||||
@import "modules/bootstrap/utilities/api";
|
@import "modules/bootstrap/utilities/api";
|
||||||
|
@@ -44,17 +44,13 @@
|
|||||||
@import "helpers/colored-links.scss";
|
@import "helpers/colored-links.scss";
|
||||||
@import "helpers/display.scss";
|
@import "helpers/display.scss";
|
||||||
|
|
||||||
// TODO: include fonts with following statement in Dart Sass
|
|
||||||
// @if $import-fonts {
|
|
||||||
// @include meta.load-css(theme/fonts);
|
|
||||||
// }
|
|
||||||
|
|
||||||
{{ if (not (hasPrefix (lower site.Params.style.themeFontPath) "http")) }}
|
{{ if (not (hasPrefix (lower site.Params.style.themeFontPath) "http")) }}
|
||||||
@import "theme/fonts.scss";
|
@import "theme/fonts.scss";
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
// Import theme placeholder
|
// Import theme placeholders
|
||||||
|
@import "theme/base.scss";
|
||||||
@import "theme/theme.scss";
|
@import "theme/theme.scss";
|
||||||
|
|
||||||
// Import Bootstrap utilities API (mounted by core Bootstrap module)
|
// Import Bootstrap utilities API (mounted by core Bootstrap module)
|
||||||
@import "modules/bootstrap/utilities/api";
|
@import "modules/bootstrap/utilities/api";
|
||||||
|
@@ -126,6 +126,10 @@
|
|||||||
|
|
||||||
// stylelint-enable annotation-no-unknown
|
// stylelint-enable annotation-no-unknown
|
||||||
|
|
||||||
|
.navbar .dropdown-divider-bg {
|
||||||
|
color: var(--#{$prefix}navbar-color);
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--dropdown-horizontal-bg: var(--#{$prefix}light);
|
--dropdown-horizontal-bg: var(--#{$prefix}light);
|
||||||
}
|
}
|
||||||
|
2
assets/scss/theme/base.scss
Normal file
2
assets/scss/theme/base.scss
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Placeholder for themes extending the core Hinode theme
|
||||||
|
// The file is included last in the build pipeline, but prior to theme.scss
|
@@ -94,3 +94,8 @@ arguments:
|
|||||||
optional: true
|
optional: true
|
||||||
comment: >-
|
comment: >-
|
||||||
Flag indicating if the number of columns should be responsive, defaults to `true`.
|
Flag indicating if the number of columns should be responsive, defaults to `true`.
|
||||||
|
hook:
|
||||||
|
type: string
|
||||||
|
optional: true
|
||||||
|
comment: Render hook for the card partial.
|
||||||
|
group: partial
|
||||||
|
@@ -162,7 +162,7 @@ arguments:
|
|||||||
parent: cascade
|
parent: cascade
|
||||||
optional: true
|
optional: true
|
||||||
default: start
|
default: start
|
||||||
release: v0.23.0-alpha2
|
release: v0.23.0
|
||||||
comment: Icon alignment.
|
comment: Icon alignment.
|
||||||
options:
|
options:
|
||||||
values:
|
values:
|
||||||
@@ -173,7 +173,7 @@ arguments:
|
|||||||
type: string
|
type: string
|
||||||
parent: cascade
|
parent: cascade
|
||||||
optional: true
|
optional: true
|
||||||
release: v0.23.0-alpha2
|
release: v0.23.0
|
||||||
comment: Icon style.
|
comment: Icon style.
|
||||||
orientation:
|
orientation:
|
||||||
type: select
|
type: select
|
||||||
@@ -191,15 +191,26 @@ arguments:
|
|||||||
type: bool
|
type: bool
|
||||||
parent: cascade
|
parent: cascade
|
||||||
optional: true
|
optional: true
|
||||||
release: v0.23.0-alpha2
|
release: v0.23.0
|
||||||
comment: Apply subtle background colors.
|
comment: Apply subtle background colors.
|
||||||
button:
|
button:
|
||||||
type: bool
|
type: bool
|
||||||
parent: cascade
|
parent: cascade
|
||||||
optional: true
|
optional: true
|
||||||
release: v0.23.0-beta
|
release: v0.23.0
|
||||||
comment: >-
|
comment: >-
|
||||||
Flag indicating the cards should include a button that links to the provided address.
|
Flag indicating the cards should include a button that links to the provided address.
|
||||||
|
buttonLabel:
|
||||||
|
type: string
|
||||||
|
optional: true
|
||||||
|
release: v0.23.2
|
||||||
|
comment: >-
|
||||||
|
Label of the link button, defaults to the card title.
|
||||||
|
hook:
|
||||||
|
type: string
|
||||||
|
optional: true
|
||||||
|
comment: Render hook for the image partial.
|
||||||
|
group: partial
|
||||||
body:
|
body:
|
||||||
optional: true
|
optional: true
|
||||||
comment: >-
|
comment: >-
|
||||||
|
@@ -119,4 +119,4 @@ arguments:
|
|||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
comment: Class attribute of the figure caption, e.g. `px-4`.
|
comment: Class attribute of the figure caption, e.g. `px-4`.
|
||||||
release: v0.23.0-beta
|
release: v0.23.0
|
||||||
|
@@ -159,7 +159,6 @@
|
|||||||
themeFontPath = "/fonts" # local path
|
themeFontPath = "/fonts" # local path
|
||||||
themeFontPreload = "/fonts/inter-v12-latin-regular.woff2"
|
themeFontPreload = "/fonts/inter-v12-latin-regular.woff2"
|
||||||
purge = false # TODO: fix purge setting of example site
|
purge = false # TODO: fix purge setting of example site
|
||||||
# purge = true
|
|
||||||
# toml-docs-end theme-colors
|
# toml-docs-end theme-colors
|
||||||
|
|
||||||
[schema]
|
[schema]
|
||||||
|
@@ -12,18 +12,18 @@ const purgecss = require('@fullhuman/postcss-purgecss')({
|
|||||||
dynamicAttributes: ['data-bs-theme'],
|
dynamicAttributes: ['data-bs-theme'],
|
||||||
safelist: [
|
safelist: [
|
||||||
...whitelister([
|
...whitelister([
|
||||||
'../assets/scss/components/_clipboard.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_clipboard.scss',
|
||||||
'../assets/scss/components/_command.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_command.scss',
|
||||||
'../assets/scss/components/_nav.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_nav.scss',
|
||||||
'../assets/scss/components/_navbar.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_navbar.scss',
|
||||||
'../assets/scss/components/_search.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_search.scss',
|
||||||
'../assets/scss/components/_syntax.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_syntax.scss',
|
||||||
'../assets/scss/components/_syntax-dark.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_syntax-dark.scss',
|
||||||
'../assets/scss/components/_syntax-light.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_syntax-light.scss',
|
||||||
'../assets/scss/components/_table.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_table.scss',
|
||||||
'../assets/scss/components/_video.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/components/_video.scss',
|
||||||
'../assets/scss/theme/fonts.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/theme/fonts.scss',
|
||||||
'../assets/scss/theme/theme.scss',
|
'./_vendor/github.com/gethinode/hinode/assets/scss/theme/theme.scss',
|
||||||
'./_vendor/github.com/gethinode/mod-flexsearch/assets/scss/modules/flexsearch/flexsearch.scss',
|
'./_vendor/github.com/gethinode/mod-flexsearch/assets/scss/modules/flexsearch/flexsearch.scss',
|
||||||
'./_vendor/github.com/gethinode/mod-katex/dist/katex.scss',
|
'./_vendor/github.com/gethinode/mod-katex/dist/katex.scss',
|
||||||
'./_vendor/github.com/gethinode/mod-leaflet/dist/leaflet.scss',
|
'./_vendor/github.com/gethinode/mod-leaflet/dist/leaflet.scss',
|
||||||
|
@@ -26,7 +26,7 @@ Additional features include:
|
|||||||
* Support for multiple languages
|
* Support for multiple languages
|
||||||
* Reusable Bootstrap components through configurable shortcodes and partials
|
* Reusable Bootstrap components through configurable shortcodes and partials
|
||||||
* Versioned documentation, including sidebar navigation and version switcher
|
* Versioned documentation, including sidebar navigation and version switcher
|
||||||
* Reponsive image handling for multiple screen sizes and resolutions
|
* Responsive image handling for multiple screen sizes and resolutions
|
||||||
* Optimized search results, scoring 100 points for SEO on [PageSpeed Insights]({{< param "links.pagespeed" >}})
|
* Optimized search results, scoring 100 points for SEO on [PageSpeed Insights]({{< param "links.pagespeed" >}})
|
||||||
* Secure by default, scoring A+ on [Mozilla Observatory test]({{< param "links.observatory" >}})
|
* Secure by default, scoring A+ on [Mozilla Observatory test]({{< param "links.observatory" >}})
|
||||||
{.tickmark}
|
{.tickmark}
|
||||||
|
@@ -125,7 +125,8 @@ En-tête 6 {{</* badge title="Nouveau" */>}}
|
|||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* card path="about" padding="3" class="col-6 mx-auto" color="body-tertiary" header="publication" footer="none" /*/>}}
|
{{</* card path="about" padding="3" class="col-6 mx-auto" color="body-tertiary"
|
||||||
|
header="publication" footer="none" button=true /*/>}}
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
|
@@ -2,4 +2,3 @@ module github.com/gethinode/hinode/exampleSite
|
|||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
require github.com/gethinode/hinode v0.22.5 // indirect
|
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
github.com/gethinode/hinode v0.22.5 h1:zpjSDgWQVbq4BjPduxwexQB18gawFeinzPkaRRTs2Tg=
|
||||||
|
github.com/gethinode/hinode v0.22.5/go.mod h1:hsskrlBRnTbpCjrDtGbK8C1VYGML7ezHtCDGDiYL2mQ=
|
||||||
github.com/gethinode/mod-bootstrap v1.2.2 h1:Q8E04OKWr9owk7nhQ/NBukUgSFhsECxZsOLEaf5oeiQ=
|
github.com/gethinode/mod-bootstrap v1.2.2 h1:Q8E04OKWr9owk7nhQ/NBukUgSFhsECxZsOLEaf5oeiQ=
|
||||||
github.com/gethinode/mod-bootstrap v1.2.2/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
|
github.com/gethinode/mod-bootstrap v1.2.2/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
|
||||||
github.com/gethinode/mod-flexsearch v1.9.0 h1:AE+w7QeZTxh36JNTG+CASDLxaqlCZKn+EUD6ulnPGak=
|
github.com/gethinode/mod-flexsearch v1.9.0 h1:AE+w7QeZTxh36JNTG+CASDLxaqlCZKn+EUD6ulnPGak=
|
||||||
|
@@ -226,6 +226,7 @@
|
|||||||
"fs-5",
|
"fs-5",
|
||||||
"fs-6",
|
"fs-6",
|
||||||
"fs-md-5",
|
"fs-md-5",
|
||||||
|
"fw-30",
|
||||||
"fw-bold",
|
"fw-bold",
|
||||||
"fw-semibold",
|
"fw-semibold",
|
||||||
"g-0",
|
"g-0",
|
||||||
|
10
go.mod
10
go.mod
@@ -4,13 +4,13 @@ go 1.19
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
|
github.com/airbnb/lottie-web v5.12.2+incompatible // indirect
|
||||||
github.com/gethinode/mod-bootstrap v1.2.2 // indirect
|
github.com/gethinode/mod-bootstrap v1.2.5 // indirect
|
||||||
github.com/gethinode/mod-flexsearch v1.9.0 // indirect
|
github.com/gethinode/mod-flexsearch v1.10.0 // indirect
|
||||||
github.com/gethinode/mod-fontawesome v1.8.1 // indirect
|
github.com/gethinode/mod-fontawesome v1.8.1 // indirect
|
||||||
github.com/gethinode/mod-katex v1.0.5 // indirect
|
github.com/gethinode/mod-katex v1.0.7 // indirect
|
||||||
github.com/gethinode/mod-leaflet v1.0.0 // indirect
|
github.com/gethinode/mod-leaflet v1.0.0 // indirect
|
||||||
github.com/gethinode/mod-lottie v1.4.3 // indirect
|
github.com/gethinode/mod-lottie v1.4.4 // indirect
|
||||||
github.com/gethinode/mod-utils/v2 v2.1.1 // indirect
|
github.com/gethinode/mod-utils/v2 v2.1.1 // indirect
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 // indirect
|
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 // indirect
|
||||||
github.com/twbs/bootstrap v5.3.2+incompatible // indirect
|
github.com/twbs/bootstrap v5.3.3+incompatible // indirect
|
||||||
)
|
)
|
||||||
|
12
go.sum
12
go.sum
@@ -12,6 +12,10 @@ github.com/gethinode/mod-bootstrap v1.2.1 h1:z54dgsbhShhlri+X77Z+yLrg0wz/f8C8ojA
|
|||||||
github.com/gethinode/mod-bootstrap v1.2.1/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
|
github.com/gethinode/mod-bootstrap v1.2.1/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
|
||||||
github.com/gethinode/mod-bootstrap v1.2.2 h1:Q8E04OKWr9owk7nhQ/NBukUgSFhsECxZsOLEaf5oeiQ=
|
github.com/gethinode/mod-bootstrap v1.2.2 h1:Q8E04OKWr9owk7nhQ/NBukUgSFhsECxZsOLEaf5oeiQ=
|
||||||
github.com/gethinode/mod-bootstrap v1.2.2/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
|
github.com/gethinode/mod-bootstrap v1.2.2/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
|
||||||
|
github.com/gethinode/mod-bootstrap v1.2.4 h1:4CFNpwpRKiZlMVWg9u5+ijSb924j4yM3G1p96Hquas0=
|
||||||
|
github.com/gethinode/mod-bootstrap v1.2.4/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
||||||
|
github.com/gethinode/mod-bootstrap v1.2.5 h1:h6yAlkMZA34wJU3pLFpLxp1ynEBte/YTY4kGEQtMGPE=
|
||||||
|
github.com/gethinode/mod-bootstrap v1.2.5/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
||||||
github.com/gethinode/mod-flexsearch v1.0.1 h1:FJkRsUzSnQTXl3MWCigT4E6vfff870UWTnkGqaDGIhA=
|
github.com/gethinode/mod-flexsearch v1.0.1 h1:FJkRsUzSnQTXl3MWCigT4E6vfff870UWTnkGqaDGIhA=
|
||||||
github.com/gethinode/mod-flexsearch v1.0.1/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
|
github.com/gethinode/mod-flexsearch v1.0.1/go.mod h1:TXbGbWsvmhBdsTzRt887mcpFfr4ORpzG3+h/l4W3YM4=
|
||||||
github.com/gethinode/mod-flexsearch v1.1.0 h1:7BCMyQDlYlskNXuazt8Jg/jg9WREexu2xVkYqThkAX4=
|
github.com/gethinode/mod-flexsearch v1.1.0 h1:7BCMyQDlYlskNXuazt8Jg/jg9WREexu2xVkYqThkAX4=
|
||||||
@@ -46,6 +50,8 @@ github.com/gethinode/mod-flexsearch v1.8.1 h1:xwPvmmxd8Tdyxp8/rnd9KRGqIDtZs/YwAQ
|
|||||||
github.com/gethinode/mod-flexsearch v1.8.1/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
github.com/gethinode/mod-flexsearch v1.8.1/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
github.com/gethinode/mod-flexsearch v1.9.0 h1:AE+w7QeZTxh36JNTG+CASDLxaqlCZKn+EUD6ulnPGak=
|
github.com/gethinode/mod-flexsearch v1.9.0 h1:AE+w7QeZTxh36JNTG+CASDLxaqlCZKn+EUD6ulnPGak=
|
||||||
github.com/gethinode/mod-flexsearch v1.9.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
github.com/gethinode/mod-flexsearch v1.9.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
|
github.com/gethinode/mod-flexsearch v1.10.0 h1:ymlHu5G2635D/h2axG4jgpGS+Vvtzxg07SZX8pJOJSo=
|
||||||
|
github.com/gethinode/mod-flexsearch v1.10.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
github.com/gethinode/mod-fontawesome v1.0.2 h1:ZSK6D20/w4y5GnfYfTBB58uHD0ChIfkpKfRGwioS9rg=
|
github.com/gethinode/mod-fontawesome v1.0.2 h1:ZSK6D20/w4y5GnfYfTBB58uHD0ChIfkpKfRGwioS9rg=
|
||||||
github.com/gethinode/mod-fontawesome v1.0.2/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
github.com/gethinode/mod-fontawesome v1.0.2/go.mod h1:Ki1qkWEOiF0hQpCgWeZRw+HkpL6nd1DxKFptU0O2feI=
|
||||||
github.com/gethinode/mod-fontawesome v1.1.0 h1:rsDzUI+3ZlS/do2ff3ne8/z3KwHeysmuA+WsXlumXXk=
|
github.com/gethinode/mod-fontawesome v1.1.0 h1:rsDzUI+3ZlS/do2ff3ne8/z3KwHeysmuA+WsXlumXXk=
|
||||||
@@ -94,6 +100,8 @@ github.com/gethinode/mod-katex v1.0.4 h1:NozgWPFnHhx1W+E9DnwMTRpvxPbdqdANEtwp9N3
|
|||||||
github.com/gethinode/mod-katex v1.0.4/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
github.com/gethinode/mod-katex v1.0.4/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
github.com/gethinode/mod-katex v1.0.5 h1:AVhcTINYory0ygChQERf8PcyJkbT1oqhmLRF6ESnWOY=
|
github.com/gethinode/mod-katex v1.0.5 h1:AVhcTINYory0ygChQERf8PcyJkbT1oqhmLRF6ESnWOY=
|
||||||
github.com/gethinode/mod-katex v1.0.5/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
github.com/gethinode/mod-katex v1.0.5/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
|
github.com/gethinode/mod-katex v1.0.7 h1:FTEhvi3r+O5lPeOxB7OsanFZuAB14yC5fIk3DqhkNyY=
|
||||||
|
github.com/gethinode/mod-katex v1.0.7/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
github.com/gethinode/mod-leaflet v0.2.3 h1:QQI4h+IH0jZ7fx4q0um2YIEiYBoW3OAfW8qHzbRCDPk=
|
github.com/gethinode/mod-leaflet v0.2.3 h1:QQI4h+IH0jZ7fx4q0um2YIEiYBoW3OAfW8qHzbRCDPk=
|
||||||
github.com/gethinode/mod-leaflet v0.2.3/go.mod h1:uGggt87x4Fw7wBoJpSiUvNkYg+s/Ujne7klAX2rxMRk=
|
github.com/gethinode/mod-leaflet v0.2.3/go.mod h1:uGggt87x4Fw7wBoJpSiUvNkYg+s/Ujne7klAX2rxMRk=
|
||||||
github.com/gethinode/mod-leaflet v0.3.1 h1:H5MaOa+BB1KuVw7abTqfIn/SNzzRsAyx/WQoSe+2Ykc=
|
github.com/gethinode/mod-leaflet v0.3.1 h1:H5MaOa+BB1KuVw7abTqfIn/SNzzRsAyx/WQoSe+2Ykc=
|
||||||
@@ -128,6 +136,8 @@ github.com/gethinode/mod-lottie v1.4.2 h1:rHBhbMVRlkVMxVY+3g1u2kolDv695uL8Zur4mD
|
|||||||
github.com/gethinode/mod-lottie v1.4.2/go.mod h1:H6y1e3/2bBR1ujuM5N1iY39kpyN3RtcSRahX90+tlQI=
|
github.com/gethinode/mod-lottie v1.4.2/go.mod h1:H6y1e3/2bBR1ujuM5N1iY39kpyN3RtcSRahX90+tlQI=
|
||||||
github.com/gethinode/mod-lottie v1.4.3 h1:IKZO8a4yQyPKUwZ6POsZRIH/B++yEzXDe5HxrFF79KA=
|
github.com/gethinode/mod-lottie v1.4.3 h1:IKZO8a4yQyPKUwZ6POsZRIH/B++yEzXDe5HxrFF79KA=
|
||||||
github.com/gethinode/mod-lottie v1.4.3/go.mod h1:nt4wLnDFIhjBGRMuQJJ2bH80VREpbcsBUsdO6uWXjLs=
|
github.com/gethinode/mod-lottie v1.4.3/go.mod h1:nt4wLnDFIhjBGRMuQJJ2bH80VREpbcsBUsdO6uWXjLs=
|
||||||
|
github.com/gethinode/mod-lottie v1.4.4 h1:Lv7J+lAMx++aK9h0L7vAgsjyOZgrjux4xPz4Tpza8n4=
|
||||||
|
github.com/gethinode/mod-lottie v1.4.4/go.mod h1:7tsZjlFgMlj2iWBIS9uOtHHsCrfx9W7S8OsBrZeSVGU=
|
||||||
github.com/gethinode/mod-utils v1.0.0 h1:cqHm2xS5uDiJzRm1KfHaNbq6uMVDKLhQa8/BuTZ1nhY=
|
github.com/gethinode/mod-utils v1.0.0 h1:cqHm2xS5uDiJzRm1KfHaNbq6uMVDKLhQa8/BuTZ1nhY=
|
||||||
github.com/gethinode/mod-utils v1.0.0/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE=
|
github.com/gethinode/mod-utils v1.0.0/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE=
|
||||||
github.com/gethinode/mod-utils v1.0.1 h1:jhZGlGFHHL1f5HXbBMXfiZ2gCz4TVafAzjnRPTIBSEE=
|
github.com/gethinode/mod-utils v1.0.1 h1:jhZGlGFHHL1f5HXbBMXfiZ2gCz4TVafAzjnRPTIBSEE=
|
||||||
@@ -158,3 +168,5 @@ github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 h1:H6xa5YyC
|
|||||||
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||||
github.com/twbs/bootstrap v5.3.2+incompatible h1:tuiO5acc6xnZUR77Sbi5aKWXxjYxbmsSbJwYrhAKoQQ=
|
github.com/twbs/bootstrap v5.3.2+incompatible h1:tuiO5acc6xnZUR77Sbi5aKWXxjYxbmsSbJwYrhAKoQQ=
|
||||||
github.com/twbs/bootstrap v5.3.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
github.com/twbs/bootstrap v5.3.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
||||||
|
github.com/twbs/bootstrap v5.3.3+incompatible h1:goFoqinzdHfkeegpFP7pvhbd0g+A3O2hbU3XCjuNrEQ=
|
||||||
|
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
||||||
|
@@ -29,6 +29,8 @@
|
|||||||
translation: "Aucun articles trouvé"
|
translation: "Aucun articles trouvé"
|
||||||
- id: emptyTags
|
- id: emptyTags
|
||||||
translation: "Aucun tags trouvé"
|
translation: "Aucun tags trouvé"
|
||||||
|
- id: readMore
|
||||||
|
translation: "Lire plus"
|
||||||
|
|
||||||
# Languages
|
# Languages
|
||||||
- id: lang_de
|
- id: lang_de
|
||||||
|
149
i18n/pl.yaml
Normal file
149
i18n/pl.yaml
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
# Single pages
|
||||||
|
- id: postedOnDate
|
||||||
|
translation: "Opublikowano {{ . }}"
|
||||||
|
- id: lastModified
|
||||||
|
translation: "Ostatnia modyfikacja {{ . }}"
|
||||||
|
- id: read
|
||||||
|
translation: "czytania"
|
||||||
|
- id: minutesShort
|
||||||
|
translation: "min"
|
||||||
|
- id: words
|
||||||
|
translation: "słów"
|
||||||
|
- id: photoFull
|
||||||
|
translation: "Zdjęcie autorstwa %s z %s"
|
||||||
|
- id: photoShort
|
||||||
|
translation: "Zdjęcie autorstwa {{ . }}"
|
||||||
|
- id: photoOn
|
||||||
|
translation: "z"
|
||||||
|
- id: draft
|
||||||
|
translation: "Wersja robocza"
|
||||||
|
|
||||||
|
# List pages
|
||||||
|
- id: article
|
||||||
|
translation: "Artykuł"
|
||||||
|
- id: articles
|
||||||
|
translation: "Artykuły"
|
||||||
|
- id: more
|
||||||
|
translation: "Więcej {{ . }}"
|
||||||
|
- id: emptyList
|
||||||
|
translation: "Brak artykułów"
|
||||||
|
- id: emptyTags
|
||||||
|
translation: "Brak tagów"
|
||||||
|
|
||||||
|
# Languages
|
||||||
|
- id: lang_de
|
||||||
|
translation: "Niemiecki"
|
||||||
|
- id: lang_en
|
||||||
|
translation: "Angielski"
|
||||||
|
- id: lang_nl
|
||||||
|
translation: "Niderlandzki"
|
||||||
|
- id: lang_fr
|
||||||
|
translation: "Francuski"
|
||||||
|
|
||||||
|
# Sharing
|
||||||
|
- id: shareLink
|
||||||
|
translation: "Udostępnij przez {{ . }}"
|
||||||
|
- id: shareSystem
|
||||||
|
translation: "system"
|
||||||
|
- id: copyToClipboard
|
||||||
|
translation: "skopiuj do schowka"
|
||||||
|
- id: copiedToClipboard
|
||||||
|
translation: "skopiowany do schowka"
|
||||||
|
- id: link
|
||||||
|
translation: "Link"
|
||||||
|
- id: code
|
||||||
|
translation: "Kod"
|
||||||
|
- id: download
|
||||||
|
translation: "Pobierz artykuł"
|
||||||
|
|
||||||
|
# Pagination
|
||||||
|
- id: paginationNav
|
||||||
|
translation: "Nawigacja strony"
|
||||||
|
- id: paginationPrevious
|
||||||
|
translation: "Poprzednia strona"
|
||||||
|
- id: paginationNext
|
||||||
|
translation: "Następna strona"
|
||||||
|
- id: paginationFirst
|
||||||
|
translation: "Pierwsza strona"
|
||||||
|
- id: paginationLast
|
||||||
|
translation: "Ostatnia strona"
|
||||||
|
|
||||||
|
# Navigation
|
||||||
|
- id: colorMode
|
||||||
|
translation: "Tryb koloru"
|
||||||
|
- id: colorLight
|
||||||
|
translation: "Jasny"
|
||||||
|
- id: colorDark
|
||||||
|
translation: "Ciemny"
|
||||||
|
- id: colorAuto
|
||||||
|
translation: "Automatyczny"
|
||||||
|
- id: toggleMainNav
|
||||||
|
translation: "Przełącz główną nawigację"
|
||||||
|
- id: home
|
||||||
|
translation: "Strona główna"
|
||||||
|
- id: languageSwitcherLabel
|
||||||
|
translation: "Język"
|
||||||
|
- id: close
|
||||||
|
translation: "Zamknij"
|
||||||
|
|
||||||
|
# Table of contents
|
||||||
|
- id: toc
|
||||||
|
translation: "Na tej stronie"
|
||||||
|
- id: seeAlso
|
||||||
|
translation: "Zobacz również"
|
||||||
|
- id: sectionMenu
|
||||||
|
translation: "Wybierz temat"
|
||||||
|
|
||||||
|
# Sidebar
|
||||||
|
- id: toggleSidebar
|
||||||
|
translation: "Przełącz nawigację na pasku bocznym"
|
||||||
|
|
||||||
|
# Feature
|
||||||
|
- id: addedFeature
|
||||||
|
translation: "Dodano w {{ . }}"
|
||||||
|
- id: deprecatedFeature
|
||||||
|
translation: "Stała się przestarzała w {{ . }}"
|
||||||
|
|
||||||
|
# Versioning
|
||||||
|
- id: latest
|
||||||
|
translation: "najnowsza"
|
||||||
|
- id: allVersions
|
||||||
|
translation: "Wszystkie wersje"
|
||||||
|
- id: newerVersionAlert
|
||||||
|
translation: "Jest dostępna nowsza wersja {{ . }}!"
|
||||||
|
|
||||||
|
# 404 page
|
||||||
|
- id: pageNotFound
|
||||||
|
translation: "Strona, której szukasz nie istnieje albo wystąpił inny błąd. Spróbuj wrócić do naszej {{ . }}."
|
||||||
|
- id: pageNotFoundTitle
|
||||||
|
translation: "Nie znaleziono strony"
|
||||||
|
- id: pageNotFoundHome
|
||||||
|
translation: "strony głównej"
|
||||||
|
|
||||||
|
# Footer
|
||||||
|
- id: copyright
|
||||||
|
translation: "Copyright"
|
||||||
|
- id: rights
|
||||||
|
translation: "Wszelkie prawa zastrzeżone"
|
||||||
|
- id: poweredBy
|
||||||
|
translation: "Strona oparta o {{ . }}."
|
||||||
|
|
||||||
|
# Comments
|
||||||
|
- id: show
|
||||||
|
translation: "Pokaż"
|
||||||
|
- id: comments
|
||||||
|
translation: "Komentarze"
|
||||||
|
|
||||||
|
# Arguments
|
||||||
|
- id: name
|
||||||
|
translation: "Nazwa"
|
||||||
|
- id: type
|
||||||
|
translation: "Typ"
|
||||||
|
- id: required
|
||||||
|
translation: "Wymagany"
|
||||||
|
- id: default
|
||||||
|
translation: "Domyślny"
|
||||||
|
- id: comment
|
||||||
|
translation: Komentarz
|
||||||
|
- id: supportedValues
|
||||||
|
translation: "Obsługiwane wartości"
|
@@ -32,12 +32,14 @@
|
|||||||
{{- $subtle := .subtle }}
|
{{- $subtle := .subtle }}
|
||||||
{{- $loading := .loading -}}
|
{{- $loading := .loading -}}
|
||||||
{{- $button := .button -}}
|
{{- $button := .button -}}
|
||||||
|
{{- $buttonLabel := .buttonLabel -}}
|
||||||
|
{{- $hook := .hook | default "assets/card.html" }}
|
||||||
|
|
||||||
<!-- Override arguments -->
|
<!-- Override arguments -->
|
||||||
{{ $isPages := in (slice "page.Pages" "resource.Resources") (printf "%T" $pages) }}
|
{{ $isPages := in (slice "page.Pages" "resource.Resources") (printf "%T" $pages) }}
|
||||||
{{ $paginator := "" }}
|
{{ $paginator := "" }}
|
||||||
{{ if and $isPages $paginate }}
|
{{ if and $isPages $paginate }}
|
||||||
{{ $paginator = $page.Paginate $pages }}
|
{{ $paginator = $page.Paginate $pages .max }}
|
||||||
{{ $pages = first $paginator.PageSize (after (mul (sub $paginator.PageNumber 1) $paginator.PageSize) $pages) }}
|
{{ $pages = first $paginator.PageSize (after (mul (sub $paginator.PageNumber 1) $paginator.PageSize) $pages) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
@@ -103,11 +105,12 @@
|
|||||||
"style" $style
|
"style" $style
|
||||||
"align" $align
|
"align" $align
|
||||||
"button" $button
|
"button" $button
|
||||||
|
"buttonLabel" $buttonLabel
|
||||||
) -}}
|
) -}}
|
||||||
{{- $params = merge $params $element }}
|
{{- $params = merge $params $element }}
|
||||||
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
{{- partial "assets/card.html" $params -}}
|
{{- partial $hook $params -}}
|
||||||
</div>
|
</div>
|
||||||
{{- if and (lt $index (sub $max 1)) $separator -}}
|
{{- if and (lt $index (sub $max 1)) $separator -}}
|
||||||
<div class="col d-block d-sm-none">
|
<div class="col d-block d-sm-none">
|
||||||
@@ -118,7 +121,7 @@
|
|||||||
{{if $cards }}{{- print $cards | safeHTML }}{{ end }}
|
{{if $cards }}{{- print $cards | safeHTML }}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ if $paginate }}
|
{{ if $paginator }}
|
||||||
{{- if gt $paginator.TotalPages 1 -}}
|
{{- if gt $paginator.TotalPages 1 -}}
|
||||||
<div class="pt-3">{{ partial "assets/pagination.html" (dict "page" $page "format" "terse") }}</div>
|
<div class="pt-3">{{ partial "assets/pagination.html" (dict "page" $page "format" "terse") }}</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@@ -30,6 +30,7 @@
|
|||||||
{{- $title := .title -}}
|
{{- $title := .title -}}
|
||||||
{{- $subtle := .subtle -}}
|
{{- $subtle := .subtle -}}
|
||||||
{{- $button := .button -}}
|
{{- $button := .button -}}
|
||||||
|
{{- $buttonLabel := .buttonLabel -}}
|
||||||
{{- $colorStyle := "" -}}
|
{{- $colorStyle := "" -}}
|
||||||
{{ if $color }}
|
{{ if $color }}
|
||||||
{{ if $subtle }}
|
{{ if $subtle }}
|
||||||
@@ -38,6 +39,7 @@
|
|||||||
{{- $colorStyle = printf "bg-%s text-bg-%s" $color $color -}}
|
{{- $colorStyle = printf "bg-%s text-bg-%s" $color $color -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{- $hook := .hook | default "assets/image.html" }}
|
||||||
|
|
||||||
<!-- Override arguments -->
|
<!-- Override arguments -->
|
||||||
{{- $page := "" }}
|
{{- $page := "" }}
|
||||||
@@ -75,12 +77,16 @@
|
|||||||
{{- if $href -}}
|
{{- if $href -}}
|
||||||
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
|
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
|
||||||
<p class="card-title fs-5 fw-bold">{{ $title }}</p>
|
<p class="card-title fs-5 fw-bold">{{ $title }}</p>
|
||||||
{{ with $description }}<p class="card-text {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">{{ . }}</p>{{ end -}}
|
{{ with $description }}
|
||||||
|
<div class="card-text {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">
|
||||||
|
{{ . | safeHTML }}
|
||||||
|
</div>
|
||||||
|
{{ end -}}
|
||||||
</a>
|
</a>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<div>
|
<div>
|
||||||
{{ with $title }}<p class="card-title fs-5 fw-bold">{{ . }}</p>{{ end -}}
|
{{ with $title }}<p class="card-title fs-5 fw-bold">{{ . }}</p>{{ end -}}
|
||||||
{{ with $description }}<p class="card-text">{{ . }}</p>{{ end -}}
|
{{ with $description }}<div class="card-text">{{ . | safeHTML }}</div>{{ end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -125,7 +131,7 @@
|
|||||||
<div class="row g-0 row-cols-1 h-100{{ if $button }} pb-5{{ end }}">
|
<div class="row g-0 row-cols-1 h-100{{ if $button }} pb-5{{ end }}">
|
||||||
<div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else }}col-4{{ end }}">
|
<div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else }}col-4{{ end }}">
|
||||||
{{- if $thumbnail -}}
|
{{- if $thumbnail -}}
|
||||||
{{- partial "assets/image.html" (dict "url" $thumbnail "ratio" (or $ratio "1x1") "wrapper" "h-100 card-img-wrap" "class" "rounded-start card-img-h100" "title" $title "loading" $loading) -}}
|
{{- partial $hook (dict "url" $thumbnail "ratio" (or $ratio "1x1") "wrapper" "h-100 card-img-wrap" "class" "rounded-start card-img-h100" "title" $title "loading" $loading) -}}
|
||||||
{{- else if $icon -}}
|
{{- else if $icon -}}
|
||||||
<div class="card-icon p-{{ $padding }} h-100 fa-wrapper d-flex align-items-{{ $align}} justify-content-center {{ $iconStyle }}">
|
<div class="card-icon p-{{ $padding }} h-100 fa-wrapper d-flex align-items-{{ $align}} justify-content-center {{ $iconStyle }}">
|
||||||
{{- partial "assets/icon.html" (dict "icon" (printf "%s %s" $icon $style)) -}}
|
{{- partial "assets/icon.html" (dict "icon" (printf "%s %s" $icon $style)) -}}
|
||||||
@@ -140,7 +146,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ if $page }}<div>{{ partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) }}</div>{{ end }}
|
{{ if $page }}<div>{{ partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) }}</div>{{ end }}
|
||||||
{{ if $button }}
|
{{ if $button }}
|
||||||
<div>{{ partial "assets/button.html" (dict "title" (T "readMore") "href" $href "outline" true "size" "sm" "class" "card-button mb-n4") }}</div>
|
{{ $label := (or $buttonLabel $title) | default (T "readMore") }}
|
||||||
|
<div class="d-flex align-items-end">{{ partial "assets/button.html" (dict "title" $label "icon" "fas chevron-right" "href" $href "outline" true "size" "sm" "class" "card-button mb-n4") }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -150,7 +157,7 @@
|
|||||||
<!-- Render stacked / default card -->
|
<!-- Render stacked / default card -->
|
||||||
<div class="card {{ $colorStyle }} {{ $class }} text-{{ $align }}">
|
<div class="card {{ $colorStyle }} {{ $class }} text-{{ $align }}">
|
||||||
{{- if $thumbnail -}}
|
{{- if $thumbnail -}}
|
||||||
{{- partial "assets/image.html" (dict "url" $thumbnail "ratio" (or $ratio "16x9") "wrapper" "card-img-wrap" "class" "card-img-top" "title" (or $alt $title) "loading" $loading) -}}
|
{{- partial $hook (dict "url" $thumbnail "ratio" (or $ratio "16x9") "wrapper" "card-img-wrap" "class" "card-img-top" "title" (or $alt $title) "loading" $loading) -}}
|
||||||
{{- else if $icon -}}
|
{{- else if $icon -}}
|
||||||
<div class="card-icon p-{{ $padding }} {{ $iconStyle }} text-{{ $align }}">
|
<div class="card-icon p-{{ $padding }} {{ $iconStyle }} text-{{ $align }}">
|
||||||
{{- partial "assets/icon.html" (dict "icon" (printf "%s %s" $icon $style)) -}}
|
{{- partial "assets/icon.html" (dict "icon" (printf "%s %s" $icon $style)) -}}
|
||||||
@@ -162,10 +169,11 @@
|
|||||||
{{ if $page }}{{- partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) -}}{{ end }}
|
{{ if $page }}{{- partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) -}}{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ if $button }}
|
{{ if $button }}
|
||||||
|
{{ $label := (or $buttonLabel $title) | default (T "readMore") }}
|
||||||
<div class="row p-{{ $padding }}" >
|
<div class="row p-{{ $padding }}" >
|
||||||
<div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else if eq $orientation "horizontal" }}col-4{{ end }}"></div>
|
<div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else if eq $orientation "horizontal" }}col-4{{ end }}"></div>
|
||||||
<div class="col {{ if eq $orientation "horizontal-sm" }}px-2{{ else if eq $orientation "horizontal"}}px-1 {{ else }}px-2 pt-1{{ end }}">
|
<div class="col d-flex align-items-end {{ if eq $orientation "horizontal-sm" }}px-2{{ else if eq $orientation "horizontal"}}px-1 {{ else }}px-2 pt-1{{ end }}">
|
||||||
{{ partial "assets/button.html" (dict "title" (T "readMore") "href" $href "outline" true "size" "sm" "class" "card-button") }}
|
{{ partial "assets/button.html" (dict "title" $label "href" $href "outline" true "size" "sm" "class" "card-button") }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
{{- $download := partial "utilities/GetTargetPath.html" (dict "path" .download "page" page) -}}
|
{{- $download := partial "utilities/GetTargetPath.html" (dict "path" .download "page" page) -}}
|
||||||
|
{{- $title := .title }}
|
||||||
{{- $color := .color | default "primary" -}}
|
{{- $color := .color | default "primary" -}}
|
||||||
{{- $outline := .outline | default true -}}
|
{{- $outline := .outline | default true -}}
|
||||||
{{- $icon := .icon | default "fas download" -}}
|
{{- $icon := .icon | default "fas download" -}}
|
||||||
@@ -8,17 +9,18 @@
|
|||||||
{{- $minimal := .minimal | default false -}}
|
{{- $minimal := .minimal | default false -}}
|
||||||
|
|
||||||
{{- if and $download (not (fileExists (path.Join "static" $download))) -}}
|
{{- if and $download (not (fileExists (path.Join "static" $download))) -}}
|
||||||
{{- errorf "Cannot find download file for page '%s': %s" page.File.Path $download -}}
|
{{- warnf "Cannot find download file for page '%s': %s" page.File.Path $download -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ with $download }}
|
{{ with $download }}
|
||||||
{{ $title := "" }}
|
{{ if not $title }}
|
||||||
{{ if not $minimal }}{{ $title = (T "download" ) }}{{ end }}
|
{{ if not $minimal }}{{ $title = (T "download" ) }}{{ end }}
|
||||||
{{ $lang := strings.TrimPrefix "." (path.Ext (path.BaseName .)) }}
|
{{ $lang := strings.TrimPrefix "." (path.Ext (path.BaseName .)) }}
|
||||||
{{ if and $lang (ne (string site.LanguageCode) $lang) }}
|
{{ if and $lang (ne (string site.LanguageCode) $lang) }}
|
||||||
{{ range site.Languages }}
|
{{ range site.Languages }}
|
||||||
{{ if eq .LanguageCode $lang }}
|
{{ if eq .LanguageCode $lang }}
|
||||||
{{ $title = printf "%s (%s)" (T "download") (T (printf "lang_%s" .LanguageCode)) }}
|
{{ $title = printf "%s (%s)" (T "download") (T (printf "lang_%s" .LanguageCode)) }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -186,13 +186,13 @@
|
|||||||
<!-- Insert sidebar toggler when applicable -->
|
<!-- Insert sidebar toggler when applicable -->
|
||||||
<div class="d-flex align-items-center">
|
<div class="d-flex align-items-center">
|
||||||
{{- if $page.Scratch.Get "sidebar" -}}
|
{{- if $page.Scratch.Get "sidebar" -}}
|
||||||
<button class="navbar-toggler collapsed p-0 mx-auto" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvass-sidebar" aria-controls="offcanvass-sidebar" aria-label="{{ T "toggleSidebar" }}">
|
<button class="navbar-toggler collapsed p-0 mx-auto fw-30" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvass-sidebar" aria-controls="offcanvass-sidebar" aria-label="{{ T "toggleSidebar" }}">
|
||||||
{{- partial "assets/icon.html" (dict "icon" "fas ellipsis fa-fw") -}}
|
{{- partial "assets/icon.html" (dict "icon" "fas ellipsis fa-fw" "spacing" false) -}}
|
||||||
</button>
|
</button>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<!-- Insert invisible sidebar toggler to center logo correctly on smaller screens -->
|
<!-- Insert invisible sidebar toggler to center logo correctly on smaller screens -->
|
||||||
<button class="navbar-toggler collapsed p-0 mx-auto invisible" type="button">
|
<button class="navbar-toggler collapsed p-0 mx-auto invisible fw-30" type="button">
|
||||||
{{- partial "assets/icon.html" (dict "icon" "fas ellipsis fa-fw") -}}
|
{{- partial "assets/icon.html" (dict "icon" "fas ellipsis fa-fw" "spacing" false) -}}
|
||||||
</button>
|
</button>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
@@ -30,20 +30,20 @@
|
|||||||
"icon" "fas sort"
|
"icon" "fas sort"
|
||||||
"justify" "between"
|
"justify" "between"
|
||||||
"collapse" "toc-collapse"
|
"collapse" "toc-collapse"
|
||||||
"order" "last")
|
"order" "last"
|
||||||
|
"spacing" false
|
||||||
|
)
|
||||||
-}}
|
-}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<div class="collapse border bg-body-tertiary rounded p-1 navbar-nav-scroll" id="toc-collapse">
|
||||||
<div class="collapse border bg-body-tertiary rounded p-1 navbar-nav-scroll" id="toc-collapse">
|
<div class="toc toc-panel section-menu text-body p-2 fs-6">
|
||||||
<div class="toc toc-panel section-menu text-body p-2 fs-6">
|
{{- range $items }}
|
||||||
{{- range $items }}
|
{{ $active := eq $page.RelPermalink .RelPermalink }}
|
||||||
{{ $active := eq $page.RelPermalink .RelPermalink }}
|
<a class="nav-link{{ if $active }} active{{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
<a class="nav-link{{ if $active }} active{{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</div>
|
||||||
|
|
||||||
<nav class="navbar navbar-expand navbar-services p-0 fs-5 d-none d-md-block">
|
<nav class="navbar navbar-expand navbar-services p-0 fs-5 d-none d-md-block">
|
||||||
<div class="container-fluid p-0 pb-3">
|
<div class="container-fluid p-0 pb-3">
|
||||||
|
@@ -62,8 +62,17 @@
|
|||||||
{{ partial "assets/button.html" (dict "href" "#!" "icon" "fas share-nodes fa-fw" "id" "btn-webshare" "class" "btn-social p-0" "attributes" $attr "label" (T "shareLink" (T "shareSystem")) "spacing" false) }}
|
{{ partial "assets/button.html" (dict "href" "#!" "icon" "fas share-nodes fa-fw" "id" "btn-webshare" "class" "btn-social p-0" "attributes" $attr "label" (T "shareLink" (T "shareSystem")) "spacing" false) }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ with $download }}
|
{{ with $download }}
|
||||||
|
{{ $label := (T "download" ) }}
|
||||||
|
{{ $lang := strings.TrimPrefix "." (path.Ext (path.BaseName .)) }}
|
||||||
|
{{ if and $lang (ne (string site.LanguageCode) $lang) }}
|
||||||
|
{{ range site.Languages }}
|
||||||
|
{{ if eq .LanguageCode $lang }}
|
||||||
|
{{ $label = printf "%s (%s)" (T "download") (T (printf "lang_%s" .LanguageCode)) }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{ $attr := dict "download" (path.Base .) }}
|
{{ $attr := dict "download" (path.Base .) }}
|
||||||
{{ partial "assets/button.html" (dict "href" . "icon" "fas download fa-fw" "class" "btn-social p-0" "attributes" $attr "spacing" false) }}
|
{{ partial "assets/button.html" (dict "href" . "icon" "fas download fa-fw" "label" $label "class" "btn-social p-0" "attributes" $attr "spacing" false) }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@@ -35,7 +35,7 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- range $index, $element := resources.Match "icons/**.svg" -}}
|
{{- range resources.Match "icons/**.svg" -}}
|
||||||
{{- $icon := resources.Get $element | resources.ExecuteAsTemplate $element $params -}}
|
{{- $icon := . | resources.ExecuteAsTemplate .RelPermalink $params -}}
|
||||||
{{- $icon.Publish -}}
|
{{- $icon.Publish -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
@@ -19,6 +19,7 @@
|
|||||||
{{- $class := "" -}}
|
{{- $class := "" -}}
|
||||||
{{- $title := "" -}}
|
{{- $title := "" -}}
|
||||||
{{- $caption := "" -}}
|
{{- $caption := "" -}}
|
||||||
|
{{- $figclass := "" -}}
|
||||||
{{- $mode := false -}}
|
{{- $mode := false -}}
|
||||||
{{- $portrait := false -}}
|
{{- $portrait := false -}}
|
||||||
{{- $loading := "" -}}
|
{{- $loading := "" -}}
|
||||||
@@ -33,6 +34,7 @@
|
|||||||
{{- $loading = .Get "loading" | default "" -}}
|
{{- $loading = .Get "loading" | default "" -}}
|
||||||
{{ $title = .Get "title" | default "" -}}
|
{{ $title = .Get "title" | default "" -}}
|
||||||
{{ $caption = .Get "caption" | default "" -}}
|
{{ $caption = .Get "caption" | default "" -}}
|
||||||
|
{{ $figclass = .Get "figclass" | default "" -}}
|
||||||
{{ with .Get "mode" }}{{ $mode = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ with .Get "mode" }}{{ $mode = partial "utilities/CastBool.html" . }}{{ end -}}
|
||||||
{{ with .Get "portrait" }}{{ $portrait = partial "utilities/CastBool.html" . }}{{ end -}}
|
{{ with .Get "portrait" }}{{ $portrait = partial "utilities/CastBool.html" . }}{{ end -}}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
@@ -53,6 +55,7 @@
|
|||||||
"class" $class
|
"class" $class
|
||||||
"title" $title
|
"title" $title
|
||||||
"caption" $caption
|
"caption" $caption
|
||||||
|
"figclass" $figclass
|
||||||
"mode" $mode
|
"mode" $mode
|
||||||
"portrait" $portrait
|
"portrait" $portrait
|
||||||
"loading" $loading
|
"loading" $loading
|
||||||
|
@@ -4,8 +4,8 @@
|
|||||||
command = "npm run build:example"
|
command = "npm run build:example"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
DART_SASS_VERSION = "1.71.1"
|
DART_SASS_VERSION = "1.72.0"
|
||||||
HUGO_VERSION = "0.122.0"
|
HUGO_VERSION = "0.124.0"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
NODE_VERSION = "18.19.1"
|
NODE_VERSION = "18.19.1"
|
||||||
|
773
package-lock.json
generated
773
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
20
package.json
20
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.23.0-beta6",
|
"version": "0.23.6",
|
||||||
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"hugo",
|
"hugo",
|
||||||
@@ -68,17 +68,17 @@
|
|||||||
"homepage": "https://gethinode.com",
|
"homepage": "https://gethinode.com",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^5.0.0",
|
"@fullhuman/postcss-purgecss": "^5.0.0",
|
||||||
"@gethinode/netlify-plugin-dartsass": "^0.2.0",
|
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
|
||||||
"@netlify/plugin-lighthouse": "^6.0.0",
|
"@netlify/plugin-lighthouse": "^6.0.0",
|
||||||
"autoprefixer": "^10.4.17",
|
"autoprefixer": "^10.4.19",
|
||||||
"cssnano": "^6.0.4",
|
"cssnano": "^6.1.2",
|
||||||
"cssnano-preset-advanced": "^6.0.4",
|
"cssnano-preset-advanced": "^6.1.2",
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-standard": "^17.1.0",
|
"eslint-config-standard": "^17.1.0",
|
||||||
"eslint-plugin-import": "^2.29.1",
|
"eslint-plugin-import": "^2.29.1",
|
||||||
"eslint-plugin-n": "^16.6.2",
|
"eslint-plugin-n": "^16.6.2",
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"hugo-bin": "^0.119.0",
|
"hugo-bin": "^0.121.1",
|
||||||
"markdownlint-cli2": "^0.12.1",
|
"markdownlint-cli2": "^0.12.1",
|
||||||
"netlify-plugin-hugo-cache-resources": "^0.2.1",
|
"netlify-plugin-hugo-cache-resources": "^0.2.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
@@ -87,11 +87,11 @@
|
|||||||
"replace-in-files-cli": "^2.2.0",
|
"replace-in-files-cli": "^2.2.0",
|
||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"stylelint": "^15.11.0",
|
"stylelint": "^16.3.1",
|
||||||
"stylelint-config-standard-scss": "^11.1.0"
|
"stylelint-config-standard-scss": "^13.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@gethinode/netlify-plugin-dartsass": "^0.2.0",
|
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
|
||||||
"@netlify/plugin-lighthouse": "*",
|
"@netlify/plugin-lighthouse": "*",
|
||||||
"fsevents": "*",
|
"fsevents": "*",
|
||||||
"netlify-plugin-hugo-cache-resources": "^0.2.1"
|
"netlify-plugin-hugo-cache-resources": "^0.2.1"
|
||||||
|
Reference in New Issue
Block a user