Compare commits

...

15 Commits

Author SHA1 Message Date
Mark Dumay
883d753c62 Merge pull request #1586 from gethinode/develop
feat: enhance more button configuration
2025-09-17 13:52:46 +02:00
Mark Dumay
221edc3d9c fix: update type definition 2025-09-17 13:43:50 +02:00
Mark Dumay
2fa27a699b Merge branch 'main' into develop 2025-09-17 13:15:12 +02:00
Mark Dumay
17c2c76ed9 feat: enhance more button configuration 2025-09-17 13:14:05 +02:00
Mark Dumay
fe05770e89 Merge pull request #1585 from gethinode/develop
fix: remove redundant markup template
2025-09-17 05:35:25 +02:00
Mark Dumay
856c264544 fix: remove redundant markup template 2025-09-17 05:29:08 +02:00
Mark Dumay
816455676a Merge pull request #1584 from hawkeye116477/main
Allow to set class for markdown header
2025-09-17 05:24:28 +02:00
hawkeye116477
7fde6a2d8e Allow to set class for markdown header
gethinode/hinode#1508
2025-09-16 21:05:11 +02:00
Mark Dumay
97caba0ace Merge pull request #1582 from gethinode/hugo-mod-dependencies
Update Hugo module dependencies
2025-09-16 10:34:30 +02:00
Mark Dumay
89df0b1b2a Merge branch 'main' into hugo-mod-dependencies 2025-09-16 10:28:30 +02:00
Mark Dumay
0bdfc2f699 Merge pull request #1583 from gethinode/develop
Develop
2025-09-16 10:04:26 +02:00
Mark Dumay
a22d5b43ec Merge branch 'main' into develop 2025-09-16 08:27:53 +02:00
Mark Dumay
3bb96c5322 fix: make sharing label optional 2025-09-16 08:27:27 +02:00
markdumay
b2adbab04b fix: update Hugo module dependencies 2025-09-16 03:16:00 +00:00
Mark Dumay
a4c3693b64 fix: apply site heading style and content style to single page header 2025-09-15 08:43:34 +02:00
12 changed files with 204 additions and 83 deletions

View File

@@ -27,6 +27,8 @@ blueprint:
more: more:
title: title:
link: link:
link-type:
icon:
icon-rounded: icon-rounded:
icon-style: icon-style:
cols: cols:

View File

@@ -49,9 +49,13 @@
{{ $moreButton := site.Params.modules.bookshop.articles.moreButton | default false }} {{ $moreButton := site.Params.modules.bookshop.articles.moreButton | default false }}
{{ $moreTitle := T "more" (pluralize $args.input.section) }} {{ $moreTitle := T "more" (pluralize $args.input.section) }}
{{ $moreLink := $args.input.section }} {{ $moreLink := $args.input.section }}
{{ $moreType := "button" }}
{{ $moreIcon := "" }}
{{ with $args.more }} {{ with $args.more }}
{{ if .title }}{{ $moreTitle = .title }}{{ end }} {{ if .title }}{{ $moreTitle = .title }}{{ end }}
{{ if .link }}{{ $moreLink = .link }}{{ end }} {{ if .link }}{{ $moreLink = .link }}{{ end }}
{{ if index . "link-type" }}{{ $moreType = index . "link-type" }}{{ end }}
{{ if .icon }}{{ $moreIcon = .icon }}{{ end }}
{{ end }} {{ end }}
{{ $paginate := $args.paginate }} {{ $paginate := $args.paginate }}
@@ -85,6 +89,8 @@
"href" (cond $moreButton $moreLink "") "href" (cond $moreButton $moreLink "")
"href-title" (cond $moreButton $moreTitle "") "href-title" (cond $moreButton $moreTitle "")
"href-force" (gt $result.total (len $result.pages)) "href-force" (gt $result.total (len $result.pages))
"more-link-type" $moreType
"more-link-icon" $moreIcon
)}} )}}
{{ if $args.scroll }} {{ if $args.scroll }}

View File

@@ -69,6 +69,24 @@ arguments:
release: v0.27.0 release: v0.27.0
button-label: button-label:
release: v1.0.0 release: v1.0.0
more-link-type:
type: select
optional: true
default: button
comment: Style of the more button or link.
options:
values:
- button
- link
release: v1.16.0
more-link-icon:
type: string
optional: true
comment: >-
Icon to include. You can use shorthand notation such as `fas sort` to
include a Font Awesome icon. The argument also supports files with an
`.svg` or `.json` extension.
release: v1.16.0
# deprecated arguments # deprecated arguments
header: header:

View File

@@ -7,3 +7,9 @@ arguments:
optional: false optional: false
comment: Context of the current page. comment: Context of the current page.
group: partial group: partial
show-label:
type: bool
optional: true
default: true
comment: Indicates if the element should include a label.
release: v1.15.3

View File

@@ -221,6 +221,7 @@
"disabled", "disabled",
"display-1", "display-1",
"display-4", "display-4",
"display-4pt-1",
"display-6", "display-6",
"docs", "docs",
"docs-controls", "docs-controls",
@@ -607,6 +608,7 @@
], ],
"ids": [ "ids": [
"abbr", "abbr",
"about",
"accordion", "accordion",
"accordion-0", "accordion-0",
"accordion-0-heading-0", "accordion-0-heading-0",
@@ -618,11 +620,15 @@
"accordéon", "accordéon",
"alert", "alert",
"alerte", "alerte",
"ander-project",
"animatie", "animatie",
"animation", "animation",
"another-project",
"args", "args",
"arguments", "arguments",
"articles",
"articles-de-blog", "articles-de-blog",
"autre-projet",
"background-type", "background-type",
"badge", "badge",
"barre-de-navigation", "barre-de-navigation",
@@ -632,6 +638,7 @@
"body-docs-collapse-15", "body-docs-collapse-15",
"body-docs-collapse-16", "body-docs-collapse-16",
"body-file-collapse-1", "body-file-collapse-1",
"bootstrap-elements",
"bouton", "bouton",
"breadcrumb", "breadcrumb",
"btnTOCShowLess", "btnTOCShowLess",
@@ -642,6 +649,7 @@
"callout", "callout",
"card", "card",
"card-group", "card-group",
"cards",
"carousel", "carousel",
"carousel-0", "carousel-0",
"carrousel", "carrousel",
@@ -654,24 +662,38 @@
"command-prompt", "command-prompt",
"comment-nous-partageons-vos-informations", "comment-nous-partageons-vos-informations",
"comment-utilisons-nous-les-cookies-", "comment-utilisons-nous-les-cookies-",
"componenten",
"components",
"composents",
"container", "container",
"content-blocks", "content-blocks",
"cookie-policy",
"cookies-etc", "cookies-etc",
"cta",
"custom-activity", "custom-activity",
"data-tables", "data-tables",
"derde-artikel",
"deuxième-article",
"docs", "docs",
"documentation", "documentation",
"dropdown-nav-0", "dropdown-nav-0",
"dropdown-panel-01d46922d433251f7c1674604c7060b1", "dropdown-panel-061524bba81f197181a032e904983272",
"dropdown-panel-16c0f69a272204f0a4afc67975115e22", "dropdown-panel-0c0ddda05d377af1c0cee87f7c85da67",
"dropdown-panel-c8aa1ee17023581002d35f4a0f7fceb4", "dropdown-panel-3c6a067cd80a10d3707200fc8fb84bb3",
"dropdown-panel-c9653d8ece86bd4bab72508877f29b38", "dropdown-panel-4b12c0f69625cb352e0aa7d846f960d8",
"dropdown-panel-f33f815632f94c1611148ae2d42bc2c6", "dropdown-panel-6906624fe967e8dffbf4c3446a9e2385",
"dropdown-panel-7351d1dc85bcedcd74309f25472b7548",
"dropdown-panel-7784dd257dba6ab662963774a7bea03d",
"dropdown-panel-c62f4eeaa4277d5c14c486d5c8623ae1",
"dropdown-panel-cfcc43cbefc204c3c8c7487ef6347c27",
"dropdown-panel-d29649da522407a082335b726b32951c",
"eerste-artikel",
"elements-type", "elements-type",
"entity-relationship-diagram", "entity-relationship-diagram",
"example", "example",
"examples", "examples",
"exemple", "exemple",
"exemple-de-projet",
"fa-address-card", "fa-address-card",
"fa-face-frown", "fa-face-frown",
"fa-folder", "fa-folder",
@@ -684,11 +706,17 @@
"fab-medium", "fab-medium",
"fab-whatsapp", "fab-whatsapp",
"fab-x-twitter", "fab-x-twitter",
"faq-8f17f376776b52730bd49951296cfbaa", "faq",
"faq-8f17f376776b52730bd49951296cfbaa-heading-faq-8f17f376776b52730bd49951296cfbaa", "faq-b52462b6a4b2180e01ad67bc52618161",
"faq-8f17f376776b52730bd49951296cfbaa-item-0", "faq-b52462b6a4b2180e01ad67bc52618161-heading-faq-b52462b6a4b2180e01ad67bc52618161",
"faq-8f17f376776b52730bd49951296cfbaa-item-1", "faq-b52462b6a4b2180e01ad67bc52618161-item-0",
"faq-8f17f376776b52730bd49951296cfbaa-item-2", "faq-b52462b6a4b2180e01ad67bc52618161-item-1",
"faq-b52462b6a4b2180e01ad67bc52618161-item-2",
"faq-f38df4740b059c9b2b0e1b696e843ede",
"faq-f38df4740b059c9b2b0e1b696e843ede-heading-faq-f38df4740b059c9b2b0e1b696e843ede",
"faq-f38df4740b059c9b2b0e1b696e843ede-item-0",
"faq-f38df4740b059c9b2b0e1b696e843ede-item-1",
"faq-f38df4740b059c9b2b0e1b696e843ede-item-2",
"fas-1", "fas-1",
"fas-2", "fas-2",
"fas-3", "fas-3",
@@ -728,12 +756,14 @@
"fichier", "fichier",
"fil-dariane", "fil-dariane",
"file", "file",
"first-post",
"flowchart", "flowchart",
"footer-docs-collapse-15", "footer-docs-collapse-15",
"footer-docs-collapse-16", "footer-docs-collapse-16",
"footer-file-collapse-1", "footer-file-collapse-1",
"formula-katex", "formula-katex",
"formule-katex", "formule-katex",
"fourth-post-excluded-from-search",
"gantt-diagram", "gantt-diagram",
"gegevenstabellen", "gegevenstabellen",
"git-graph", "git-graph",
@@ -742,6 +772,7 @@
"gérer-les-préférences-des-cookies", "gérer-les-préférences-des-cookies",
"heading", "heading",
"heading-type", "heading-type",
"hero",
"horizontal-cards-with-an-icon", "horizontal-cards-with-an-icon",
"horizontal-cards-with-an-image", "horizontal-cards-with-an-image",
"how-do-we-use-cookies", "how-do-we-use-cookies",
@@ -750,6 +781,7 @@
"illustration-type", "illustration-type",
"image", "image",
"imagekitio", "imagekitio",
"images-locales-et-distantes",
"imgix", "imgix",
"indicateur-de-chargement", "indicateur-de-chargement",
"infobulle", "infobulle",
@@ -766,6 +798,7 @@
"liens-vers-des-tiers-et-utilisation-de-vos-informations", "liens-vers-des-tiers-et-utilisation-de-vos-informations",
"link", "link",
"links-type", "links-type",
"local-and-remote-images",
"lottie-animation-0", "lottie-animation-0",
"manage-cookie-preferences", "manage-cookie-preferences",
"map", "map",
@@ -782,11 +815,16 @@
"nav-0-btn-1", "nav-0-btn-1",
"nav-0-btn-2", "nav-0-btn-2",
"nav-nav-0", "nav-nav-0",
"nav-panel-01d46922d433251f7c1674604c7060b1", "nav-panel-061524bba81f197181a032e904983272",
"nav-panel-16c0f69a272204f0a4afc67975115e22", "nav-panel-0c0ddda05d377af1c0cee87f7c85da67",
"nav-panel-c8aa1ee17023581002d35f4a0f7fceb4", "nav-panel-3c6a067cd80a10d3707200fc8fb84bb3",
"nav-panel-c9653d8ece86bd4bab72508877f29b38", "nav-panel-4b12c0f69625cb352e0aa7d846f960d8",
"nav-panel-f33f815632f94c1611148ae2d42bc2c6", "nav-panel-6906624fe967e8dffbf4c3446a9e2385",
"nav-panel-7351d1dc85bcedcd74309f25472b7548",
"nav-panel-7784dd257dba6ab662963774a7bea03d",
"nav-panel-c62f4eeaa4277d5c14c486d5c8623ae1",
"nav-panel-cfcc43cbefc204c3c8c7487ef6347c27",
"nav-panel-d29649da522407a082335b726b32951c",
"navbar", "navbar",
"navbar-0-collapse", "navbar-0-collapse",
"navbar-mode", "navbar-mode",
@@ -794,50 +832,91 @@
"navbar-sample-collapse", "navbar-sample-collapse",
"navigation", "navigation",
"notification", "notification",
"over-mij",
"overview", "overview",
"panel-01d46922d433251f7c1674604c7060b1-0", "panel-061524bba81f197181a032e904983272-0",
"panel-01d46922d433251f7c1674604c7060b1-1", "panel-061524bba81f197181a032e904983272-1",
"panel-01d46922d433251f7c1674604c7060b1-2", "panel-061524bba81f197181a032e904983272-2",
"panel-01d46922d433251f7c1674604c7060b1-btn-0", "panel-061524bba81f197181a032e904983272-btn-0",
"panel-01d46922d433251f7c1674604c7060b1-btn-1", "panel-061524bba81f197181a032e904983272-btn-1",
"panel-01d46922d433251f7c1674604c7060b1-btn-2", "panel-061524bba81f197181a032e904983272-btn-2",
"panel-16c0f69a272204f0a4afc67975115e22-0", "panel-0c0ddda05d377af1c0cee87f7c85da67-0",
"panel-16c0f69a272204f0a4afc67975115e22-1", "panel-0c0ddda05d377af1c0cee87f7c85da67-1",
"panel-16c0f69a272204f0a4afc67975115e22-2", "panel-0c0ddda05d377af1c0cee87f7c85da67-2",
"panel-16c0f69a272204f0a4afc67975115e22-btn-0", "panel-0c0ddda05d377af1c0cee87f7c85da67-btn-0",
"panel-16c0f69a272204f0a4afc67975115e22-btn-1", "panel-0c0ddda05d377af1c0cee87f7c85da67-btn-1",
"panel-16c0f69a272204f0a4afc67975115e22-btn-2", "panel-0c0ddda05d377af1c0cee87f7c85da67-btn-2",
"panel-c8aa1ee17023581002d35f4a0f7fceb4-0", "panel-3c6a067cd80a10d3707200fc8fb84bb3-0",
"panel-c8aa1ee17023581002d35f4a0f7fceb4-1", "panel-3c6a067cd80a10d3707200fc8fb84bb3-1",
"panel-c8aa1ee17023581002d35f4a0f7fceb4-2", "panel-3c6a067cd80a10d3707200fc8fb84bb3-2",
"panel-c8aa1ee17023581002d35f4a0f7fceb4-btn-0", "panel-3c6a067cd80a10d3707200fc8fb84bb3-btn-0",
"panel-c8aa1ee17023581002d35f4a0f7fceb4-btn-1", "panel-3c6a067cd80a10d3707200fc8fb84bb3-btn-1",
"panel-c8aa1ee17023581002d35f4a0f7fceb4-btn-2", "panel-3c6a067cd80a10d3707200fc8fb84bb3-btn-2",
"panel-c9653d8ece86bd4bab72508877f29b38-0", "panel-4b12c0f69625cb352e0aa7d846f960d8-0",
"panel-c9653d8ece86bd4bab72508877f29b38-1", "panel-4b12c0f69625cb352e0aa7d846f960d8-1",
"panel-c9653d8ece86bd4bab72508877f29b38-2", "panel-4b12c0f69625cb352e0aa7d846f960d8-2",
"panel-c9653d8ece86bd4bab72508877f29b38-btn-0", "panel-4b12c0f69625cb352e0aa7d846f960d8-btn-0",
"panel-c9653d8ece86bd4bab72508877f29b38-btn-1", "panel-4b12c0f69625cb352e0aa7d846f960d8-btn-1",
"panel-c9653d8ece86bd4bab72508877f29b38-btn-2", "panel-4b12c0f69625cb352e0aa7d846f960d8-btn-2",
"panel-f33f815632f94c1611148ae2d42bc2c6-0", "panel-6906624fe967e8dffbf4c3446a9e2385-0",
"panel-f33f815632f94c1611148ae2d42bc2c6-1", "panel-6906624fe967e8dffbf4c3446a9e2385-1",
"panel-f33f815632f94c1611148ae2d42bc2c6-2", "panel-6906624fe967e8dffbf4c3446a9e2385-2",
"panel-f33f815632f94c1611148ae2d42bc2c6-btn-0", "panel-6906624fe967e8dffbf4c3446a9e2385-btn-0",
"panel-f33f815632f94c1611148ae2d42bc2c6-btn-1", "panel-6906624fe967e8dffbf4c3446a9e2385-btn-1",
"panel-f33f815632f94c1611148ae2d42bc2c6-btn-2", "panel-6906624fe967e8dffbf4c3446a9e2385-btn-2",
"panel-7351d1dc85bcedcd74309f25472b7548-0",
"panel-7351d1dc85bcedcd74309f25472b7548-1",
"panel-7351d1dc85bcedcd74309f25472b7548-2",
"panel-7351d1dc85bcedcd74309f25472b7548-btn-0",
"panel-7351d1dc85bcedcd74309f25472b7548-btn-1",
"panel-7351d1dc85bcedcd74309f25472b7548-btn-2",
"panel-7784dd257dba6ab662963774a7bea03d-0",
"panel-7784dd257dba6ab662963774a7bea03d-1",
"panel-7784dd257dba6ab662963774a7bea03d-2",
"panel-7784dd257dba6ab662963774a7bea03d-btn-0",
"panel-7784dd257dba6ab662963774a7bea03d-btn-1",
"panel-7784dd257dba6ab662963774a7bea03d-btn-2",
"panel-c62f4eeaa4277d5c14c486d5c8623ae1-0",
"panel-c62f4eeaa4277d5c14c486d5c8623ae1-1",
"panel-c62f4eeaa4277d5c14c486d5c8623ae1-2",
"panel-c62f4eeaa4277d5c14c486d5c8623ae1-btn-0",
"panel-c62f4eeaa4277d5c14c486d5c8623ae1-btn-1",
"panel-c62f4eeaa4277d5c14c486d5c8623ae1-btn-2",
"panel-cfcc43cbefc204c3c8c7487ef6347c27-0",
"panel-cfcc43cbefc204c3c8c7487ef6347c27-1",
"panel-cfcc43cbefc204c3c8c7487ef6347c27-2",
"panel-cfcc43cbefc204c3c8c7487ef6347c27-btn-0",
"panel-cfcc43cbefc204c3c8c7487ef6347c27-btn-1",
"panel-cfcc43cbefc204c3c8c7487ef6347c27-btn-2",
"panel-d29649da522407a082335b726b32951c-0",
"panel-d29649da522407a082335b726b32951c-1",
"panel-d29649da522407a082335b726b32951c-2",
"panel-d29649da522407a082335b726b32951c-btn-0",
"panel-d29649da522407a082335b726b32951c-btn-1",
"panel-d29649da522407a082335b726b32951c-btn-2",
"panels",
"persona", "persona",
"pie-chart", "pie-chart",
"pills", "pills",
"politique-de-confidentialité",
"politique-de-cookies",
"premier-article",
"privacy-policy",
"projecten", "projecten",
"projects", "projects",
"projets", "projets",
"publication", "publication",
"quadrant-chart", "quadrant-chart",
"quatrième-article-exclu-de-la-recherche",
"que-sont-les-cookies-", "que-sont-les-cookies-",
"release", "release",
"releases",
"requirement-chart", "requirement-chart",
"réduire", "réduire",
"sample-project",
"second-post",
"security", "security",
"separator",
"sequence-diagram", "sequence-diagram",
"shortcode-with-controls-and-frontmatter", "shortcode-with-controls-and-frontmatter",
"spinner", "spinner",
@@ -850,6 +929,7 @@
"table", "table",
"tabs", "tabs",
"third-party-links--use-of-your-information", "third-party-links--use-of-your-information",
"third-post",
"timeline", "timeline",
"title", "title",
"toast", "toast",
@@ -861,19 +941,26 @@
"toc-collapse", "toc-collapse",
"toc-collapse-items", "toc-collapse-items",
"tooltip", "tooltip",
"troisième-article",
"tweede-artikel",
"types-de-cookies-que-nous-utilisons", "types-de-cookies-que-nous-utilisons",
"types-of-cookies-we-use", "types-of-cookies-we-use",
"underline", "underline",
"user-journey", "user-journey",
"video", "video",
"video-message",
"video-type", "video-type",
"vidéo", "vidéo",
"vierde-artikel",
"voorbeeldproject",
"vos-droits", "vos-droits",
"welcome-to-hinode", "welcome-to-hinode",
"welkom-bij-hinode", "welkom-bij-hinode",
"what-are-cookies", "what-are-cookies",
"xy-chart", "xy-chart",
"your-rights" "your-rights",
"à-propos",
"éléments-bootstrap"
] ]
} }
} }

4
go.mod
View File

@@ -4,7 +4,7 @@ go 1.19
require ( require (
github.com/airbnb/lottie-web v5.13.0+incompatible // indirect github.com/airbnb/lottie-web v5.13.0+incompatible // indirect
github.com/cloudcannon/bookshop/hugo/v3 v3.16.4 // indirect github.com/cloudcannon/bookshop/hugo/v3 v3.16.5 // indirect
github.com/gethinode/mod-bootstrap v1.3.4 // indirect github.com/gethinode/mod-bootstrap v1.3.4 // indirect
github.com/gethinode/mod-csp v1.0.8 // indirect github.com/gethinode/mod-csp v1.0.8 // indirect
github.com/gethinode/mod-flexsearch/v3 v3.0.0 // indirect github.com/gethinode/mod-flexsearch/v3 v3.0.0 // indirect
@@ -15,7 +15,7 @@ require (
github.com/gethinode/mod-lottie v1.6.1 // indirect github.com/gethinode/mod-lottie v1.6.1 // indirect
github.com/gethinode/mod-mermaid/v3 v3.0.1 // indirect github.com/gethinode/mod-mermaid/v3 v3.0.1 // indirect
github.com/gethinode/mod-simple-datatables/v2 v2.0.2 // indirect github.com/gethinode/mod-simple-datatables/v2 v2.0.2 // indirect
github.com/gethinode/mod-utils/v4 v4.16.1 // indirect github.com/gethinode/mod-utils/v4 v4.17.0 // indirect
github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 // indirect github.com/nextapps-de/flexsearch v0.0.0-20250907103239-defb38b083f0 // indirect
github.com/twbs/bootstrap v5.3.8+incompatible // indirect github.com/twbs/bootstrap v5.3.8+incompatible // indirect
) )

4
go.sum
View File

@@ -12,6 +12,8 @@ github.com/cloudcannon/bookshop/hugo/v3 v3.16.3 h1:/Z66xKILl1SNGQePHZCnxo6vFgED7
github.com/cloudcannon/bookshop/hugo/v3 v3.16.3/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8= github.com/cloudcannon/bookshop/hugo/v3 v3.16.3/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8=
github.com/cloudcannon/bookshop/hugo/v3 v3.16.4 h1:k233xdD3ydE6iN8QB+c37//rSsFVtLIo5OUNRN4E3bc= github.com/cloudcannon/bookshop/hugo/v3 v3.16.4 h1:k233xdD3ydE6iN8QB+c37//rSsFVtLIo5OUNRN4E3bc=
github.com/cloudcannon/bookshop/hugo/v3 v3.16.4/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8= github.com/cloudcannon/bookshop/hugo/v3 v3.16.4/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8=
github.com/cloudcannon/bookshop/hugo/v3 v3.16.5 h1:RmqeSUQMPyi31YC6SaFNE2ubfFy13qVj5/lo+MCT+u8=
github.com/cloudcannon/bookshop/hugo/v3 v3.16.5/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8=
github.com/gethinode/mod-bootstrap v1.0.1 h1:NDZar+UEL42YHCvzzO+jVgqkZU5INA12BpjX3y6U4I4= github.com/gethinode/mod-bootstrap v1.0.1 h1:NDZar+UEL42YHCvzzO+jVgqkZU5INA12BpjX3y6U4I4=
github.com/gethinode/mod-bootstrap v1.0.1/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8= github.com/gethinode/mod-bootstrap v1.0.1/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
github.com/gethinode/mod-bootstrap v1.1.0 h1:BbalsW8kmFhv+J+dcc41TGcjIlM/p69AB0h0oGhAXIU= github.com/gethinode/mod-bootstrap v1.1.0 h1:BbalsW8kmFhv+J+dcc41TGcjIlM/p69AB0h0oGhAXIU=
@@ -514,6 +516,8 @@ github.com/gethinode/mod-utils/v4 v4.16.0 h1:yroLCeQyE/xU46YIKS81ZtFsOONTmVudrv2
github.com/gethinode/mod-utils/v4 v4.16.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4= github.com/gethinode/mod-utils/v4 v4.16.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
github.com/gethinode/mod-utils/v4 v4.16.1 h1:HjV6TONU7ZbXC2xZIPRupjKOUORddtQH8bb4dnULY1U= github.com/gethinode/mod-utils/v4 v4.16.1 h1:HjV6TONU7ZbXC2xZIPRupjKOUORddtQH8bb4dnULY1U=
github.com/gethinode/mod-utils/v4 v4.16.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4= github.com/gethinode/mod-utils/v4 v4.16.1/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
github.com/gethinode/mod-utils/v4 v4.17.0 h1:nDyXpZ0mCtf3ZML8G6bjeYJsI7Ne/Ze8rEWEa9zh6CI=
github.com/gethinode/mod-utils/v4 v4.17.0/go.mod h1:bYmvRdAo4ICy5MpSGafDvO4p5bTDpsDKFCPL3bH0mN4=
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo= github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU= github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg= github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=

View File

@@ -1,17 +0,0 @@
{{ $text := chomp .Text }}
{{ if site.Params.main.titleCase }}{{ $text = title $text }}{{ end }}
{{ if eq page.RelPermalink "/en/privacy/" }}
{{ warnf "title: %s" (.Text | safeHTML) }}
{{ end }}
{{ if and site.Params.navigation.anchor $text }}
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="heading">
{{- $text | safeHTML -}}
<a href="#{{ .Anchor | safeURL }}" aria-labelledby="{{ .Anchor | safeURL }}">
{{- partial "assets/icon.html" (dict "icon" "fas link anchor") }}
</a>
</h{{ .Level }}>
{{ else }}
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ $text | safeHTML }}</h{{ .Level }}>
{{ end }}

View File

@@ -1,13 +1,14 @@
{{ $class := .Attributes.class }}
{{ $text := chomp .Text }} {{ $text := chomp .Text }}
{{ if site.Params.main.titleCase }}{{ $text = (title ($text | htmlUnescape)) | htmlEscape }}{{ end }} {{ if site.Params.main.titleCase }}{{ $text = (title ($text | htmlUnescape)) | htmlEscape }}{{ end }}
{{ if and site.Params.navigation.anchor $text }} {{ if and site.Params.navigation.anchor $text }}
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="heading"> <h{{ .Level }} id="{{ .Anchor | safeURL }}" class="heading {{ with $class }}{{ . }}{{ end }}">
{{- $text | safeHTML -}} {{- $text | safeHTML -}}
<a href="#{{ .Anchor | safeURL }}" aria-labelledby="{{ .Anchor | safeURL }}"> <a href="#{{ .Anchor | safeURL }}" aria-labelledby="{{ .Anchor | safeURL }}">
{{- partial "assets/icon.html" (dict "icon" "fas link anchor") }} {{- partial "assets/icon.html" (dict "icon" "fas link anchor") }}
</a> </a>
</h{{ .Level }}> </h{{ .Level }}>
{{ else }} {{ else }}
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ $text | safeHTML }}</h{{ .Level }}> <h{{ .Level }} id="{{ .Anchor | safeURL }}" {{ with $class }} class="{{ . }}"{{ end }}>{{ $text | safeHTML }}</h{{ .Level }}>
{{ end }} {{ end }}

View File

@@ -197,9 +197,14 @@
{{- $href = printf "%s/" $href -}} {{- $href = printf "%s/" $href -}}
{{- end -}} {{- end -}}
<div class="mt-{{ $padding.y }} w-100"> <div class="mt-{{ $padding.y }} w-100">
<a class="btn btn-outline-primary" href="{{ $href | safeURL }}" role="button"> {{ partial "assets/button.html" (dict
{{ $args.hrefTitle }} "href" $href
</a> "title" $args.hrefTitle
"color" "primary"
"outline" true
"link-type" $args.moreLinkType
"icon" $args.moreLinkIcon
) }}
</div> </div>
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View File

@@ -45,7 +45,7 @@
{{- end -}} {{- end -}}
<div class="py-3 text-body-secondary hstack gap-1"> <div class="py-3 text-body-secondary hstack gap-1">
{{ T "shareLink" " " }} {{ if $args.showLabel }}{{ T "shareLink" " " }}{{ end }}
{{- range $index, $item := $list -}} {{- range $index, $item := $list -}}
{{- $url := $item.url -}} {{- $url := $item.url -}}
{{- $url = replace $url "{url}" $page.Permalink -}} {{- $url = replace $url "{url}" $page.Permalink -}}

View File

@@ -1,3 +1,9 @@
{{/* Initialize global variables */}}
{{- $size := site.Params.style.title.size | default 4 -}}
{{- $headingStyle := site.Params.style.title.headingStyle | default "display" -}}
{{- $contentStyle := site.Params.style.title.contentStyle | default "lead text-muted" -}}
{{- $padding := partial "utilities/GetPadding.html" -}}
{{/* Initialize local variables */}} {{/* Initialize local variables */}}
{{- $breakpoint := $.Scratch.Get "breakpoint" -}} {{- $breakpoint := $.Scratch.Get "breakpoint" -}}
{{- $metadata := "full" -}} {{- $metadata := "full" -}}
@@ -21,7 +27,8 @@
{{ if .Site.Params.navigation.breadcrumb }}{{ partial "assets/breadcrumb.html" (dict "page" .) }}{{ end -}} {{ if .Site.Params.navigation.breadcrumb }}{{ partial "assets/breadcrumb.html" (dict "page" .) }}{{ end -}}
{{/* Display title and metadata */}} {{/* Display title and metadata */}}
{{ with $title }}<p class="display-4 mt-5">{{ . }}</p>{{ end }} {{ with $title }}<h1 id="{{ anchorize . }}" class="{{ $headingStyle }}-{{ $size }} pt-1">{{ . }}</h1>{{ end }}
{{ if ne $metadata "none" }} {{ if ne $metadata "none" }}
<small class="text-body-secondary text-uppercase"> <small class="text-body-secondary text-uppercase">
{{ if .Date }} {{ if .Date }}
@@ -64,7 +71,9 @@
{{ partial "assets/sharing.html" (dict "page" .) }} {{ partial "assets/sharing.html" (dict "page" .) }}
{{/* Display description */}} {{/* Display description */}}
<p class="lead mb-5 mt-3">{{ .Description }}</p> {{ with .Description }}
<div class="{{ $contentStyle }} py-{{ $padding.y }}">{{ . | page.RenderString | safeHTML }}</div>
{{ end }}
{{/* Display TOC dropdown on smaller screens */}} {{/* Display TOC dropdown on smaller screens */}}
{{- if and .Site.Params.navigation.toc .Params.includeToc | default true -}} {{- if and .Site.Params.navigation.toc .Params.includeToc | default true -}}