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:
title:
link:
link-type:
icon:
icon-rounded:
icon-style:
cols:

View File

@@ -49,9 +49,13 @@
{{ $moreButton := site.Params.modules.bookshop.articles.moreButton | default false }}
{{ $moreTitle := T "more" (pluralize $args.input.section) }}
{{ $moreLink := $args.input.section }}
{{ $moreType := "button" }}
{{ $moreIcon := "" }}
{{ with $args.more }}
{{ if .title }}{{ $moreTitle = .title }}{{ end }}
{{ if .link }}{{ $moreLink = .link }}{{ end }}
{{ if index . "link-type" }}{{ $moreType = index . "link-type" }}{{ end }}
{{ if .icon }}{{ $moreIcon = .icon }}{{ end }}
{{ end }}
{{ $paginate := $args.paginate }}
@@ -76,15 +80,17 @@
{{ $partial := "assets/card-group.html" }}
{{ $params := dict }}
{{- $params = merge $params (dict
"page" page
"list" $pages
"limit" $args.limit
"cols" $args.cols
"icon-rounded" $args.iconRounded
"icon-style" $args.iconStyle
"href" (cond $moreButton $moreLink "")
"href-title" (cond $moreButton $moreTitle "")
"href-force" (gt $result.total (len $result.pages))
"page" page
"list" $pages
"limit" $args.limit
"cols" $args.cols
"icon-rounded" $args.iconRounded
"icon-style" $args.iconStyle
"href" (cond $moreButton $moreLink "")
"href-title" (cond $moreButton $moreTitle "")
"href-force" (gt $result.total (len $result.pages))
"more-link-type" $moreType
"more-link-icon" $moreIcon
)}}
{{ if $args.scroll }}

View File

@@ -69,6 +69,24 @@ arguments:
release: v0.27.0
button-label:
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
header:

View File

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

4
go.mod
View File

@@ -4,7 +4,7 @@ go 1.19
require (
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-csp v1.0.8 // 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-mermaid/v3 v3.0.1 // 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/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.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.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/go.mod h1:DcpPc2cNaXUPGEvhD7npuEEPA7573NvakTlrwFbyjr8=
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.1 h1:HjV6TONU7ZbXC2xZIPRupjKOUORddtQH8bb4dnULY1U=
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/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
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 }}
{{ if site.Params.main.titleCase }}{{ $text = (title ($text | htmlUnescape)) | htmlEscape }}{{ end }}
{{ 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 -}}
<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 }}>
<h{{ .Level }} id="{{ .Anchor | safeURL }}" {{ with $class }} class="{{ . }}"{{ end }}>{{ $text | safeHTML }}</h{{ .Level }}>
{{ end }}

View File

@@ -171,7 +171,7 @@
{{- $cardWrapper = printf "card-block card-block-%d" (int $size) -}}
{{- end -}}
{{/*add col-$width */}}
{{/* add col-$width */}}
<div class="{{ with $cardWrapper }}{{ . }}{{ else }}col{{ end }}">
{{- if $args.spacer -}}<div class="spacer"></div>{{ end -}}
{{- partial $args.hook $params -}}
@@ -197,9 +197,14 @@
{{- $href = printf "%s/" $href -}}
{{- end -}}
<div class="mt-{{ $padding.y }} w-100">
<a class="btn btn-outline-primary" href="{{ $href | safeURL }}" role="button">
{{ $args.hrefTitle }}
</a>
{{ partial "assets/button.html" (dict
"href" $href
"title" $args.hrefTitle
"color" "primary"
"outline" true
"link-type" $args.moreLinkType
"icon" $args.moreLinkIcon
) }}
</div>
{{- end -}}
{{- end -}}

View File

@@ -45,7 +45,7 @@
{{- end -}}
<div class="py-3 text-body-secondary hstack gap-1">
{{ T "shareLink" " " }}
{{ if $args.showLabel }}{{ T "shareLink" " " }}{{ end }}
{{- range $index, $item := $list -}}
{{- $url := $item.url -}}
{{- $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 */}}
{{- $breakpoint := $.Scratch.Get "breakpoint" -}}
{{- $metadata := "full" -}}
@@ -21,7 +27,8 @@
{{ if .Site.Params.navigation.breadcrumb }}{{ partial "assets/breadcrumb.html" (dict "page" .) }}{{ end -}}
{{/* 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" }}
<small class="text-body-secondary text-uppercase">
{{ if .Date }}
@@ -64,7 +71,9 @@
{{ partial "assets/sharing.html" (dict "page" .) }}
{{/* 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 */}}
{{- if and .Site.Params.navigation.toc .Params.includeToc | default true -}}