mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-17 15:03:20 +00:00
Compare commits
24 Commits
v1.0.0-alp
...
v1.0.0-bet
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1e64f4f009 | ||
![]() |
8bd3f0a254 | ||
![]() |
d6b3aaeb99 | ||
![]() |
e2e351f964 | ||
![]() |
b711d0591d | ||
![]() |
7a76408876 | ||
![]() |
1a53fdc636 | ||
![]() |
81f60a28e1 | ||
![]() |
193edecd03 | ||
![]() |
9ed4d00d19 | ||
![]() |
e821670be9 | ||
![]() |
7f7c8d12d9 | ||
![]() |
450e065117 | ||
![]() |
1360a750a5 | ||
![]() |
e7bb3ba1ca | ||
![]() |
5121c1cf1c | ||
![]() |
50bf5fa168 | ||
![]() |
363fcc3788 | ||
![]() |
d2e2b424b8 | ||
![]() |
859140e92f | ||
![]() |
38ef1bbbfe | ||
![]() |
508da2ba2b | ||
![]() |
529301ec8b | ||
![]() |
91acdeca75 |
@@ -18,23 +18,13 @@ a:active {
|
||||
// Ensure main page is rendered to full viewport height
|
||||
//
|
||||
.main {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.fullcover {
|
||||
--navbar-height: #{$navbar-height};
|
||||
|
||||
min-height: calc(100vh - var(--navbar-height));
|
||||
}
|
||||
|
||||
.fullscreen {
|
||||
--overlay-offset: #{$overlay-offset};
|
||||
--section-height: 88vh;
|
||||
--max-section-height: 1024px;
|
||||
|
||||
min-height: calc(100vh - var(--overlay-offset));
|
||||
}
|
||||
|
||||
.main-content {
|
||||
margin-top: var(--navbar-offset);
|
||||
min-height: 100vh;
|
||||
margin-top: var(--overlay-offset);
|
||||
}
|
||||
|
||||
$utilities: map-merge(
|
||||
@@ -100,66 +90,24 @@ $utilities: map-merge(
|
||||
)
|
||||
);
|
||||
|
||||
@media screen and (orientation: portrait) {
|
||||
.min-vh-custom {
|
||||
min-height: 25vh !important
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (orientation: landscape) {
|
||||
.min-vh-custom {
|
||||
min-height: 50vh !important
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
--nav-height: 90px;
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(sm) {
|
||||
.ratio-section {
|
||||
min-height: calc(min(100vh, 576px) - var(--nav-height));
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
.ratio-section {
|
||||
min-height: calc(min(100vh, 768px) - var(--nav-height));
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(lg) {
|
||||
.ratio-section {
|
||||
min-height: calc(min(100vh, 992px) - var(--nav-height));
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(xl) {
|
||||
.ratio-section {
|
||||
min-height: calc(min(100vh, 1200px) - var(--nav-height));
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(xxl) {
|
||||
.ratio-section {
|
||||
min-height: calc(min(100vh, 1400px) - var(--nav-height));
|
||||
}
|
||||
}
|
||||
|
||||
.section-cover {
|
||||
min-height: 100vh;
|
||||
min-height: calc(var(--section-height) - var(--overlay-offset));
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(xxl) {
|
||||
.section-cover {
|
||||
min-height: calc(min(100vh, 1000px));
|
||||
min-height: calc(min(calc(var(--section-height) - var(--overlay-offset)), var(--max-section-height)));
|
||||
}
|
||||
}
|
||||
|
||||
/* stylelint-disable media-feature-range-notation */
|
||||
@media (min-height: 1400px) {
|
||||
.section-cover {
|
||||
min-height: calc(min(100vh, 1000px));
|
||||
min-height: calc(min(calc(var(--section-height) - var(--overlay-offset)), var(--max-section-height)));
|
||||
}
|
||||
}
|
||||
/* stylelint-enable media-feature-range-notation */
|
||||
|
@@ -116,7 +116,7 @@ home = ["HTML", "RSS", "REDIR", "netlify", "server"]
|
||||
[module]
|
||||
[module.hugoVersion]
|
||||
extended = true
|
||||
min = "0.141.0"
|
||||
min = "0.146.0"
|
||||
[[module.mounts]]
|
||||
source = "archetypes"
|
||||
target = "archetypes"
|
||||
@@ -188,11 +188,11 @@ home = ["HTML", "RSS", "REDIR", "netlify", "server"]
|
||||
[[module.imports]]
|
||||
path = "github.com/gethinode/mod-lottie"
|
||||
[[module.imports]]
|
||||
path = "github.com/gethinode/mod-mermaid"
|
||||
path = "github.com/gethinode/mod-mermaid/v2"
|
||||
[[module.imports]]
|
||||
path = "github.com/gethinode/mod-simple-datatables"
|
||||
path = "github.com/gethinode/mod-simple-datatables/v2"
|
||||
[[module.imports]]
|
||||
path = "github.com/gethinode/mod-utils/v3"
|
||||
path = "github.com/gethinode/mod-utils/v4"
|
||||
# toml-docs-end modules
|
||||
|
||||
# toml-docs-start segments
|
||||
|
@@ -30,7 +30,7 @@ const purgecss = purgeCSSPlugin({
|
||||
'./_vendor/github.com/gethinode/mod-flexsearch/v2/assets/scss/modules/flexsearch/flexsearch.scss',
|
||||
'./_vendor/github.com/gethinode/mod-katex/dist/katex.scss',
|
||||
'./_vendor/github.com/gethinode/mod-leaflet/dist/leaflet.scss',
|
||||
'./_vendor/github.com/gethinode/mod-simple-datatables/dist/simple-datatables.scss',
|
||||
'./_vendor/github.com/gethinode/mod-simple-datatables/v2/dist/simple-datatables.scss',
|
||||
'./_vendor/github.com/twbs/bootstrap/scss/_carousel.scss',
|
||||
'./_vendor/github.com/twbs/bootstrap/scss/_dropdown.scss',
|
||||
'./_vendor/github.com/twbs/bootstrap/scss/_modal.scss',
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,65 +0,0 @@
|
||||
types:
|
||||
background:
|
||||
backdrop:
|
||||
color:
|
||||
subtle:
|
||||
heading:
|
||||
preheading:
|
||||
title:
|
||||
content:
|
||||
align:
|
||||
arrangement:
|
||||
width:
|
||||
size:
|
||||
illustration:
|
||||
image:
|
||||
icon:
|
||||
ratio:
|
||||
class:
|
||||
anchor:
|
||||
mode:
|
||||
width:
|
||||
image-overlay:
|
||||
hook:
|
||||
input:
|
||||
section:
|
||||
nested:
|
||||
keywords:
|
||||
categories:
|
||||
tags:
|
||||
reverse:
|
||||
sort:
|
||||
items:
|
||||
- title:
|
||||
description:
|
||||
elements:
|
||||
- title:
|
||||
icon:
|
||||
image:
|
||||
mode:
|
||||
content:
|
||||
links:
|
||||
- title:
|
||||
url:
|
||||
icon:
|
||||
force:
|
||||
messages:
|
||||
- title:
|
||||
icon:
|
||||
content:
|
||||
link:
|
||||
label:
|
||||
more:
|
||||
title:
|
||||
link:
|
||||
styles:
|
||||
- ratio:
|
||||
orientation:
|
||||
portrait:
|
||||
width:
|
||||
video:
|
||||
provider:
|
||||
account:
|
||||
id:
|
||||
autoplay:
|
||||
query-args:
|
@@ -4,6 +4,8 @@ arguments:
|
||||
mode:
|
||||
ratio:
|
||||
portrait:
|
||||
image-height:
|
||||
image-width:
|
||||
loading:
|
||||
priority:
|
||||
sizes:
|
||||
|
@@ -44,6 +44,10 @@ arguments:
|
||||
release: v0.24.0
|
||||
anchor:
|
||||
release: v0.24.22
|
||||
image-height:
|
||||
release: v1.0.0
|
||||
image-width:
|
||||
release: v1.0.0
|
||||
# deprecated arguments
|
||||
url:
|
||||
type:
|
||||
|
@@ -129,4 +129,4 @@ home = ["HTML", "RSS", "REDIR", "netlify", "server"]
|
||||
[[module.imports]]
|
||||
path = "github.com/gethinode/mod-simple-datatables"
|
||||
[[module.imports]]
|
||||
path = "github.com/gethinode/mod-utils/v3"
|
||||
path = "github.com/gethinode/mod-utils/v4"
|
||||
|
@@ -125,8 +125,7 @@
|
||||
# themeFontPath = "https://fonts.googleapis.com/css2?family=Inter:wght@200;300;600&display=swap" # external path
|
||||
themeFontPath = "/fonts" # local path
|
||||
themeFontPreload = "/fonts/inter-v12-latin-regular.woff2"
|
||||
# TODO: adjust purge settings
|
||||
purge = false
|
||||
purge = true
|
||||
# toml-docs-end theme-colors
|
||||
|
||||
[schema]
|
||||
|
@@ -30,7 +30,7 @@ const purgecss = purgeCSSPlugin({
|
||||
'./_vendor/github.com/gethinode/mod-flexsearch/v2/assets/scss/modules/flexsearch/flexsearch.scss',
|
||||
'./_vendor/github.com/gethinode/mod-katex/dist/katex.scss',
|
||||
'./_vendor/github.com/gethinode/mod-leaflet/dist/leaflet.scss',
|
||||
'./_vendor/github.com/gethinode/mod-simple-datatables/dist/simple-datatables.scss',
|
||||
'./_vendor/github.com/gethinode/mod-simple-datatables/v2/dist/simple-datatables.scss',
|
||||
'./_vendor/github.com/twbs/bootstrap/scss/_carousel.scss',
|
||||
'./_vendor/github.com/twbs/bootstrap/scss/_dropdown.scss',
|
||||
'./_vendor/github.com/twbs/bootstrap/scss/_modal.scss',
|
||||
|
@@ -22,7 +22,7 @@ As an example, the following shortcode shows an animation that plays on hover.
|
||||
|
||||
<!-- markdownlint-disable MD037 -->
|
||||
{{< example lang="hugo" >}}
|
||||
{{</* animation data="gatin.json" auto=false hover=true class="col-6 mx-auto" */>}}
|
||||
{{</* animation animation-data="gatin.json" autoplay=false hover=true class="col-6 mx-auto" */>}}
|
||||
{{< /example >}}
|
||||
<!-- markdownlint-enable MD037 -->
|
||||
|
||||
|
@@ -22,7 +22,7 @@ Hinode propose plusieurs shortcodes en plus des [éléments Bootstrap]({{% relre
|
||||
|
||||
<!-- markdownlint-disable MD037 -->
|
||||
{{< example lang="hugo" >}}
|
||||
{{</* animation data="gatin.json" auto=false hover=true class="col-6 mx-auto" */>}}
|
||||
{{</* animation animation-data="gatin.json" autoplay=false hover=true class="col-6 mx-auto" */>}}
|
||||
{{< /example >}}
|
||||
<!-- markdownlint-enable MD037 -->
|
||||
|
||||
|
@@ -21,7 +21,7 @@ Het volgende voorbeeld gebruikt een shortcode om een animatie te tonen, die afsp
|
||||
|
||||
<!-- markdownlint-disable MD037 -->
|
||||
{{< example lang="hugo" >}}
|
||||
{{</* animation data="gatin.json" auto=false hover=true class="col-6 mx-auto" */>}}
|
||||
{{</* animation animation-data="gatin.json" autoplay=false hover=true class="col-6 mx-auto" */>}}
|
||||
{{< /example >}}
|
||||
<!-- markdownlint-enable MD037 -->
|
||||
|
||||
|
@@ -7,5 +7,5 @@ github.com/gethinode/mod-cookieyes/v2 v2.0.4 h1:QgYSD3S23351e7xEeQb+Mon+e+I6Rbnn
|
||||
github.com/gethinode/mod-cookieyes/v2 v2.0.4/go.mod h1:tULb7D7CoTycGUyL7ryqHJKaX11XuL2SN+XwP7/DI0Y=
|
||||
github.com/gethinode/mod-cookieyes/v2 v2.1.2 h1:hzGCbRbpNAVkLr+jFWpAQaXHG0lgK+KgIpaZYsI1J+U=
|
||||
github.com/gethinode/mod-cookieyes/v2 v2.1.2/go.mod h1:tULb7D7CoTycGUyL7ryqHJKaX11XuL2SN+XwP7/DI0Y=
|
||||
github.com/gethinode/mod-utils/v3 v3.0.2 h1:AewNQYVXy/qoNdqJGG6nKCZXjtXavcZcgdeC1Q6EEnQ=
|
||||
github.com/gethinode/mod-utils/v3 v3.0.2/go.mod h1:9iHYWiDpDlcyrGAOHniubK/kziJYhTsw7UpGM+u4MOM=
|
||||
github.com/gethinode/mod-utils/v4 v4.4.0 h1:IhhJDLqXCdYvrjM6kUR10wlg0kyZrY94f7EuGMj8NN0=
|
||||
github.com/gethinode/mod-utils/v4 v4.4.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
|
||||
|
@@ -285,7 +285,6 @@
|
||||
"flex-column",
|
||||
"flex-fill",
|
||||
"flex-grow-1",
|
||||
"flex-md-grow-0",
|
||||
"flex-nowrap",
|
||||
"flex-row",
|
||||
"font-monospace",
|
||||
@@ -297,7 +296,6 @@
|
||||
"fs-6",
|
||||
"fs-lg-5",
|
||||
"fs-md-5",
|
||||
"fullscreen",
|
||||
"fw-30",
|
||||
"fw-bold",
|
||||
"fw-semibold",
|
||||
@@ -333,6 +331,7 @@
|
||||
"justify-content-between",
|
||||
"justify-content-center",
|
||||
"justify-content-end",
|
||||
"justify-content-md-end",
|
||||
"justify-content-md-start",
|
||||
"justify-content-start",
|
||||
"katex",
|
||||
@@ -350,7 +349,7 @@
|
||||
"m-auto",
|
||||
"m-md-n4",
|
||||
"m-n1",
|
||||
"main-content",
|
||||
"main",
|
||||
"main-nav-toggler",
|
||||
"mb-0",
|
||||
"mb-3",
|
||||
@@ -397,7 +396,6 @@
|
||||
"navbar-mode-selector",
|
||||
"navbar-nav",
|
||||
"navbar-nav-scroll",
|
||||
"navbar-title",
|
||||
"navbar-toggler",
|
||||
"next",
|
||||
"no-js",
|
||||
@@ -501,6 +499,7 @@
|
||||
"text-decoration-none",
|
||||
"text-end",
|
||||
"text-info",
|
||||
"text-md-end",
|
||||
"text-muted",
|
||||
"text-nowrap",
|
||||
"text-primary",
|
||||
@@ -623,121 +622,11 @@
|
||||
"fab-medium",
|
||||
"fab-whatsapp",
|
||||
"fab-x-twitter",
|
||||
"faq-0d9a663ea13795e571a591d17c829742",
|
||||
"faq-0d9a663ea13795e571a591d17c829742-heading-faq-0d9a663ea13795e571a591d17c829742",
|
||||
"faq-0d9a663ea13795e571a591d17c829742-item-0",
|
||||
"faq-0d9a663ea13795e571a591d17c829742-item-1",
|
||||
"faq-0d9a663ea13795e571a591d17c829742-item-2",
|
||||
"faq-1a91b395d4e278d5ad50026e5543d315",
|
||||
"faq-1a91b395d4e278d5ad50026e5543d315-heading-faq-1a91b395d4e278d5ad50026e5543d315",
|
||||
"faq-1a91b395d4e278d5ad50026e5543d315-item-0",
|
||||
"faq-1a91b395d4e278d5ad50026e5543d315-item-1",
|
||||
"faq-1a91b395d4e278d5ad50026e5543d315-item-2",
|
||||
"faq-260a338c938b84539f6f323923f8e613",
|
||||
"faq-260a338c938b84539f6f323923f8e613-heading-faq-260a338c938b84539f6f323923f8e613",
|
||||
"faq-260a338c938b84539f6f323923f8e613-item-0",
|
||||
"faq-260a338c938b84539f6f323923f8e613-item-1",
|
||||
"faq-260a338c938b84539f6f323923f8e613-item-2",
|
||||
"faq-27223f6d2ae1171f2cf24b1a28156a35",
|
||||
"faq-27223f6d2ae1171f2cf24b1a28156a35-heading-faq-27223f6d2ae1171f2cf24b1a28156a35",
|
||||
"faq-27223f6d2ae1171f2cf24b1a28156a35-item-0",
|
||||
"faq-27223f6d2ae1171f2cf24b1a28156a35-item-1",
|
||||
"faq-27223f6d2ae1171f2cf24b1a28156a35-item-2",
|
||||
"faq-2d786b12873224179f3ed158e5a7d744",
|
||||
"faq-2d786b12873224179f3ed158e5a7d744-heading-faq-2d786b12873224179f3ed158e5a7d744",
|
||||
"faq-2d786b12873224179f3ed158e5a7d744-item-0",
|
||||
"faq-2d786b12873224179f3ed158e5a7d744-item-1",
|
||||
"faq-2d786b12873224179f3ed158e5a7d744-item-2",
|
||||
"faq-3c297f2bc52c8df8d94d5eef851ab26d",
|
||||
"faq-3c297f2bc52c8df8d94d5eef851ab26d-heading-faq-3c297f2bc52c8df8d94d5eef851ab26d",
|
||||
"faq-3c297f2bc52c8df8d94d5eef851ab26d-item-0",
|
||||
"faq-3c297f2bc52c8df8d94d5eef851ab26d-item-1",
|
||||
"faq-3c297f2bc52c8df8d94d5eef851ab26d-item-2",
|
||||
"faq-7021d3f3246f1cad44eb45aab9c051af",
|
||||
"faq-7021d3f3246f1cad44eb45aab9c051af-heading-faq-7021d3f3246f1cad44eb45aab9c051af",
|
||||
"faq-7021d3f3246f1cad44eb45aab9c051af-item-0",
|
||||
"faq-7021d3f3246f1cad44eb45aab9c051af-item-1",
|
||||
"faq-7021d3f3246f1cad44eb45aab9c051af-item-2",
|
||||
"faq-79c40a4b7e8130c6d59d7d5ec68a806c",
|
||||
"faq-79c40a4b7e8130c6d59d7d5ec68a806c-heading-faq-79c40a4b7e8130c6d59d7d5ec68a806c",
|
||||
"faq-79c40a4b7e8130c6d59d7d5ec68a806c-item-0",
|
||||
"faq-79c40a4b7e8130c6d59d7d5ec68a806c-item-1",
|
||||
"faq-79c40a4b7e8130c6d59d7d5ec68a806c-item-2",
|
||||
"faq-7a94a6ed05dee266e8fca51d4b03c44a",
|
||||
"faq-7a94a6ed05dee266e8fca51d4b03c44a-heading-faq-7a94a6ed05dee266e8fca51d4b03c44a",
|
||||
"faq-7a94a6ed05dee266e8fca51d4b03c44a-item-0",
|
||||
"faq-7a94a6ed05dee266e8fca51d4b03c44a-item-1",
|
||||
"faq-7a94a6ed05dee266e8fca51d4b03c44a-item-2",
|
||||
"faq-87875e6a383425f97b473c2f294dc32b",
|
||||
"faq-87875e6a383425f97b473c2f294dc32b-heading-faq-87875e6a383425f97b473c2f294dc32b",
|
||||
"faq-87875e6a383425f97b473c2f294dc32b-item-0",
|
||||
"faq-87875e6a383425f97b473c2f294dc32b-item-1",
|
||||
"faq-87875e6a383425f97b473c2f294dc32b-item-2",
|
||||
"faq-8cbeda0cbf69e9b1f730419797381724",
|
||||
"faq-8cbeda0cbf69e9b1f730419797381724-heading-faq-8cbeda0cbf69e9b1f730419797381724",
|
||||
"faq-8cbeda0cbf69e9b1f730419797381724-item-0",
|
||||
"faq-8cbeda0cbf69e9b1f730419797381724-item-1",
|
||||
"faq-8cbeda0cbf69e9b1f730419797381724-item-2",
|
||||
"faq-a283ecb983d43eca6d74b09b4cfe0113",
|
||||
"faq-a283ecb983d43eca6d74b09b4cfe0113-heading-faq-a283ecb983d43eca6d74b09b4cfe0113",
|
||||
"faq-a283ecb983d43eca6d74b09b4cfe0113-item-0",
|
||||
"faq-a283ecb983d43eca6d74b09b4cfe0113-item-1",
|
||||
"faq-a283ecb983d43eca6d74b09b4cfe0113-item-2",
|
||||
"faq-bf296c068826c3f70cda629523eaeee2",
|
||||
"faq-bf296c068826c3f70cda629523eaeee2-heading-faq-bf296c068826c3f70cda629523eaeee2",
|
||||
"faq-bf296c068826c3f70cda629523eaeee2-item-0",
|
||||
"faq-bf296c068826c3f70cda629523eaeee2-item-1",
|
||||
"faq-bf296c068826c3f70cda629523eaeee2-item-2",
|
||||
"faq-ca8ce46ac820ed775e7a69120344616d",
|
||||
"faq-ca8ce46ac820ed775e7a69120344616d-heading-faq-ca8ce46ac820ed775e7a69120344616d",
|
||||
"faq-ca8ce46ac820ed775e7a69120344616d-item-0",
|
||||
"faq-ca8ce46ac820ed775e7a69120344616d-item-1",
|
||||
"faq-ca8ce46ac820ed775e7a69120344616d-item-2",
|
||||
"faq-cbbd7ca0faf0b753868403f958cf8744",
|
||||
"faq-cbbd7ca0faf0b753868403f958cf8744-heading-faq-cbbd7ca0faf0b753868403f958cf8744",
|
||||
"faq-cbbd7ca0faf0b753868403f958cf8744-item-0",
|
||||
"faq-cbbd7ca0faf0b753868403f958cf8744-item-1",
|
||||
"faq-cbbd7ca0faf0b753868403f958cf8744-item-2",
|
||||
"faq-cfb71a1e6c505922609807a314e54eed",
|
||||
"faq-cfb71a1e6c505922609807a314e54eed-heading-faq-cfb71a1e6c505922609807a314e54eed",
|
||||
"faq-cfb71a1e6c505922609807a314e54eed-item-0",
|
||||
"faq-cfb71a1e6c505922609807a314e54eed-item-1",
|
||||
"faq-cfb71a1e6c505922609807a314e54eed-item-2",
|
||||
"faq-dce7a0223de22fc974afefb5fb73500c",
|
||||
"faq-dce7a0223de22fc974afefb5fb73500c-heading-faq-dce7a0223de22fc974afefb5fb73500c",
|
||||
"faq-dce7a0223de22fc974afefb5fb73500c-item-0",
|
||||
"faq-dce7a0223de22fc974afefb5fb73500c-item-1",
|
||||
"faq-dce7a0223de22fc974afefb5fb73500c-item-2",
|
||||
"faq-de87d81175f84d4b473aedbb904dca29",
|
||||
"faq-de87d81175f84d4b473aedbb904dca29-heading-faq-de87d81175f84d4b473aedbb904dca29",
|
||||
"faq-de87d81175f84d4b473aedbb904dca29-item-0",
|
||||
"faq-de87d81175f84d4b473aedbb904dca29-item-1",
|
||||
"faq-de87d81175f84d4b473aedbb904dca29-item-2",
|
||||
"faq-de9ce1500782d5d44b4de7a31ac22036",
|
||||
"faq-de9ce1500782d5d44b4de7a31ac22036-heading-faq-de9ce1500782d5d44b4de7a31ac22036",
|
||||
"faq-de9ce1500782d5d44b4de7a31ac22036-item-0",
|
||||
"faq-de9ce1500782d5d44b4de7a31ac22036-item-1",
|
||||
"faq-de9ce1500782d5d44b4de7a31ac22036-item-2",
|
||||
"faq-e40f4cdf1d5fd2b6aa8c07326e2ba943",
|
||||
"faq-e40f4cdf1d5fd2b6aa8c07326e2ba943-heading-faq-e40f4cdf1d5fd2b6aa8c07326e2ba943",
|
||||
"faq-e40f4cdf1d5fd2b6aa8c07326e2ba943-item-0",
|
||||
"faq-e40f4cdf1d5fd2b6aa8c07326e2ba943-item-1",
|
||||
"faq-e40f4cdf1d5fd2b6aa8c07326e2ba943-item-2",
|
||||
"faq-ec1d24cb71b18507b09f080761d59750",
|
||||
"faq-ec1d24cb71b18507b09f080761d59750-heading-faq-ec1d24cb71b18507b09f080761d59750",
|
||||
"faq-ec1d24cb71b18507b09f080761d59750-item-0",
|
||||
"faq-ec1d24cb71b18507b09f080761d59750-item-1",
|
||||
"faq-ec1d24cb71b18507b09f080761d59750-item-2",
|
||||
"faq-f760b3a9afdbc65e4a1dea126792034b",
|
||||
"faq-f760b3a9afdbc65e4a1dea126792034b-heading-faq-f760b3a9afdbc65e4a1dea126792034b",
|
||||
"faq-f760b3a9afdbc65e4a1dea126792034b-item-0",
|
||||
"faq-f760b3a9afdbc65e4a1dea126792034b-item-1",
|
||||
"faq-f760b3a9afdbc65e4a1dea126792034b-item-2",
|
||||
"faq-f965312ce85935dd57bb6ac2a5ae85fb",
|
||||
"faq-f965312ce85935dd57bb6ac2a5ae85fb-heading-faq-f965312ce85935dd57bb6ac2a5ae85fb",
|
||||
"faq-f965312ce85935dd57bb6ac2a5ae85fb-item-0",
|
||||
"faq-f965312ce85935dd57bb6ac2a5ae85fb-item-1",
|
||||
"faq-f965312ce85935dd57bb6ac2a5ae85fb-item-2",
|
||||
"faq-664efd96843c20a5a8800d1318cb7744",
|
||||
"faq-664efd96843c20a5a8800d1318cb7744-heading-faq-664efd96843c20a5a8800d1318cb7744",
|
||||
"faq-664efd96843c20a5a8800d1318cb7744-item-0",
|
||||
"faq-664efd96843c20a5a8800d1318cb7744-item-1",
|
||||
"faq-664efd96843c20a5a8800d1318cb7744-item-2",
|
||||
"fas-1",
|
||||
"fas-2",
|
||||
"fas-3",
|
||||
|
13
go.mod
13
go.mod
@@ -8,14 +8,17 @@ require (
|
||||
github.com/gethinode/mod-bootstrap v1.3.3 // indirect
|
||||
github.com/gethinode/mod-csp v1.0.7 // indirect
|
||||
github.com/gethinode/mod-flexsearch/v2 v2.1.1 // indirect
|
||||
github.com/gethinode/mod-fontawesome/v2 v2.0.0 // indirect
|
||||
github.com/gethinode/mod-google-analytics v1.3.1 // indirect
|
||||
github.com/gethinode/mod-fontawesome/v2 v2.1.1 // indirect
|
||||
github.com/gethinode/mod-google-analytics v1.3.2 // indirect
|
||||
github.com/gethinode/mod-katex v1.1.3 // indirect
|
||||
github.com/gethinode/mod-leaflet v1.2.1 // indirect
|
||||
github.com/gethinode/mod-lottie v1.5.14 // indirect
|
||||
github.com/gethinode/mod-leaflet v1.3.0 // indirect
|
||||
github.com/gethinode/mod-lottie v1.6.0 // indirect
|
||||
github.com/gethinode/mod-mermaid v1.1.23 // indirect
|
||||
github.com/gethinode/mod-mermaid/v2 v2.0.1 // 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-utils/v3 v3.3.1 // indirect
|
||||
github.com/gethinode/mod-utils/v4 v4.5.1 // indirect
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20250606060143-c28f52c09b7a // indirect
|
||||
github.com/twbs/bootstrap v5.3.6+incompatible // indirect
|
||||
github.com/twbs/bootstrap v5.3.7+incompatible // indirect
|
||||
)
|
||||
|
20
go.sum
20
go.sum
@@ -156,6 +156,10 @@ github.com/gethinode/mod-fontawesome v1.10.1 h1:gXQ75VXI+a0W2ALkAFHd/QFQ/VoZR6eu
|
||||
github.com/gethinode/mod-fontawesome v1.10.1/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
|
||||
github.com/gethinode/mod-fontawesome/v2 v2.0.0 h1:vIcVq4sa68iqYBEei+XBZgWKvT79NXuh+jMS6yVpCV8=
|
||||
github.com/gethinode/mod-fontawesome/v2 v2.0.0/go.mod h1:MJghtpjpnbGVzRN+1rH5Fs9Y+eQAawAotGnlemEPb60=
|
||||
github.com/gethinode/mod-fontawesome/v2 v2.1.0 h1:kRQ/4ady4Ih/m3bJ/1+/rkFhunuzjNEc4NqIlpNks/o=
|
||||
github.com/gethinode/mod-fontawesome/v2 v2.1.0/go.mod h1:Jhwzi3KQI3fYn1hPNPJFCk+kcz80s8ONT4FmwLTXH2c=
|
||||
github.com/gethinode/mod-fontawesome/v2 v2.1.1 h1:EieVCvEiT0ulXpEHY4kCLJvZCIvGkupIVyoCRTidrvo=
|
||||
github.com/gethinode/mod-fontawesome/v2 v2.1.1/go.mod h1:zukv88wXqquEvTJJ9mWWk8Ia+9INnA41wYqusf2RcHA=
|
||||
github.com/gethinode/mod-google-analytics v1.0.0 h1:fly42RQ69bdyJe8WFefsBIo7WMIXkd3wZn32kyAr4h4=
|
||||
github.com/gethinode/mod-google-analytics v1.0.0/go.mod h1:dl628cFozpCvoIMCiV7ujzQipjxcm3eatXrSfLPWNII=
|
||||
github.com/gethinode/mod-google-analytics v1.0.1 h1:zbmOdnAhhFCA7qWw7fnR46biWhqW2r06sIaTWyhB5R0=
|
||||
@@ -182,6 +186,8 @@ github.com/gethinode/mod-google-analytics v1.3.0 h1:R9oRB6nbFDwLsNmIhxlcmUVH4JE1
|
||||
github.com/gethinode/mod-google-analytics v1.3.0/go.mod h1:dl628cFozpCvoIMCiV7ujzQipjxcm3eatXrSfLPWNII=
|
||||
github.com/gethinode/mod-google-analytics v1.3.1 h1:WPXrsO6Kpp0k8PYY9a1JyiZgYGMlkBfHY8eEg6CfcL0=
|
||||
github.com/gethinode/mod-google-analytics v1.3.1/go.mod h1:dl628cFozpCvoIMCiV7ujzQipjxcm3eatXrSfLPWNII=
|
||||
github.com/gethinode/mod-google-analytics v1.3.2 h1:W4caxWkSor/BFfOEGDDMp+7RajO/Jh1bE7LXxPqLE3A=
|
||||
github.com/gethinode/mod-google-analytics v1.3.2/go.mod h1:dl628cFozpCvoIMCiV7ujzQipjxcm3eatXrSfLPWNII=
|
||||
github.com/gethinode/mod-katex v1.0.0 h1:me/3dIIZBkfk1mRIFt8QiAGYwYDoSG5bc2hHRtIutFc=
|
||||
github.com/gethinode/mod-katex v1.0.0/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||
github.com/gethinode/mod-katex v1.0.1 h1:809QUztxmKgMNchU+v03iMO7Ma+ISc3ZzhXYauc21rs=
|
||||
@@ -232,6 +238,8 @@ github.com/gethinode/mod-leaflet v1.2.0 h1:5q5LHmGNi9N4cdRDCsl/6oI8vY3oQ2ogNUjP3
|
||||
github.com/gethinode/mod-leaflet v1.2.0/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
|
||||
github.com/gethinode/mod-leaflet v1.2.1 h1:p0bKi+F5vbXwYknBvFEN9KymK8PRqKaYhVz5O1QPs/c=
|
||||
github.com/gethinode/mod-leaflet v1.2.1/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
|
||||
github.com/gethinode/mod-leaflet v1.3.0 h1:rRjuuW2KVJjnrBrFIOxxHxkB6RPdmlTivBlvceBG3Fk=
|
||||
github.com/gethinode/mod-leaflet v1.3.0/go.mod h1:F/XR1lYKENw91u+IC4NXQT6dbCyJlSJUPClMVpBK8Tw=
|
||||
github.com/gethinode/mod-lottie v1.0.0 h1:1CUZMcgN5FAyjjyuP3qkaOQ6M5sv6HUAbosW4sIT5VE=
|
||||
github.com/gethinode/mod-lottie v1.0.0/go.mod h1:erRCgSL2FCfKHI0jQbSpM+g0jXl7SjKVJrh7kWGteKs=
|
||||
github.com/gethinode/mod-lottie v1.0.1 h1:+IE7xtnSVQpJS56oBJq9RWKZeFEfxrOZAqE3BSrS/u0=
|
||||
@@ -288,8 +296,12 @@ github.com/gethinode/mod-lottie v1.5.13 h1:Vth/OZDjfBZ9Kz5ew3tXGj9tU6w4StIta6qgf
|
||||
github.com/gethinode/mod-lottie v1.5.13/go.mod h1:tMFSUW9z3kC8IvDfs1ph9MGjuZFRBrpCnpodrwY+L4w=
|
||||
github.com/gethinode/mod-lottie v1.5.14 h1:17wmpi4XQzmwSB2HKNVa7c6ZzULrRnpKdowOFQQf0m8=
|
||||
github.com/gethinode/mod-lottie v1.5.14/go.mod h1:VrjjmrwP/NIrLW7oDQyEAHdbeIRQfbr5BKjgKvI9Al4=
|
||||
github.com/gethinode/mod-lottie v1.6.0 h1:O0ld9Q1rBWKb9HzuCuGPBfCegUcIqczMGNW2O/VjVYk=
|
||||
github.com/gethinode/mod-lottie v1.6.0/go.mod h1:jZy8EJ6ldLnOXhpzayJ2STZ4hzykqkguFHWpN4aHxMo=
|
||||
github.com/gethinode/mod-mermaid v1.1.23 h1:DA5iIdopb7f3wC+bfZ7J5HhcRUuVI/2j1+W/j5L/wwQ=
|
||||
github.com/gethinode/mod-mermaid v1.1.23/go.mod h1:rw6vrY9DpdJblwFwLuXCdy2kBHxMf6gGKWeetwfTSfc=
|
||||
github.com/gethinode/mod-mermaid/v2 v2.0.1 h1:QcahIFCgmYAGsukQ0d+/L4IJtDwgXgv0WzilZ9poI9o=
|
||||
github.com/gethinode/mod-mermaid/v2 v2.0.1/go.mod h1:kp3oUFAjKxuwzFbwxGWPEx5VQOu2ZHzcrwcNhDv08BI=
|
||||
github.com/gethinode/mod-simple-datatables v1.0.0 h1:Dj4WGw12OkaimwkCpLn5Jhmd49dvNJW9O2P/W9F+HlQ=
|
||||
github.com/gethinode/mod-simple-datatables v1.0.0/go.mod h1:K8T7fIdb8pMOB+OSW4A5lz5IW99+HyzcTgx764fvOGw=
|
||||
github.com/gethinode/mod-simple-datatables v1.0.2 h1:zhqxHet3iLQWYCBbGROALpOY9zQlptMycFkz1Tto5bA=
|
||||
@@ -328,6 +340,8 @@ github.com/gethinode/mod-simple-datatables v1.1.6 h1:7nPeRwHlYbmlNEg7fBV6FyXqpxW
|
||||
github.com/gethinode/mod-simple-datatables v1.1.6/go.mod h1:bvMdmQFk4Hvyltf/QhMqUaApvPbIGTnbI3JLjOEh8go=
|
||||
github.com/gethinode/mod-simple-datatables v1.1.7 h1:wCY2bWFUxRHWbWzb/zefCACooCSbDPYKrZthfn+qAgM=
|
||||
github.com/gethinode/mod-simple-datatables v1.1.7/go.mod h1:FjkIEuxqeLLEqqDcz/nHAGHsRfV7EJP5Uhk4kYD8okY=
|
||||
github.com/gethinode/mod-simple-datatables/v2 v2.0.1 h1:ZwdI96n8dM2VLwdM/x+Vj7sa4tfiAUnkDj39jn+vkXc=
|
||||
github.com/gethinode/mod-simple-datatables/v2 v2.0.1/go.mod h1:mmf1AOxpHdSRQnW2k7ExVWKTyzbG2hpsDRssmyASNb8=
|
||||
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.1 h1:jhZGlGFHHL1f5HXbBMXfiZ2gCz4TVafAzjnRPTIBSEE=
|
||||
@@ -420,6 +434,10 @@ github.com/gethinode/mod-utils/v3 v3.3.0 h1:qxuIavgL9LIyMhfCv8El+KL41rcNmQ8GaExn
|
||||
github.com/gethinode/mod-utils/v3 v3.3.0/go.mod h1:9iHYWiDpDlcyrGAOHniubK/kziJYhTsw7UpGM+u4MOM=
|
||||
github.com/gethinode/mod-utils/v3 v3.3.1 h1:0mHrUyIwSkbiQIUuXpnptYDIizkI7Ak39RTgoRMbJfY=
|
||||
github.com/gethinode/mod-utils/v3 v3.3.1/go.mod h1:9iHYWiDpDlcyrGAOHniubK/kziJYhTsw7UpGM+u4MOM=
|
||||
github.com/gethinode/mod-utils/v4 v4.5.0 h1:p6sDsMNA/KE2IK3SPdWjFX3cPAwPP5gDxzJu2tIWYl4=
|
||||
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/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/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
|
||||
@@ -450,3 +468,5 @@ github.com/twbs/bootstrap v5.3.5+incompatible h1:6XrrFNMsiTTFcVTBf2886FO2XUNtwSE
|
||||
github.com/twbs/bootstrap v5.3.5+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
||||
github.com/twbs/bootstrap v5.3.6+incompatible h1:efmXVyq839m5QQ0+JBUdQQ1TrmoBqvQ5kRhUueKsH+4=
|
||||
github.com/twbs/bootstrap v5.3.6+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
||||
github.com/twbs/bootstrap v5.3.7+incompatible h1:ea1W8TOWZFkqSK2M0McpgzLiUQVru3bz8aHb0j/XtuM=
|
||||
github.com/twbs/bootstrap v5.3.7+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
|
||||
|
@@ -31,9 +31,9 @@
|
||||
"use"
|
||||
],
|
||||
"classes": [
|
||||
"%!s(<nil>)",
|
||||
"active",
|
||||
"align-items-center",
|
||||
"align-items-start",
|
||||
"align-self-center",
|
||||
"align-self-end",
|
||||
"ball",
|
||||
@@ -50,11 +50,11 @@
|
||||
"btn-primary",
|
||||
"checkbox",
|
||||
"col",
|
||||
"col-10",
|
||||
"col-12",
|
||||
"col-6",
|
||||
"col-8",
|
||||
"col-md-",
|
||||
"col-md-1",
|
||||
"col-md-11",
|
||||
"col-md-2",
|
||||
"col-md-6",
|
||||
"col-md-8",
|
||||
@@ -92,10 +92,10 @@
|
||||
"fixed-top",
|
||||
"flex-column",
|
||||
"flex-fill",
|
||||
"flex-grow-1",
|
||||
"footer",
|
||||
"form-control",
|
||||
"fs-3",
|
||||
"fullscreen",
|
||||
"fw-30",
|
||||
"fw-bold",
|
||||
"h-100",
|
||||
@@ -111,12 +111,14 @@
|
||||
"is-search",
|
||||
"justify-content-center",
|
||||
"justify-content-end",
|
||||
"justify-content-md-start",
|
||||
"justify-content-start",
|
||||
"label",
|
||||
"lead",
|
||||
"link-bg-footer",
|
||||
"link-secondary",
|
||||
"main-content",
|
||||
"m-auto",
|
||||
"main",
|
||||
"main-nav-toggler",
|
||||
"me-auto",
|
||||
"middle-bar",
|
||||
@@ -156,19 +158,15 @@
|
||||
"ps-1",
|
||||
"pt-1",
|
||||
"pt-4",
|
||||
"pt-5",
|
||||
"pt-md-0",
|
||||
"pt-md-3",
|
||||
"px-4",
|
||||
"px-xxl-0",
|
||||
"py-3",
|
||||
"py-4",
|
||||
"py-md-5",
|
||||
"rounded",
|
||||
"row",
|
||||
"row-cols-1",
|
||||
"row-cols-2",
|
||||
"row-cols-md-2",
|
||||
"row-cols-sm-3",
|
||||
"search",
|
||||
"search-input",
|
||||
@@ -179,6 +177,7 @@
|
||||
"text-body",
|
||||
"text-center",
|
||||
"text-decoration-none",
|
||||
"text-md-start",
|
||||
"text-muted",
|
||||
"text-secondary",
|
||||
"text-sm-start",
|
||||
|
@@ -51,6 +51,17 @@
|
||||
{{- $width := index $target "width" -}}
|
||||
{{- $data := index $target "data" -}}
|
||||
|
||||
{{ if and $args.imageWidth $args.imageHeight }}
|
||||
{{ $height = $args.imageHeight }}
|
||||
{{ $width = $args.imageWidth }}
|
||||
{{ else if and $args.imageWidth $height $width }}
|
||||
{{ $height = int (math.Round (mul (div (float $args.imageWidth) $width) $height)) }}
|
||||
{{ $width = $args.imageWidth }}
|
||||
{{ else if and $args.imageHeight $height $width }}
|
||||
{{ $width = int (math.Round (mul (div (float $args.imageHeight) $height) $width)) }}
|
||||
{{ $height = $args.imageHeight }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Add color modes */}}
|
||||
{{- range $none := $modes -}}
|
||||
{{- if ne $none $args.colorMode -}}
|
||||
@@ -81,7 +92,12 @@
|
||||
{{ with $width }} width="{{ . }}"{{ end -}}
|
||||
{{ with $alt }} alt="{{ . }}"{{ end }}>
|
||||
{{- else -}}
|
||||
<svg class="{{ $args.class }}">
|
||||
<svg class="{{ $args.class }}"
|
||||
{{ if or $args.imageHeight $args.imageWidth }}
|
||||
{{ with $width }} width="{{ . }}"{{ end }}
|
||||
{{ with $height }} height="{{ . }}"{{ end }}
|
||||
{{ end }}
|
||||
>
|
||||
<use href="{{ $fallbackURL }}#{{ $fileAnchor }}"></use>
|
||||
</svg>
|
||||
{{- end -}}
|
||||
|
@@ -110,7 +110,7 @@
|
||||
{{ $title | safeHTML }}
|
||||
{{ else }}
|
||||
{{/* Render horizontal component */}}
|
||||
<div class="row row-cols-1 {{ if eq $args.orientation "stacked" }}row-cols-md-2 {{ end }} w-100">
|
||||
<div class="row row-cols-1 {{ if eq $args.orientation "stacked" }}row-cols-md-2 {{ end }} flex-grow-1">
|
||||
{{ $order1 := "order-1 order-md-0" }}
|
||||
{{ $order2 := "order-0 order-md-1" }}
|
||||
{{ if eq $args.order "first" }}
|
||||
|
@@ -38,6 +38,8 @@
|
||||
"page" $args.page
|
||||
"ratio" $args.ratio
|
||||
"portrait" $args.portrait
|
||||
"image-width" $args.imageWidth
|
||||
"image-height" $args.imageHeight
|
||||
"wrapper" $args.wrapper
|
||||
"class" $args.class
|
||||
"title" $args.title
|
||||
|
@@ -98,6 +98,6 @@
|
||||
{{ partial "links-content.html" (dict "links" $args.links "justify" $args.justify "type" $args.linkType "li" false) }}
|
||||
</div>
|
||||
|
||||
<div class="d-{{ $breakpoint.current }}-none">
|
||||
<div class="d-{{ $breakpoint.current }}-none pt-{{ $padding.y }}">
|
||||
{{ partial "links-content.html" (dict "links" $args.links "justify" $args.justify "type" $args.linkType "li" true) }}
|
||||
</div>
|
||||
|
@@ -117,48 +117,16 @@
|
||||
{{- $enableLanguage := or $page.IsTranslated hugo.IsMultilingual -}}
|
||||
{{- $horizontal := default false site.Params.navigation.horizontal -}}
|
||||
|
||||
{{- $logo := $args.logo | default site.Params.navigation.logo -}}
|
||||
{{- $logoLight := "" -}}
|
||||
{{- $logoDark := "" -}}
|
||||
{{- if $enableDarkMode -}}
|
||||
{{ $ext := path.Ext $logo -}}
|
||||
{{- $ext := path.Ext $logo -}}
|
||||
{{- $base := strings.TrimSuffix $ext $logo -}}
|
||||
{{- range $suffix := $modes -}}
|
||||
{{- $base = strings.TrimSuffix (printf "-%s" $suffix) $base -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $logoLight = printf "%s-light%s" $base $ext -}}
|
||||
{{- $logoDark = printf "%s-dark%s" $base $ext -}}
|
||||
|
||||
{{- $light := fileExists (path.Join "/static" $logoLight) -}}
|
||||
{{- $dark := fileExists (path.Join "/static" $logoDark) -}}
|
||||
{{- if and $light (not $dark) -}}
|
||||
{{- warnf "partial [assets/navbar.html] - Missing file: %s" $logoDark -}}
|
||||
{{- $logoLight = "" -}}
|
||||
{{- $logoDark = "" -}}
|
||||
{{- end -}}
|
||||
{{- if and (not $light) $dark -}}
|
||||
{{- warnf "partial [assets/navbar.html] - Missing file: %s" $logoLight -}}
|
||||
{{- $logoLight = "" -}}
|
||||
{{- $logoDark = "" -}}
|
||||
{{- end -}}
|
||||
{{- if not (or $light $dark) -}}
|
||||
{{- $logoLight = "" -}}
|
||||
{{- $logoDark = "" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ if $logo }}{{ $logo = partial "utilities/URLJoin.html" (dict "base" $baseURL "path" $logo) }}{{ end }}
|
||||
{{ if $logoLight }}{{ $logoLight = partial "utilities/URLJoin.html" (dict "base" $baseURL "path" $logoLight) }}{{ end }}
|
||||
{{ if $logoDark }}{{ $logoDark = partial "utilities/URLJoin.html" (dict "base" $baseURL "path" $logoDark) }}{{ end }}
|
||||
|
||||
{{- $title := site.Title -}}
|
||||
{{- if $args.title -}}
|
||||
{{- $title = $args.title -}}
|
||||
{{- if not $args.logo }}{{ $logo = "" }}{{ end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{ $logo := "" }}
|
||||
{{ with $args.logo | default site.Params.navigation.logo }}
|
||||
{{ $logo = partial "assets/image.html" (dict "src" . "loading" "eager" "title" $title "image-height" 30) }}
|
||||
{{ end }}
|
||||
|
||||
{{- $pre := $args.pre -}}
|
||||
{{- $post := $args.post -}}
|
||||
{{- $class := $args.class -}}
|
||||
@@ -201,18 +169,9 @@
|
||||
</div>
|
||||
|
||||
{{/* Insert the brand logo or name */}}
|
||||
<div class="{{ if (or $logoLight $logo) }}mx-auto{{ else }}flex-grow-1 flex-{{ $args.breakpoint }}-grow-0{{ end }}">
|
||||
<div class="{{ if $logo }}mx-auto{{ else }}flex-grow-1 flex-{{ $args.breakpoint }}-grow-0{{ end }}">
|
||||
<a class="navbar-brand" href="{{ site.Home.RelPermalink }}" aria-label="{{ T "home" }}">
|
||||
{{- if (and $logoLight $logoDark) -}}
|
||||
{{ $width := partial "utilities/GetWidth.html" (dict "path" $logoLight "height" 30) }}
|
||||
<img src="{{if $absoluteURL }}{{ absURL $logoLight }}{{ else }}{{ $logoLight }}{{ end }}" class="d-none-inline-dark" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}>
|
||||
<img src="{{if $absoluteURL }}{{ absURL $logoDark }}{{ else }}{{ $logoDark }}{{ end }}" class="d-none-inline-light" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}>
|
||||
{{- else if $logo -}}
|
||||
{{ $width := partial "utilities/GetWidth.html" (dict "path" $logo "height" 30) }}
|
||||
<img src="{{if $absoluteURL }}{{ absURL $logo }}{{ else }}{{ $logo }}{{ end }}" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}>
|
||||
{{- else -}}
|
||||
<div class="navbar-title fw-bold h-100">{{ $title }}</div>
|
||||
{{- end -}}
|
||||
{{- with $logo -}}{{ . }}{{- else -}}<div class="navbar-title fw-bold h-100">{{ $title }}</div>{{- end -}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
@@ -1,125 +0,0 @@
|
||||
{{- $page := .page -}}
|
||||
{{- $headings := .headings -}}
|
||||
{{- $orientation := .orientation | default "stacked" -}}
|
||||
{{- $actions := .actions -}}
|
||||
{{- $width := .width | default 6 }}
|
||||
{{ $sizes := "100vw" }}
|
||||
{{- if or (lt $width 1) (gt $width 12) -}}
|
||||
{{- $width = 6 -}}
|
||||
{{- warnf "partial [list/featured.html] - Invalid column width: %d" $width -}}
|
||||
{{ end -}}
|
||||
{{- $justify := .justify | default "center" -}}
|
||||
{{- $supportedJustify := slice "start" "end" "center" "between" "around" "evenly" -}}
|
||||
{{- if not (in $supportedJustify $justify) -}}
|
||||
{{- errorf "partial [list/featured.html] - Invalid value for param 'justify': %s" $justify -}}
|
||||
{{- end -}}
|
||||
{{- $align := .align | default "center" -}}
|
||||
{{- $supportedAlign := slice "start" "end" "center" -}}
|
||||
{{- if not (in $supportedAlign $align) -}}
|
||||
{{- errorf "partial [list/featured.html] - Invalid value for param 'align': %s" $align -}}
|
||||
{{- end -}}
|
||||
{{- $breadcrumb := and (not $page.IsHome) site.Params.navigation.breadcrumb -}}
|
||||
|
||||
{{- define "_partials/inline/featured-sizes.html" }}
|
||||
{{ $sizes := printf "(min-width: 768px) %dvw, 50vw" (int (math.Round (div (mul .width 100) 12))) }}
|
||||
{{ return $sizes }}
|
||||
{{ end }}
|
||||
|
||||
{{- define "_partials/inline/featured-body.html" }}
|
||||
{{- $page := .page -}}
|
||||
{{- $headings := .headings -}}
|
||||
{{- $orientation := .orientation | default "stacked" -}}
|
||||
{{- $actions := .actions -}}
|
||||
{{- $align := .align | default "center" -}}
|
||||
|
||||
<div class="text-{{ $align }}">
|
||||
{{ $title := $page.Title }}
|
||||
{{ if site.Params.main.titleCase }}{{ $title = title $title }}{{ end }}
|
||||
|
||||
{{ with $title }}<p class="display-4">{{ . }}</p>{{ end }}
|
||||
<span class="fs-5 text-muted">{{ $page.Description }}</span>
|
||||
|
||||
{{ if $actions }}
|
||||
{{- $actions = sort $actions "weight" "asc" -}}
|
||||
<div class="hstack{{ if gt (len $actions) 1 }} gap-1{{ end }} justify-content-{{ $align}} pt-5 pt-md-3">
|
||||
{{ range $actions }}
|
||||
{{ partial "assets/button.html" (dict
|
||||
"href" .url
|
||||
"icon" .icon
|
||||
"label" .label
|
||||
"title" .title
|
||||
"outline" .outline
|
||||
"order" "last"
|
||||
"justify" "start"
|
||||
) }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
{{- define "_partials/inline/featured-illustration.html" }}
|
||||
{{- $page := .page -}}
|
||||
{{- $style := printf "img-wrap mx-auto mx-md-0 %s" .style -}}
|
||||
{{ $sizes := .sizes }}
|
||||
|
||||
{{ if $page.Params.icon }}
|
||||
{{- $icon := (or (and (reflect.IsMap $page.Params.Icon) $page.Params.Icon.url) $page.Params.Icon) -}}
|
||||
{{- $mode := and (reflect.IsMap $page.Params.Icon) $page.Params.Icon.mode -}}
|
||||
{{ if eq (lower (path.Ext $icon)) ".json" }}
|
||||
{{ partial "assets/animation.html" (dict "data" $icon "mode" $mode "loop" false "hover" true "class" "col-6 mx-auto text-center") }}
|
||||
{{ else }}
|
||||
{{ partial "assets/icon.html" (dict "icon" "mode" $mode $icon "wrapper" "col-6 mx-auto text-center")}}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{- $thumbnail := "" -}}
|
||||
{{ if reflect.IsMap $page.Params.Thumbnail }}{{ $thumbnail = $page.Params.Thumbnail.url }}{{ else }}{{ $thumbnail = $page.Params.Thumbnail }}{{ end }}
|
||||
{{- if $thumbnail }}
|
||||
{{ partial "assets/image.html" (dict
|
||||
"src" $thumbnail
|
||||
"ratio" "16x9"
|
||||
"sizes" $sizes
|
||||
"wrapper" $style
|
||||
"class" "rounded"
|
||||
"title" $page.Site.Title
|
||||
"priority" "high"
|
||||
) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
<div class="container-fluid p-0 {{ with site.Params.home.feature.color }} bg-{{ . }} bg-opacity-{{ site.Params.style.themeOpacity | default "25" | safeHTML }}{{ end }}">
|
||||
<div class="container-xxl p-4 px-xxl-0 {{ if site.Params.home.fullCover }} fullcover{{ end }} d-flex flex-column">
|
||||
{{ if $breadcrumb }}
|
||||
<div>{{ partial "assets/breadcrumb.html" (dict "page" $page) }}</div>
|
||||
{{ end -}}
|
||||
|
||||
{{ if eq $orientation "stacked" }}
|
||||
<div class="row justify-content-center flex-fill">
|
||||
<div class="col-12 col-md-{{ $width }} m-auto text-center">
|
||||
{{ $sizes = partial "inline/featured-sizes.html" (dict "width" $width) }}
|
||||
{{ partial "inline/featured-illustration.html" (dict "page" $page "sizes" $sizes "style" "pb-4") }}
|
||||
{{ partial "inline/featured-body.html" (dict "page" $page "headings" $headings "orientation" $orientation "actions" $actions) }}
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="row row-cols-1 row-cols-md-2 justify-content-{{ $justify }} flex-fill">
|
||||
<div class="col col-12 col-md-{{ $width }} order-1 order-md-0 my-md-auto">
|
||||
{{ partial "inline/featured-body.html" (dict "page" $page "headings" $headings "orientation" $orientation "actions" $actions "align" $align) }}
|
||||
</div>
|
||||
{{ $newWidth := $width }}
|
||||
{{ if gt $width 6 }}{{ $newWidth = sub 12 $width }}{{ end }}
|
||||
{{ $sizes = partial "inline/featured-sizes.html" (dict "width" $newWidth) }}
|
||||
<div class="col col-12 col-md-{{ $newWidth }} order-0 order-md-1 text-center my-md-auto align-self-end">
|
||||
{{ partial "inline/featured-illustration.html" (dict "page" $page "sizes" $sizes "style" "pb-4 pb-md-0") }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ with $headings }}
|
||||
<div class="col col-12 p-0 pt-5">
|
||||
{{ partial "assets/toc-main.html" (dict "headings" .) }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
@@ -50,7 +50,7 @@
|
||||
"breakpoint" (default "md" site.Params.navigation.size))
|
||||
-}}
|
||||
|
||||
<div id="container" class="main-content fullscreen">
|
||||
<div id="container" class="main">
|
||||
{{ $blocks }}
|
||||
{{ block "main" . }}{{ end -}}
|
||||
</div>
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@gethinode/hinode",
|
||||
"version": "1.0.0-alpha9",
|
||||
"version": "1.0.0-beta",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@gethinode/hinode",
|
||||
"version": "1.0.0-alpha9",
|
||||
"version": "1.0.0-beta",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@fullhuman/postcss-purgecss": "^7.0.2",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@gethinode/hinode",
|
||||
"version": "1.0.0-alpha9",
|
||||
"version": "1.0.0-beta",
|
||||
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
||||
"keywords": [
|
||||
"hugo",
|
||||
|
Reference in New Issue
Block a user