mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-07 18:14:28 +00:00
Compare commits
81 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
5d27d602d2 | ||
![]() |
66f3fd227b | ||
![]() |
e8f38fc73c | ||
![]() |
6f5756f3bf | ||
![]() |
a56b1d6614 | ||
![]() |
967492de76 | ||
![]() |
2b876fbb2e | ||
![]() |
8a0b0df3ff | ||
![]() |
20f4e959d6 | ||
![]() |
a46317f1d2 | ||
![]() |
d264c9154e | ||
![]() |
96dacd5838 | ||
![]() |
5a6f58a96d | ||
![]() |
05e57ff255 | ||
![]() |
cd32208639 | ||
![]() |
ecfd56f2f8 | ||
![]() |
4bfba0c633 | ||
![]() |
02251b0b03 | ||
![]() |
cf486aa9c7 | ||
![]() |
1dafc6a881 | ||
![]() |
4c70245e4f | ||
![]() |
b2a79c2732 | ||
![]() |
8ad9f92752 | ||
![]() |
3cf45385db | ||
![]() |
83c697a7ae | ||
![]() |
6b62c2c701 | ||
![]() |
428e10bc5a | ||
![]() |
6deeeaf9d9 | ||
![]() |
2c191482ab | ||
![]() |
cc934652cc | ||
![]() |
7641184189 | ||
![]() |
fae0dff78b | ||
![]() |
d0b7922ebb | ||
![]() |
6433ba14aa | ||
![]() |
bf8cbee305 | ||
![]() |
af24d3ed3d | ||
![]() |
942323218c | ||
![]() |
d1baf26c08 | ||
![]() |
8aa288d9aa | ||
![]() |
9c71856e49 | ||
![]() |
9300a794b1 | ||
![]() |
6d57058d9e | ||
![]() |
b6e5b24514 | ||
![]() |
f1d99aa191 | ||
![]() |
5597ad8c7d | ||
![]() |
cce1a68c0b | ||
![]() |
b3116d0c86 | ||
![]() |
0540f4f0ae | ||
![]() |
172fbcfbfb | ||
![]() |
2cfb171f9e | ||
![]() |
d1e589f60c | ||
![]() |
e866263fd0 | ||
![]() |
f749f7311c | ||
![]() |
29f0caf070 | ||
![]() |
b3a16435f8 | ||
![]() |
2a17b0faa1 | ||
![]() |
b29206df52 | ||
![]() |
88210f6f0f | ||
![]() |
571353a1f0 | ||
![]() |
22a2b3e308 | ||
![]() |
c91642cbb8 | ||
![]() |
12f334292a | ||
![]() |
9394ae46e8 | ||
![]() |
aa82875644 | ||
![]() |
6245c70de5 | ||
![]() |
51a85ac675 | ||
![]() |
a9d62233b4 | ||
![]() |
b9ff083fee | ||
![]() |
a8efa359f9 | ||
![]() |
0be27d429a | ||
![]() |
e6de1f6d5c | ||
![]() |
7db1b24358 | ||
![]() |
7b68f9b26c | ||
![]() |
9c0427be0d | ||
![]() |
da32ba604a | ||
![]() |
011c83bfc9 | ||
![]() |
5bc0364110 | ||
![]() |
b4e09ac819 | ||
![]() |
baa8b31078 | ||
![]() |
54c3afaa31 | ||
![]() |
00bc00d877 |
7
.github/workflows/lint-build.yml
vendored
7
.github/workflows/lint-build.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-12, windows-latest, ubuntu-latest]
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
node-version: [18.x, 20.x]
|
node-version: [18.x, 20.x]
|
||||||
|
|
||||||
@@ -51,6 +51,11 @@ jobs:
|
|||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: ">1.0.0"
|
||||||
|
|
||||||
- name: Set up Node.js ${{ matrix.node-version }}
|
- name: Set up Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
@@ -41,3 +41,7 @@ a.btn {
|
|||||||
background-repeat: no-repeat if($enable-important-utilities, !important, null);
|
background-repeat: no-repeat if($enable-important-utilities, !important, null);
|
||||||
background-size: $btn-close-width if($enable-important-utilities, !important, null);
|
background-size: $btn-close-width if($enable-important-utilities, !important, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-link {
|
||||||
|
--bs-btn-padding-x: 0;
|
||||||
|
}
|
||||||
|
@@ -1,6 +1,10 @@
|
|||||||
// add zoom animation with opacity change on card img hover
|
// add zoom animation with opacity change on card img hover
|
||||||
// source: https://stackoverflow.com/a/43816376
|
// source: https://stackoverflow.com/a/43816376
|
||||||
|
|
||||||
|
.card-img-bg {
|
||||||
|
background-color: var(--#{$prefix}secondary-bg);
|
||||||
|
}
|
||||||
|
|
||||||
.card-img-wrap {
|
.card-img-wrap {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -91,3 +95,7 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-button-link {
|
||||||
|
text-decoration: underline if($enable-important-utilities, !important, null);
|
||||||
|
}
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
text-align: start;
|
text-align: start;
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
padding: 0 0 (4 * $spacer) 0;
|
padding: 0 0 (4 * $spacer);
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -140,7 +140,7 @@
|
|||||||
white-space: normal;
|
white-space: normal;
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding: 0 $spacer 0 $spacer;
|
padding: 0 $spacer;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
// stylelint-disable annotation-no-unknown
|
// stylelint-disable annotation-no-unknown
|
||||||
|
|
||||||
// scss-docs-start display-color
|
// scss-docs-start display-color
|
||||||
.d-none-light {
|
.d-none-light, .d-none-inline-light {
|
||||||
display: none if($enable-important-utilities, !important, null);
|
display: none if($enable-important-utilities, !important, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -13,13 +13,21 @@
|
|||||||
display: block if($enable-important-utilities, !important, null);
|
display: block if($enable-important-utilities, !important, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.d-none-inline-dark {
|
||||||
|
display: inline if($enable-important-utilities, !important, null);
|
||||||
|
}
|
||||||
|
|
||||||
@if $enable-dark-mode {
|
@if $enable-dark-mode {
|
||||||
@include color-mode(dark) {
|
@include color-mode(dark) {
|
||||||
.d-none-light {
|
.d-none-light {
|
||||||
display: block if($enable-important-utilities, !important, null);
|
display: block if($enable-important-utilities, !important, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
.d-none-dark {
|
.d-none-inline-light {
|
||||||
|
display: inline if($enable-important-utilities, !important, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
.d-none-dark, .d-none-inline-dark {
|
||||||
display: none if($enable-important-utilities, !important, null);
|
display: none if($enable-important-utilities, !important, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -66,6 +66,15 @@ arguments:
|
|||||||
Flag indicating if pagination should be added to the card group, if the
|
Flag indicating if pagination should be added to the card group, if the
|
||||||
list exceeds the maximum number of cards to display.
|
list exceeds the maximum number of cards to display.
|
||||||
group: partial
|
group: partial
|
||||||
|
pagination:
|
||||||
|
type: int
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
Number of elements per page in pagination, overrides site settings.
|
||||||
|
group: partial
|
||||||
|
options:
|
||||||
|
min: 1
|
||||||
|
release: v0.23.12
|
||||||
href:
|
href:
|
||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
@@ -94,6 +103,16 @@ 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`.
|
||||||
|
buttonType:
|
||||||
|
type: select
|
||||||
|
optional: true
|
||||||
|
default: button
|
||||||
|
release: v0.23.18
|
||||||
|
comment: Type of the button elements.
|
||||||
|
options:
|
||||||
|
values:
|
||||||
|
- link
|
||||||
|
- button
|
||||||
hook:
|
hook:
|
||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
|
@@ -206,11 +206,30 @@ arguments:
|
|||||||
release: v0.23.2
|
release: v0.23.2
|
||||||
comment: >-
|
comment: >-
|
||||||
Label of the link button, defaults to the card title.
|
Label of the link button, defaults to the card title.
|
||||||
|
buttonType:
|
||||||
|
type: select
|
||||||
|
parent: cascade
|
||||||
|
optional: true
|
||||||
|
default: button
|
||||||
|
comment: Type of the button element.
|
||||||
|
release: v0.23.18
|
||||||
|
options:
|
||||||
|
values:
|
||||||
|
- link
|
||||||
|
- button
|
||||||
hook:
|
hook:
|
||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
comment: Render hook for the image partial.
|
comment: Render hook for the image partial.
|
||||||
group: partial
|
group: partial
|
||||||
|
sizes:
|
||||||
|
type: string
|
||||||
|
default: 100vw
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
One or more strings separated by commas, indicating the source sizes of an
|
||||||
|
image set.
|
||||||
|
group: partial
|
||||||
body:
|
body:
|
||||||
optional: true
|
optional: true
|
||||||
comment: >-
|
comment: >-
|
||||||
|
@@ -98,6 +98,14 @@ arguments:
|
|||||||
- low
|
- low
|
||||||
- auto
|
- auto
|
||||||
group: partial
|
group: partial
|
||||||
|
sizes:
|
||||||
|
type: string
|
||||||
|
default: 100vw
|
||||||
|
optional: true
|
||||||
|
comment: >-
|
||||||
|
One or more strings separated by commas, indicating the source sizes of an
|
||||||
|
image set.
|
||||||
|
group: partial
|
||||||
title:
|
title:
|
||||||
type: string
|
type: string
|
||||||
optional: true
|
optional: true
|
||||||
|
@@ -118,6 +118,7 @@ arguments:
|
|||||||
values:
|
values:
|
||||||
- light
|
- light
|
||||||
- dark
|
- dark
|
||||||
|
- none
|
||||||
group: partial
|
group: partial
|
||||||
release: v0.23.0
|
release: v0.23.0
|
||||||
logo:
|
logo:
|
||||||
|
@@ -136,7 +136,7 @@ As an example, the following shortcode displays a card group of three elements.
|
|||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* card-group padding="3" gutter="3" */>}}
|
{{</* card-group padding="3" gutter="3" button=true buttonType="link" */>}}
|
||||||
{{</* card title="Bootstrap framework" icon="fab bootstrap" */>}}
|
{{</* card title="Bootstrap framework" icon="fab bootstrap" */>}}
|
||||||
Build fast, responsive sites with Bootstrap 5. Easily customize your site with the source
|
Build fast, responsive sites with Bootstrap 5. Easily customize your site with the source
|
||||||
Sass files.
|
Sass files.
|
||||||
@@ -291,6 +291,7 @@ As an example, the following shortcodes render links in different formats.
|
|||||||
- {{</* link name=hinode cue=true tab=true >}}Named link opening in new tab with icon{{< /link */>}}
|
- {{</* link name=hinode cue=true tab=true >}}Named link opening in new tab with icon{{< /link */>}}
|
||||||
- {{</* link hinode /*/>}}
|
- {{</* link hinode /*/>}}
|
||||||
- {{</* link href="https://developer.mozilla.org" >}}External link{{< /link */>}}
|
- {{</* link href="https://developer.mozilla.org" >}}External link{{< /link */>}}
|
||||||
|
- {{</* link href="https://demo.gethinode.com/en/about/" >}}Surrogate external link{{< /link */>}}
|
||||||
- {{</* link "./projects/another-project" >}}Internal link with title{{< /link */>}}
|
- {{</* link "./projects/another-project" >}}Internal link with title{{< /link */>}}
|
||||||
- {{</* link url="projects/another-project" /*/>}}
|
- {{</* link url="projects/another-project" /*/>}}
|
||||||
- {{</* link url="/projects/another-project" /*/>}}
|
- {{</* link url="/projects/another-project" /*/>}}
|
||||||
|
@@ -93,6 +93,7 @@
|
|||||||
"btn-close",
|
"btn-close",
|
||||||
"btn-group",
|
"btn-group",
|
||||||
"btn-light",
|
"btn-light",
|
||||||
|
"btn-link",
|
||||||
"btn-outline-primary",
|
"btn-outline-primary",
|
||||||
"btn-outline-secondary",
|
"btn-outline-secondary",
|
||||||
"btn-primary",
|
"btn-primary",
|
||||||
@@ -104,8 +105,10 @@
|
|||||||
"card-body-link",
|
"card-body-link",
|
||||||
"card-body-margin",
|
"card-body-margin",
|
||||||
"card-button",
|
"card-button",
|
||||||
|
"card-button-link",
|
||||||
"card-emphasize",
|
"card-emphasize",
|
||||||
"card-icon",
|
"card-icon",
|
||||||
|
"card-img-bg",
|
||||||
"card-img-top",
|
"card-img-top",
|
||||||
"card-img-wrap",
|
"card-img-wrap",
|
||||||
"card-text",
|
"card-text",
|
||||||
@@ -219,6 +222,7 @@
|
|||||||
"flex-column",
|
"flex-column",
|
||||||
"flex-fill",
|
"flex-fill",
|
||||||
"flex-grow-1",
|
"flex-grow-1",
|
||||||
|
"flex-md-grow-0",
|
||||||
"font-monospace",
|
"font-monospace",
|
||||||
"footer",
|
"footer",
|
||||||
"form-control",
|
"form-control",
|
||||||
@@ -301,11 +305,13 @@
|
|||||||
"navbar",
|
"navbar",
|
||||||
"navbar-brand",
|
"navbar-brand",
|
||||||
"navbar-collapse",
|
"navbar-collapse",
|
||||||
|
"navbar-container",
|
||||||
"navbar-contrast",
|
"navbar-contrast",
|
||||||
"navbar-expand-md",
|
"navbar-expand-md",
|
||||||
"navbar-fixed-top",
|
"navbar-fixed-top",
|
||||||
"navbar-nav",
|
"navbar-nav",
|
||||||
"navbar-nav-scroll",
|
"navbar-nav-scroll",
|
||||||
|
"navbar-title",
|
||||||
"navbar-toggler",
|
"navbar-toggler",
|
||||||
"next",
|
"next",
|
||||||
"no-js",
|
"no-js",
|
||||||
|
14
go.mod
14
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.5 // indirect
|
github.com/gethinode/mod-bootstrap v1.2.8 // indirect
|
||||||
github.com/gethinode/mod-flexsearch v1.11.1 // indirect
|
github.com/gethinode/mod-flexsearch v1.11.3 // indirect
|
||||||
github.com/gethinode/mod-fontawesome v1.8.1 // indirect
|
github.com/gethinode/mod-fontawesome v1.8.2 // indirect
|
||||||
github.com/gethinode/mod-katex v1.0.7 // indirect
|
github.com/gethinode/mod-katex v1.0.9 // indirect
|
||||||
github.com/gethinode/mod-leaflet v1.0.0 // indirect
|
github.com/gethinode/mod-leaflet v1.0.1 // indirect
|
||||||
github.com/gethinode/mod-lottie v1.4.4 // indirect
|
github.com/gethinode/mod-lottie v1.4.6 // indirect
|
||||||
github.com/gethinode/mod-utils/v2 v2.1.1 // indirect
|
github.com/gethinode/mod-utils/v2 v2.2.2 // 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.3+incompatible // indirect
|
github.com/twbs/bootstrap v5.3.3+incompatible // indirect
|
||||||
)
|
)
|
||||||
|
18
go.sum
18
go.sum
@@ -16,6 +16,10 @@ github.com/gethinode/mod-bootstrap v1.2.4 h1:4CFNpwpRKiZlMVWg9u5+ijSb924j4yM3G1p
|
|||||||
github.com/gethinode/mod-bootstrap v1.2.4/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
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 h1:h6yAlkMZA34wJU3pLFpLxp1ynEBte/YTY4kGEQtMGPE=
|
||||||
github.com/gethinode/mod-bootstrap v1.2.5/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
github.com/gethinode/mod-bootstrap v1.2.5/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
||||||
|
github.com/gethinode/mod-bootstrap v1.2.6 h1:joKKVqWzPgitPbUFlU4oIRj72YXsEHkVun3TPf4ZZ2Q=
|
||||||
|
github.com/gethinode/mod-bootstrap v1.2.6/go.mod h1:CL9IDot6nbXIWJYE/KxfsTdYYEJIGL17BXbAYPn+wVQ=
|
||||||
|
github.com/gethinode/mod-bootstrap v1.2.8 h1:kIKSO6qqE8xA0KQC5s6kkEv5UDc8oT17HalGIwB+dSc=
|
||||||
|
github.com/gethinode/mod-bootstrap v1.2.8/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=
|
||||||
@@ -58,6 +62,8 @@ github.com/gethinode/mod-flexsearch v1.11.0 h1:CQArPhjQRtIZqAK4ysOiBzAB1hi//L4RT
|
|||||||
github.com/gethinode/mod-flexsearch v1.11.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
github.com/gethinode/mod-flexsearch v1.11.0/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
github.com/gethinode/mod-flexsearch v1.11.1 h1:TtaE6Dv0lH4x73SHDaZpQJLjk52lRu/VoLf6+CXFOLs=
|
github.com/gethinode/mod-flexsearch v1.11.1 h1:TtaE6Dv0lH4x73SHDaZpQJLjk52lRu/VoLf6+CXFOLs=
|
||||||
github.com/gethinode/mod-flexsearch v1.11.1/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
github.com/gethinode/mod-flexsearch v1.11.1/go.mod h1:L8hrnpupx27cez2ObMX8gWnhbW6qss4HGH1Ea4UaBRQ=
|
||||||
|
github.com/gethinode/mod-flexsearch v1.11.3 h1:ykxpUg8M4vr1C4QzxJOPGt+1ZmPAD/gOCZoFcZxWoWw=
|
||||||
|
github.com/gethinode/mod-flexsearch v1.11.3/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-fontawesome v1.8.0 h1:YEuCmvCdzcemF1eFK35Wnp1asKKO3/xbx
|
|||||||
github.com/gethinode/mod-fontawesome v1.8.0/go.mod h1:uvuC2YL8mdXNp6NRzFOu4TWsHvtY9AZ8YxJkF23/M/8=
|
github.com/gethinode/mod-fontawesome v1.8.0/go.mod h1:uvuC2YL8mdXNp6NRzFOu4TWsHvtY9AZ8YxJkF23/M/8=
|
||||||
github.com/gethinode/mod-fontawesome v1.8.1 h1:iyvULrpaGizQoI5Vl9WjFYcMGWefdyG90NGK2UKax+k=
|
github.com/gethinode/mod-fontawesome v1.8.1 h1:iyvULrpaGizQoI5Vl9WjFYcMGWefdyG90NGK2UKax+k=
|
||||||
github.com/gethinode/mod-fontawesome v1.8.1/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
|
github.com/gethinode/mod-fontawesome v1.8.1/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
|
||||||
|
github.com/gethinode/mod-fontawesome v1.8.2 h1:LAzLytyh9c9gLzBWMju6Gtp3uEojhBQEYw0o38EUKZY=
|
||||||
|
github.com/gethinode/mod-fontawesome v1.8.2/go.mod h1:xBKsZH3WJtMOItZVlp9SbO51uaBy6IbvUZSKpNu3b6Y=
|
||||||
github.com/gethinode/mod-katex v1.0.0 h1:me/3dIIZBkfk1mRIFt8QiAGYwYDoSG5bc2hHRtIutFc=
|
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.0/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
github.com/gethinode/mod-katex v1.0.1 h1:809QUztxmKgMNchU+v03iMO7Ma+ISc3ZzhXYauc21rs=
|
github.com/gethinode/mod-katex v1.0.1 h1:809QUztxmKgMNchU+v03iMO7Ma+ISc3ZzhXYauc21rs=
|
||||||
@@ -108,6 +116,10 @@ github.com/gethinode/mod-katex v1.0.5 h1:AVhcTINYory0ygChQERf8PcyJkbT1oqhmLRF6ES
|
|||||||
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 h1:FTEhvi3r+O5lPeOxB7OsanFZuAB14yC5fIk3DqhkNyY=
|
||||||
github.com/gethinode/mod-katex v1.0.7/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
github.com/gethinode/mod-katex v1.0.7/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
|
github.com/gethinode/mod-katex v1.0.8 h1:tFGFz/JIEogCz4wvUsUncrOsOupPxsjP+TwU/3NxIjY=
|
||||||
|
github.com/gethinode/mod-katex v1.0.8/go.mod h1:byAfpI3wuqNJIooTGVEGc1cjBhhCy4+CcK1H6495MYg=
|
||||||
|
github.com/gethinode/mod-katex v1.0.9 h1:cCJoR28tZwkDvXps17o9Jwfe3aQQAZ3Rxk0jCNRQdbU=
|
||||||
|
github.com/gethinode/mod-katex v1.0.9/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=
|
||||||
@@ -122,6 +134,8 @@ github.com/gethinode/mod-leaflet v0.4.0 h1:Xc6c1UTf4m1saQLFfFWT5sEpwj25xVGuS8csG
|
|||||||
github.com/gethinode/mod-leaflet v0.4.0/go.mod h1:yr+bUKAstifdB16mbYh69OayAmgPOlNUubAmVn5eL2M=
|
github.com/gethinode/mod-leaflet v0.4.0/go.mod h1:yr+bUKAstifdB16mbYh69OayAmgPOlNUubAmVn5eL2M=
|
||||||
github.com/gethinode/mod-leaflet v1.0.0 h1:HdnWafOGkkK1hYGfqLYF3pp9dAFS/caxlzML9sO1rCc=
|
github.com/gethinode/mod-leaflet v1.0.0 h1:HdnWafOGkkK1hYGfqLYF3pp9dAFS/caxlzML9sO1rCc=
|
||||||
github.com/gethinode/mod-leaflet v1.0.0/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
|
github.com/gethinode/mod-leaflet v1.0.0/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
|
||||||
|
github.com/gethinode/mod-leaflet v1.0.1 h1:L4Coe6HTD9O0Txs1S8AtVg+6/TEneSF9i6fJK8jdWUw=
|
||||||
|
github.com/gethinode/mod-leaflet v1.0.1/go.mod h1:Ei0x9WiL7Dbi4JeG6yI1CE63bT1QJ8sKi67Jea1wFSE=
|
||||||
github.com/gethinode/mod-lottie v1.0.0 h1:1CUZMcgN5FAyjjyuP3qkaOQ6M5sv6HUAbosW4sIT5VE=
|
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.0/go.mod h1:erRCgSL2FCfKHI0jQbSpM+g0jXl7SjKVJrh7kWGteKs=
|
||||||
github.com/gethinode/mod-lottie v1.0.1 h1:+IE7xtnSVQpJS56oBJq9RWKZeFEfxrOZAqE3BSrS/u0=
|
github.com/gethinode/mod-lottie v1.0.1 h1:+IE7xtnSVQpJS56oBJq9RWKZeFEfxrOZAqE3BSrS/u0=
|
||||||
@@ -144,6 +158,8 @@ github.com/gethinode/mod-lottie v1.4.3 h1:IKZO8a4yQyPKUwZ6POsZRIH/B++yEzXDe5HxrF
|
|||||||
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 h1:Lv7J+lAMx++aK9h0L7vAgsjyOZgrjux4xPz4Tpza8n4=
|
||||||
github.com/gethinode/mod-lottie v1.4.4/go.mod h1:7tsZjlFgMlj2iWBIS9uOtHHsCrfx9W7S8OsBrZeSVGU=
|
github.com/gethinode/mod-lottie v1.4.4/go.mod h1:7tsZjlFgMlj2iWBIS9uOtHHsCrfx9W7S8OsBrZeSVGU=
|
||||||
|
github.com/gethinode/mod-lottie v1.4.6 h1:L6zvfbq+FQUWTG3X/wWFCvb91WOxJuIkJUlZOd+QJ1Q=
|
||||||
|
github.com/gethinode/mod-lottie v1.4.6/go.mod h1:1/+7U/Q5IuaqkzTrvXK1CnPE7ANnTRsG5k+KaXQUQwE=
|
||||||
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=
|
||||||
@@ -166,6 +182,8 @@ github.com/gethinode/mod-utils/v2 v2.1.0 h1:5I0IN/AX5qPFYx7tjWXk59GBevTJzixxZUGj
|
|||||||
github.com/gethinode/mod-utils/v2 v2.1.0/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
|
github.com/gethinode/mod-utils/v2 v2.1.0/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
|
||||||
github.com/gethinode/mod-utils/v2 v2.1.1 h1:aLBcS9Zbx+dqnu5oBsTM01AkkN5nwwifgbV4D0qiHnM=
|
github.com/gethinode/mod-utils/v2 v2.1.1 h1:aLBcS9Zbx+dqnu5oBsTM01AkkN5nwwifgbV4D0qiHnM=
|
||||||
github.com/gethinode/mod-utils/v2 v2.1.1/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
|
github.com/gethinode/mod-utils/v2 v2.1.1/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
|
||||||
|
github.com/gethinode/mod-utils/v2 v2.2.2 h1:ZRxWIJKmZIDYsoMS3WhxxC+BWJrkd1dcZ8rz/cLZExc=
|
||||||
|
github.com/gethinode/mod-utils/v2 v2.2.2/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
|
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
|
||||||
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
|
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=
|
||||||
|
@@ -86,11 +86,11 @@
|
|||||||
"fixed-top",
|
"fixed-top",
|
||||||
"flex-column",
|
"flex-column",
|
||||||
"flex-fill",
|
"flex-fill",
|
||||||
"flex-grow-1",
|
|
||||||
"footer",
|
"footer",
|
||||||
"form-control",
|
"form-control",
|
||||||
"fs-3",
|
"fs-3",
|
||||||
"fs-5",
|
"fs-5",
|
||||||
|
"fw-30",
|
||||||
"fw-bold",
|
"fw-bold",
|
||||||
"hstack",
|
"hstack",
|
||||||
"img-fluid",
|
"img-fluid",
|
||||||
@@ -120,6 +120,7 @@
|
|||||||
"navbar",
|
"navbar",
|
||||||
"navbar-brand",
|
"navbar-brand",
|
||||||
"navbar-collapse",
|
"navbar-collapse",
|
||||||
|
"navbar-container",
|
||||||
"navbar-expand-md",
|
"navbar-expand-md",
|
||||||
"navbar-fixed-top",
|
"navbar-fixed-top",
|
||||||
"navbar-nav",
|
"navbar-nav",
|
||||||
|
@@ -53,7 +53,10 @@
|
|||||||
{{- $clipboard := .clipboard -}}
|
{{- $clipboard := .clipboard -}}
|
||||||
{{- $cue := .cue | default site.Params.main.externalLinks.cue -}}
|
{{- $cue := .cue | default site.Params.main.externalLinks.cue -}}
|
||||||
{{- $tab := .tab | default site.Params.main.externalLinks.tab -}}
|
{{- $tab := .tab | default site.Params.main.externalLinks.tab -}}
|
||||||
{{- $isExternal := ne (urls.Parse (absURL $href)).Host (urls.Parse site.BaseURL).Host -}}
|
{{- $isExternal := false }}
|
||||||
|
{{ if in (slice "http" "https") ((urls.Parse (absURL $href)).Scheme) }}
|
||||||
|
{{ $isExternal = ne (urls.Parse (absURL $href)).Host (urls.Parse site.BaseURL).Host -}}
|
||||||
|
{{ end }}
|
||||||
{{- $target := "" -}}
|
{{- $target := "" -}}
|
||||||
{{- $rel := "" -}}
|
{{- $rel := "" -}}
|
||||||
{{- $spacing := .spacing | default true -}}
|
{{- $spacing := .spacing | default true -}}
|
||||||
@@ -81,8 +84,8 @@
|
|||||||
{{- with $toast }} data-toast-target="{{ $toast }}"{{ end -}}
|
{{- with $toast }} data-toast-target="{{ $toast }}"{{ end -}}
|
||||||
{{- with $clipboard }} data-clipboard="{{ $clipboard }}"{{ end -}}
|
{{- with $clipboard }} data-clipboard="{{ $clipboard }}"{{ end -}}
|
||||||
{{- if eq $type "button" }} class="btn btn-{{ if $outline }}outline-{{ end }}{{ $color }} {{ if ne $size "md"}}btn-{{ $size }}{{ end }} position-relative {{ if in (slice "disabled" "active") $state }}{{ $state }}{{ end }} {{ $class -}}"
|
{{- if eq $type "button" }} class="btn btn-{{ if $outline }}outline-{{ end }}{{ $color }} {{ if ne $size "md"}}btn-{{ $size }}{{ end }} position-relative {{ if in (slice "disabled" "active") $state }}{{ $state }}{{ end }} {{ $class -}}"
|
||||||
role="button" {{ if eq $state "disabled" }}aria-disabled="true"{{ end -}}
|
{{ if eq $state "disabled" }}aria-disabled="true"{{ end -}}
|
||||||
{{- else }} class="link-{{ $color }} position-relative {{ $class }}"{{ end -}}
|
{{- else }} class="btn btn-link link-{{ $color }} position-relative {{ $class }}"{{ end -}}
|
||||||
{{- with $tooltip }} data-bs-toggle="tooltip" data-bs-title="{{ . }}" data-bs-placement="{{ $placement }}"{{ end -}}
|
{{- with $tooltip }} data-bs-toggle="tooltip" data-bs-title="{{ . }}" data-bs-placement="{{ $placement }}"{{ end -}}
|
||||||
{{- with $collapse }} data-bs-toggle="collapse" aria-expanded="false" aria-controls="{{ . }}"{{ end -}}
|
{{- with $collapse }} data-bs-toggle="collapse" aria-expanded="false" aria-controls="{{ . }}"{{ end -}}
|
||||||
{{- if eq $state "active" }} data-bs-toggle="button" aria-pressed="true"{{ end -}}
|
{{- if eq $state "active" }} data-bs-toggle="button" aria-pressed="true"{{ end -}}
|
||||||
@@ -90,6 +93,7 @@
|
|||||||
{{- range $key, $val := $attributes -}}
|
{{- range $key, $val := $attributes -}}
|
||||||
{{ printf " %s=\"%s\"" $key $val | safeHTMLAttr }}
|
{{ printf " %s=\"%s\"" $key $val | safeHTMLAttr }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
role="button"
|
||||||
>
|
>
|
||||||
<div class="d-flex justify-content-{{ $justify }}">
|
<div class="d-flex justify-content-{{ $justify }}">
|
||||||
<div class="my-auto">{{ $title | safeHTML }}</div>
|
<div class="my-auto">{{ $title | safeHTML }}</div>
|
||||||
|
@@ -33,13 +33,18 @@
|
|||||||
{{- $loading := .loading -}}
|
{{- $loading := .loading -}}
|
||||||
{{- $button := .button -}}
|
{{- $button := .button -}}
|
||||||
{{- $buttonLabel := .buttonLabel -}}
|
{{- $buttonLabel := .buttonLabel -}}
|
||||||
|
{{- $buttonType := .buttonType -}}
|
||||||
{{- $hook := .hook | default "assets/card.html" }}
|
{{- $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 .max }}
|
{{ with .pagination }}
|
||||||
|
{{ $paginator = $page.Paginate $pages . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $paginator = $page.Paginate $pages }}
|
||||||
|
{{ end }}
|
||||||
{{ $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 }}
|
||||||
|
|
||||||
@@ -74,12 +79,38 @@
|
|||||||
{{- $responsive := .responsive | default true -}}
|
{{- $responsive := .responsive | default true -}}
|
||||||
{{- $cols := string .cols | default "3" -}}
|
{{- $cols := string .cols | default "3" -}}
|
||||||
|
|
||||||
|
{{- $sizes := "100vw" }}
|
||||||
{{- $colGrid := "" -}}
|
{{- $colGrid := "" -}}
|
||||||
{{- if eq $cols "1" }}{{ $colGrid = "row-cols-1" -}}
|
{{- if eq $cols "1" }}
|
||||||
{{- else if eq $cols "2" }}{{ if $responsive }}{{ $colGrid = printf "row-cols-1 row-cols-%s-1 row-cols-%s-2" $breakpoint.prev $breakpoint.current }}{{ else }}{{ $colGrid = "row-cols-2" }}{{ end -}}
|
{{ $colGrid = "row-cols-1" -}}
|
||||||
{{- else if eq $cols "3" }}{{ if $responsive }}{{ $colGrid = printf "row-cols-1 row-cols-%s-2 row-cols-%s-3" $breakpoint.prev $breakpoint.current }}{{ else }}{{ $colGrid = "row-cols-3" }}{{ end -}}
|
{{- else if eq $cols "2" }}
|
||||||
{{- else if eq $cols "4" }}{{ if $responsive }}{{ $colGrid = printf "row-cols-1 row-cols-%s-2 row-cols-%s-4" $breakpoint.prev $breakpoint.current }}{{ else }}{{ $colGrid = "row-cols-4" }}{{ end -}}
|
{{ if $responsive }}
|
||||||
{{- else if eq $cols "5" }}{{ if $responsive }}{{ $colGrid = printf "row-cols-1 row-cols-%s-3 row-cols-%s-5" $breakpoint.prev $breakpoint.current }}{{ else }}{{ $colGrid = "row-cols-5" }}{{ end -}}
|
{{ $colGrid = printf "row-cols-1 row-cols-%s-1 row-cols-%s-2" $breakpoint.prev $breakpoint.current }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $colGrid = "row-cols-2" }}
|
||||||
|
{{ end -}}
|
||||||
|
{{ $sizes = printf "(min-width: %s) 50vw, 100vw" $breakpoint.currentSize }}
|
||||||
|
{{- else if eq $cols "3" }}
|
||||||
|
{{ if $responsive }}
|
||||||
|
{{ $colGrid = printf "row-cols-1 row-cols-%s-2 row-cols-%s-3" $breakpoint.prev $breakpoint.current }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $colGrid = "row-cols-3" }}
|
||||||
|
{{ end -}}
|
||||||
|
{{ $sizes = printf "(min-width: %s) 33.3vw, (min-width: %s) 50vw, 100vw" $breakpoint.currentSize $breakpoint.prevSize }}
|
||||||
|
{{- else if eq $cols "4" }}
|
||||||
|
{{ if $responsive }}
|
||||||
|
{{ $colGrid = printf "row-cols-1 row-cols-%s-2 row-cols-%s-4" $breakpoint.prev $breakpoint.current }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $colGrid = "row-cols-4" }}
|
||||||
|
{{ end -}}
|
||||||
|
{{ $sizes = printf "(min-width: %s) 25vw, (min-width: %s) 50vw, 100vw" $breakpoint.currentSize $breakpoint.prevSize }}
|
||||||
|
{{- else if eq $cols "5" }}
|
||||||
|
{{ if $responsive }}
|
||||||
|
{{ $colGrid = printf "row-cols-1 row-cols-%s-3 row-cols-%s-5" $breakpoint.prev $breakpoint.current }}
|
||||||
|
{{ else }}
|
||||||
|
{{ $colGrid = "row-cols-5" }}
|
||||||
|
{{ end -}}
|
||||||
|
{{ $sizes = printf "(min-width: %s) 20vw, (min-width: %s) 33.3vw, 100vw" $breakpoint.currentSize $breakpoint.prevSize }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
{{- if not $paginate -}}
|
{{- if not $paginate -}}
|
||||||
@@ -98,6 +129,7 @@
|
|||||||
"footer" $footer
|
"footer" $footer
|
||||||
"header" $header
|
"header" $header
|
||||||
"loading" $loading
|
"loading" $loading
|
||||||
|
"sizes" $sizes
|
||||||
"orientation" $orientation
|
"orientation" $orientation
|
||||||
"padding" $padding
|
"padding" $padding
|
||||||
"ratio" $ratio
|
"ratio" $ratio
|
||||||
@@ -106,6 +138,7 @@
|
|||||||
"align" $align
|
"align" $align
|
||||||
"button" $button
|
"button" $button
|
||||||
"buttonLabel" $buttonLabel
|
"buttonLabel" $buttonLabel
|
||||||
|
"buttonType" $buttonType
|
||||||
) -}}
|
) -}}
|
||||||
{{- $params = merge $params $element }}
|
{{- $params = merge $params $element }}
|
||||||
|
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
{{- $iconStyle := "" -}}
|
{{- $iconStyle := "" -}}
|
||||||
{{- $align := .align | default "start" -}}
|
{{- $align := .align | default "start" -}}
|
||||||
{{- $style := .style | default "" -}}
|
{{- $style := .style | default "" -}}
|
||||||
|
{{- $sizes := .sizes | default "100vw" -}}
|
||||||
{{- $loading := .loading -}}
|
{{- $loading := .loading -}}
|
||||||
{{- $orientation := .orientation | default "stacked" -}}
|
{{- $orientation := .orientation | default "stacked" -}}
|
||||||
{{- $padding := (string .padding) | default "auto" -}}
|
{{- $padding := (string .padding) | default "auto" -}}
|
||||||
@@ -31,6 +32,7 @@
|
|||||||
{{- $subtle := .subtle -}}
|
{{- $subtle := .subtle -}}
|
||||||
{{- $button := .button -}}
|
{{- $button := .button -}}
|
||||||
{{- $buttonLabel := .buttonLabel -}}
|
{{- $buttonLabel := .buttonLabel -}}
|
||||||
|
{{- $buttonType := .buttonType -}}
|
||||||
{{- $colorStyle := "" -}}
|
{{- $colorStyle := "" -}}
|
||||||
{{ if $color }}
|
{{ if $color }}
|
||||||
{{ if $subtle }}
|
{{ if $subtle }}
|
||||||
@@ -131,7 +133,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 $hook (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") "sizes" $sizes "wrapper" "h-100 card-img-wrap" "class" "rounded-start card-img-h100 card-img-bg" "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)) -}}
|
||||||
@@ -147,7 +149,19 @@
|
|||||||
{{ 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 }}
|
||||||
{{ $label := (or $buttonLabel $title) | default (T "readMore") }}
|
{{ $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>
|
{{ $buttonClass := "card-button mb-n4" }}
|
||||||
|
{{ if eq $buttonType "link" }}{{ $buttonClass = "card-button card-button-link mb-n4" }}{{ end }}
|
||||||
|
<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" $buttonClass
|
||||||
|
"type" $buttonType
|
||||||
|
)}}
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -157,7 +171,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 $hook (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") "sizes" $sizes "wrapper" "card-img-wrap" "class" "card-img-top card-img-bg" "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)) -}}
|
||||||
@@ -173,7 +187,17 @@
|
|||||||
<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 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 }}">
|
<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" $label "href" $href "outline" true "size" "sm" "class" "card-button") }}
|
{{ $buttonClass := "card-button" }}
|
||||||
|
{{ if eq $buttonType "link" }}{{ $buttonClass = "card-button card-button-link" }}{{ end }}
|
||||||
|
{{ partial "assets/button.html" (dict
|
||||||
|
"title" $label
|
||||||
|
"href" $href
|
||||||
|
"outline" true
|
||||||
|
"size" "sm"
|
||||||
|
"class" "card-button"
|
||||||
|
"class" $buttonClass
|
||||||
|
"type" $buttonType
|
||||||
|
)}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
Copyright © 2024 The Hinode Team / Mark Dumay. All rights reserved.
|
||||||
|
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
|
||||||
|
Visit gethinode.com/license for more details.
|
||||||
|
-->
|
||||||
|
|
||||||
{{- $download := partial "utilities/GetTargetPath.html" (dict "path" .download "page" page) -}}
|
{{- $download := partial "utilities/GetTargetPath.html" (dict "path" .download "page" page) -}}
|
||||||
{{- $title := .title }}
|
{{- $title := .title }}
|
||||||
{{- $color := .color | default "primary" -}}
|
{{- $color := .color | default "primary" -}}
|
||||||
|
@@ -35,6 +35,8 @@
|
|||||||
{{- $lazy := eq $loading "lazy" -}}
|
{{- $lazy := eq $loading "lazy" -}}
|
||||||
{{- $priority := .priority -}}
|
{{- $priority := .priority -}}
|
||||||
{{- if eq $priority "auto" }}{{ $priority = "" }}{{ end -}}
|
{{- if eq $priority "auto" }}{{ $priority = "" }}{{ end -}}
|
||||||
|
{{- $sizes := .sizes | default "100vw" -}}
|
||||||
|
|
||||||
|
|
||||||
{{- define "partials/image-portrait.html" -}}
|
{{- define "partials/image-portrait.html" -}}
|
||||||
{{- $dimensions := slice }}
|
{{- $dimensions := slice }}
|
||||||
@@ -168,6 +170,7 @@
|
|||||||
{{- $modes := .modes -}}
|
{{- $modes := .modes -}}
|
||||||
{{- $lazy := .lazy -}}
|
{{- $lazy := .lazy -}}
|
||||||
{{- $page := .page -}}
|
{{- $page := .page -}}
|
||||||
|
{{- $sizes := .sizes -}}
|
||||||
{{- $priority := .priority -}}
|
{{- $priority := .priority -}}
|
||||||
{{- $isVector := false -}}
|
{{- $isVector := false -}}
|
||||||
|
|
||||||
@@ -235,7 +238,7 @@
|
|||||||
src="{{ $fallbackURL }}"
|
src="{{ $fallbackURL }}"
|
||||||
{{ if $lazy }}loading="lazy"{{ end }}
|
{{ if $lazy }}loading="lazy"{{ end }}
|
||||||
{{ with $priority }}fetchpriority="{{ . }}"{{ end }}
|
{{ with $priority }}fetchpriority="{{ . }}"{{ end }}
|
||||||
{{ with $imgset -}}srcset="{{ . }}" sizes="100vw"{{- end }}
|
{{ with $imgset -}}srcset="{{ . }}" sizes="{{ $sizes }}"{{- end }}
|
||||||
{{ with $height }}height="{{ . }}"{{ end }}
|
{{ with $height }}height="{{ . }}"{{ end }}
|
||||||
{{ with $width }}width="{{ . }}"{{ end }}
|
{{ with $width }}width="{{ . }}"{{ end }}
|
||||||
{{ with $title }}alt="{{ . }}"{{ end }}>
|
{{ with $title }}alt="{{ . }}"{{ end }}>
|
||||||
@@ -263,6 +266,7 @@
|
|||||||
"figclass" $figclass
|
"figclass" $figclass
|
||||||
"lazy" $lazy
|
"lazy" $lazy
|
||||||
"priority" $priority
|
"priority" $priority
|
||||||
|
"sizes" $sizes
|
||||||
"page" $page)
|
"page" $page)
|
||||||
-}}
|
-}}
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Initialize arguments -->
|
<!-- Initialize arguments -->
|
||||||
{{ $destination := .destination }}
|
{{ $destination := strings.TrimPrefix (strings.TrimSuffix "/" site.BaseURL) .destination }}
|
||||||
|
|
||||||
{{- $target := "" -}}
|
{{- $target := "" -}}
|
||||||
{{- $rel := "" -}}
|
{{- $rel := "" -}}
|
||||||
|
@@ -112,6 +112,7 @@
|
|||||||
{{- $fixed := .fixed | default false -}}
|
{{- $fixed := .fixed | default false -}}
|
||||||
{{- $overlay := .overlay | default false -}}
|
{{- $overlay := .overlay | default false -}}
|
||||||
{{- $overlayMode := .overlayMode | default "dark" -}}
|
{{- $overlayMode := .overlayMode | default "dark" -}}
|
||||||
|
{{- if eq $overlayMode "none" }}{{ $overlayMode = "" }}{{ end }}
|
||||||
{{- $color := .color | default "" -}}
|
{{- $color := .color | default "" -}}
|
||||||
{{- $search := .search | default site.Params.navigation.search -}}
|
{{- $search := .search | default site.Params.navigation.search -}}
|
||||||
{{- $searchModal := and $search site.Params.navigation.searchModal -}}
|
{{- $searchModal := and $search site.Params.navigation.searchModal -}}
|
||||||
@@ -203,8 +204,8 @@
|
|||||||
<a class="navbar-brand" href="{{ site.Home.RelPermalink }}" aria-label="{{ T "home" }}">
|
<a class="navbar-brand" href="{{ site.Home.RelPermalink }}" aria-label="{{ T "home" }}">
|
||||||
{{- if (and $logoLight $logoDark) -}}
|
{{- if (and $logoLight $logoDark) -}}
|
||||||
{{ $width := partial "utilities/GetWidth.html" (dict "path" $logoLight "height" 30) }}
|
{{ $width := partial "utilities/GetWidth.html" (dict "path" $logoLight "height" 30) }}
|
||||||
<img src="{{if $absoluteURL }}{{ absURL $logoLight }}{{ else }}{{ $logoLight }}{{ end }}" class="d-none-dark" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}>
|
<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-light" 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 -}}
|
{{- else if $logo -}}
|
||||||
{{ $width := partial "utilities/GetWidth.html" (dict "path" $logo "height" 30) }}
|
{{ $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 }}>
|
<img src="{{if $absoluteURL }}{{ absURL $logo }}{{ else }}{{ $logo }}{{ end }}" alt="{{ $title }} logo" height="30"{{ with $width }} width="{{ . }}"{{ end }}>
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
Copyright © 2024 The Hinode Team / Mark Dumay. All rights reserved.
|
||||||
|
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
|
||||||
|
Visit gethinode.com/license for more details.
|
||||||
|
-->
|
||||||
|
|
||||||
{{- $page := .page }}
|
{{- $page := .page }}
|
||||||
{{- $section := .section }}
|
{{- $section := .section }}
|
||||||
{{- if not $section }}{{ errorf "partial [assets/section-list.html] - Missing value for param 'section'" }}{{ end -}}
|
{{- if not $section }}{{ errorf "partial [assets/section-list.html] - Missing value for param 'section'" }}{{ end -}}
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
<!-- Initialize arguments -->
|
<!-- Initialize arguments -->
|
||||||
{{- $page := .page -}}
|
{{- $page := .page -}}
|
||||||
|
{{- $breakpoint := .page.Scratch.Get "breakpoint" -}}
|
||||||
{{ $items := $page.Parent.Sections }}
|
{{ $items := $page.Parent.Sections }}
|
||||||
{{ if not $page.Parent.Section }}
|
{{ if not $page.Parent.Section }}
|
||||||
{{ $items = $page.Sections }}
|
{{ $items = $page.Sections }}
|
||||||
@@ -21,7 +22,7 @@
|
|||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
{{- if and (not $error) (gt (len $items) 0) }}
|
{{- if and (not $error) (gt (len $items) 0) }}
|
||||||
<div class="d-grid gap-2 mx-auto d-md-none">
|
<div class="d-grid gap-2 mx-auto d-{{ $breakpoint.prev }}-none">
|
||||||
{{ partial "assets/button.html" (dict
|
{{ partial "assets/button.html" (dict
|
||||||
"title" (T "sectionMenu")
|
"title" (T "sectionMenu")
|
||||||
"color" "secondary"
|
"color" "secondary"
|
||||||
@@ -36,7 +37,7 @@
|
|||||||
-}}
|
-}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<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 d-{{ $breakpoint.prev }}-none" 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 }}
|
||||||
@@ -45,7 +46,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="navbar navbar-expand navbar-services p-0 fs-5 d-none d-md-block">
|
<div class="d-{{ $breakpoint.prev }}-none mb-5"></div>
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand navbar-services p-0 fs-5 d-none d-{{ $breakpoint.prev }}-block mb-5">
|
||||||
<div class="container-fluid p-0 pb-3">
|
<div class="container-fluid p-0 pb-3">
|
||||||
<div class="collapse navbar-collapse" id="navbarNav">
|
<div class="collapse navbar-collapse" id="navbarNav">
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
Copyright © 2024 The Hinode Team / Mark Dumay. All rights reserved.
|
||||||
|
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
|
||||||
|
Visit gethinode.com/license for more details.
|
||||||
|
-->
|
||||||
|
|
||||||
{{ $page := .page }}
|
{{ $page := .page }}
|
||||||
{{ $input := .input }}
|
{{ $input := .input }}
|
||||||
{{ $args := .args }}
|
{{ $args := .args }}
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
Copyright © 2024 The Hinode Team / Mark Dumay. All rights reserved.
|
||||||
|
Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
|
||||||
|
Visit gethinode.com/license for more details.
|
||||||
|
-->
|
||||||
|
|
||||||
{{ $headings := .headings | default slice }}
|
{{ $headings := .headings | default slice }}
|
||||||
{{- range .Fragments.Headings }}
|
{{- range .Fragments.Headings }}
|
||||||
{{- range .Headings }}
|
{{- range .Headings }}
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
{{- $orientation := .orientation | default "stacked" -}}
|
{{- $orientation := .orientation | default "stacked" -}}
|
||||||
{{- $actions := .actions -}}
|
{{- $actions := .actions -}}
|
||||||
{{- $width := .width | default 6 }}
|
{{- $width := .width | default 6 }}
|
||||||
|
{{ $sizes := "100vw" }}
|
||||||
{{- if or (lt $width 1) (gt $width 12) -}}
|
{{- if or (lt $width 1) (gt $width 12) -}}
|
||||||
{{- $width = 6 -}}
|
{{- $width = 6 -}}
|
||||||
{{- warnf "partial [list/featured.html] - Invalid column width: %d" $width -}}
|
{{- warnf "partial [list/featured.html] - Invalid column width: %d" $width -}}
|
||||||
@@ -19,6 +20,11 @@
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $breadcrumb := and (not $page.IsHome) site.Params.navigation.breadcrumb -}}
|
{{- $breadcrumb := and (not $page.IsHome) site.Params.navigation.breadcrumb -}}
|
||||||
|
|
||||||
|
{{- define "partials/list/featured-sizes.html" }}
|
||||||
|
{{ $sizes := printf "(min-width: 768px) %dvw, 50vw" (int (math.Round (div (mul .width 100) 12))) }}
|
||||||
|
{{ return $sizes }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{- define "partials/list/featured-body.html" }}
|
{{- define "partials/list/featured-body.html" }}
|
||||||
{{- $page := .page -}}
|
{{- $page := .page -}}
|
||||||
{{- $headings := .headings -}}
|
{{- $headings := .headings -}}
|
||||||
@@ -44,6 +50,7 @@
|
|||||||
{{- define "partials/list/featured-illustration.html" }}
|
{{- define "partials/list/featured-illustration.html" }}
|
||||||
{{- $page := .page -}}
|
{{- $page := .page -}}
|
||||||
{{- $style := printf "img-wrap mx-auto mx-md-0 %s" .style -}}
|
{{- $style := printf "img-wrap mx-auto mx-md-0 %s" .style -}}
|
||||||
|
{{ $sizes := .sizes }}
|
||||||
|
|
||||||
{{ if $page.Params.icon }}
|
{{ if $page.Params.icon }}
|
||||||
{{- $icon := (or (and (reflect.IsMap $page.Params.Icon) $page.Params.Icon.url) $page.Params.Icon) -}}
|
{{- $icon := (or (and (reflect.IsMap $page.Params.Icon) $page.Params.Icon.url) $page.Params.Icon) -}}
|
||||||
@@ -56,7 +63,7 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{- $thumbnail := (or (and (reflect.IsMap $page.Params.Thumbnail) $page.Params.Thumbnail.url) $page.Params.Thumbnail) -}}
|
{{- $thumbnail := (or (and (reflect.IsMap $page.Params.Thumbnail) $page.Params.Thumbnail.url) $page.Params.Thumbnail) -}}
|
||||||
{{- if $thumbnail }}
|
{{- if $thumbnail }}
|
||||||
{{ partial "assets/image.html" (dict "url" $thumbnail "ratio" "16x9" "wrapper" $style "class" "rounded" "title" $page.Site.Title "priority" "high") }}
|
{{ partial "assets/image.html" (dict "url" $thumbnail "ratio" "16x9" "sizes" $sizes "wrapper" $style "class" "rounded" "title" $page.Site.Title "priority" "high") }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -70,7 +77,8 @@
|
|||||||
{{ if eq $orientation "stacked" }}
|
{{ if eq $orientation "stacked" }}
|
||||||
<div class="row justify-content-center flex-fill">
|
<div class="row justify-content-center flex-fill">
|
||||||
<div class="col-12 col-md-{{ $width }} m-auto text-center">
|
<div class="col-12 col-md-{{ $width }} m-auto text-center">
|
||||||
{{ partial "partials/list/featured-illustration.html" (dict "page" $page "style" "pb-4") }}
|
{{ $sizes = partial "partials/list/featured-sizes.html" (dict "width" $width) }}
|
||||||
|
{{ partial "partials/list/featured-illustration.html" (dict "page" $page "sizes" $sizes "style" "pb-4") }}
|
||||||
{{ partial "partials/list/featured-body.html" (dict "page" $page "headings" $headings "orientation" $orientation "actions" $actions) }}
|
{{ partial "partials/list/featured-body.html" (dict "page" $page "headings" $headings "orientation" $orientation "actions" $actions) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -79,8 +87,11 @@
|
|||||||
<div class="col col-12 col-md-{{ $width }} order-1 order-md-0 my-md-auto">
|
<div class="col col-12 col-md-{{ $width }} order-1 order-md-0 my-md-auto">
|
||||||
{{ partial "partials/list/featured-body.html" (dict "page" $page "headings" $headings "orientation" $orientation "actions" $actions "align" $align) }}
|
{{ partial "partials/list/featured-body.html" (dict "page" $page "headings" $headings "orientation" $orientation "actions" $actions "align" $align) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-12 col-md-{{ if gt $width 6 }}{{ sub 12 $width }}{{ else }}{{ $width }}{{ end }} order-0 order-md-1 text-center my-md-auto align-self-end">
|
{{ $newWidth := $width }}
|
||||||
{{ partial "partials/list/featured-illustration.html" (dict "page" $page "style" "pb-4 pb-md-0") }}
|
{{ if gt $width 6 }}{{ $newWidth = sub 12 $width }}{{ end }}
|
||||||
|
{{ $sizes = partial "partials/list/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 "partials/list/featured-illustration.html" (dict "page" $page "sizes" $sizes "style" "pb-4 pb-md-0") }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -28,6 +28,7 @@
|
|||||||
{{- $style := .Get "style" | default "" -}}
|
{{- $style := .Get "style" | default "" -}}
|
||||||
{{- $subtle := .Get "subtle" | default false -}}
|
{{- $subtle := .Get "subtle" | default false -}}
|
||||||
{{- $button := .Get "button" | default false -}}
|
{{- $button := .Get "button" | default false -}}
|
||||||
|
{{- $buttonType := .Get "buttonType" | default "" -}}
|
||||||
|
|
||||||
{{ $inner := .Scratch.Get "inner" }}
|
{{ $inner := .Scratch.Get "inner" }}
|
||||||
{{ $input := trim .Inner " \r\n" }}
|
{{ $input := trim .Inner " \r\n" }}
|
||||||
@@ -56,5 +57,6 @@
|
|||||||
"style" $style
|
"style" $style
|
||||||
"subtle" $subtle
|
"subtle" $subtle
|
||||||
"button" $button
|
"button" $button
|
||||||
|
"buttonType" $buttonType
|
||||||
)
|
)
|
||||||
-}}
|
-}}
|
||||||
|
@@ -33,6 +33,7 @@
|
|||||||
{{- $thumbnail := .Get "thumbnail" -}}
|
{{- $thumbnail := .Get "thumbnail" -}}
|
||||||
{{- $title := .Get "title" -}}
|
{{- $title := .Get "title" -}}
|
||||||
{{- $button := partial "utilities/GetArgParent" (dict "page" . "arg" "button") | default false -}}
|
{{- $button := partial "utilities/GetArgParent" (dict "page" . "arg" "button") | default false -}}
|
||||||
|
{{- $buttonType := partial "utilities/GetArgParent" (dict "page" . "arg" "buttonType") | default "" -}}
|
||||||
|
|
||||||
<!-- Override arguments -->
|
<!-- Override arguments -->
|
||||||
{{ if $path }}
|
{{ if $path }}
|
||||||
@@ -70,6 +71,7 @@
|
|||||||
"loading" $loading
|
"loading" $loading
|
||||||
"alt" $alt
|
"alt" $alt
|
||||||
"button" $button
|
"button" $button
|
||||||
|
"buttonType" $buttonType
|
||||||
) -}}
|
) -}}
|
||||||
|
|
||||||
<!-- Pass output to parent or current stream -->
|
<!-- Pass output to parent or current stream -->
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- if hasPrefix $href "http" -}}
|
{{- if hasPrefix $href "http" -}}
|
||||||
{{ $url = $href }}
|
{{ $url = strings.TrimPrefix (strings.TrimSuffix "/" site.BaseURL) $href }}
|
||||||
{{- else if not (strings.Contains $href "/") -}}
|
{{- else if not (strings.Contains $href "/") -}}
|
||||||
{{ $url = index site.Params.links $href }}
|
{{ $url = index site.Params.links $href }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@@ -4,12 +4,12 @@
|
|||||||
command = "npm run build:example"
|
command = "npm run build:example"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
DART_SASS_VERSION = "1.72.0"
|
DART_SASS_VERSION = "1.77.0"
|
||||||
HUGO_VERSION = "0.124.0"
|
HUGO_VERSION = "0.125.7"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
HUGO_ENABLEGITINFO = "true"
|
HUGO_ENABLEGITINFO = "true"
|
||||||
NODE_VERSION = "18.19.1"
|
NODE_VERSION = "18.20.2"
|
||||||
NPM_VERSION = "10.2.4"
|
NPM_VERSION = "10.5.0"
|
||||||
# toml-docs-end netlify
|
# toml-docs-end netlify
|
||||||
|
|
||||||
[[headers]]
|
[[headers]]
|
||||||
|
815
package-lock.json
generated
815
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.23.8",
|
"version": "0.23.20",
|
||||||
"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",
|
||||||
@@ -71,23 +71,23 @@
|
|||||||
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
|
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
|
||||||
"@netlify/plugin-lighthouse": "^6.0.0",
|
"@netlify/plugin-lighthouse": "^6.0.0",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.19",
|
||||||
"cssnano": "^6.1.2",
|
"cssnano": "^7.0.1",
|
||||||
"cssnano-preset-advanced": "^6.1.2",
|
"cssnano-preset-advanced": "^7.0.1",
|
||||||
"eslint": "^8.57.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.122.3",
|
"hugo-bin": "0.123.1",
|
||||||
"markdownlint-cli2": "^0.13.0",
|
"markdownlint-cli2": "^0.13.0",
|
||||||
"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",
|
||||||
"postcss-cli": "^11.0.0",
|
"postcss-cli": "^11.0.0",
|
||||||
"purgecss-whitelister": "^2.4.0",
|
"purgecss-whitelister": "^2.4.0",
|
||||||
"replace-in-files-cli": "^2.2.0",
|
"replace-in-files-cli": "^2.2.0",
|
||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.7",
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"stylelint": "^16.4.0",
|
"stylelint": "^16.5.0",
|
||||||
"stylelint-config-standard-scss": "^13.1.0"
|
"stylelint-config-standard-scss": "^13.1.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
Reference in New Issue
Block a user