Compare commits

...

12 Commits

Author SHA1 Message Date
Mark Dumay
80b28f7557 Merge pull request #1275 from gethinode/develop
Shift Hugo highlighting options to Hinode docs
2024-10-26 08:58:40 +02:00
Mark Dumay
43eebdf53f Merge branch 'main' into develop 2024-10-26 07:57:24 +02:00
Mark Dumay
b5062fe687 Merge pull request #1274 from gethinode/develop
Init default card color variable
2024-10-26 07:56:44 +02:00
Mark Dumay
51aa15266b Shift Hugo highlighting options to Hinode docs 2024-10-26 07:40:41 +02:00
Mark Dumay
19f638a129 Merge branch 'main' into develop 2024-10-26 07:30:21 +02:00
Mark Dumay
aa2e5ca6f4 Merge pull request #1273 from d-oit/file-options
feat: File component extend with Hugo highlight options
2024-10-26 07:28:00 +02:00
Mark Dumay
04eea0db71 Bump package release 2024-10-26 07:25:59 +02:00
Mark Dumay
4645f4ee7c Init default card color variable 2024-10-26 07:25:06 +02:00
do
bb6421c70b feat: File component extend with Hugo highlight options 2024-10-25 22:21:25 +02:00
Mark Dumay
622c6ee1c0 Merge pull request #1271 from gethinode/develop
Fix passing of button label argument to card
2024-10-25 18:35:36 +02:00
Mark Dumay
f1befb05cc Merge branch 'main' into develop 2024-10-25 18:28:05 +02:00
Mark Dumay
e146e3a559 Fix passing of button label argument to card 2024-10-25 18:27:39 +02:00
7 changed files with 25 additions and 5 deletions

View File

@@ -25,6 +25,8 @@ strong {
$black: #000 !default; $black: #000 !default;
$btn-toggle-color: $black !default; $btn-toggle-color: $black !default;
$card-color: var(--bs-body-color);
$carousel-dark-indicator-active-bg: #fff !default; $carousel-dark-indicator-active-bg: #fff !default;
$carousel-dark-caption-color: #fff !default; $carousel-dark-caption-color: #fff !default;
$carousel-dark-control-icon-filter: invert(0) grayscale(100) !default; $carousel-dark-control-icon-filter: invert(0) grayscale(100) !default;

View File

@@ -38,3 +38,8 @@ arguments:
type: string type: string
optional: true optional: true
comment: Class attribute of the tab control that wraps the file element. comment: Class attribute of the tab control that wraps the file element.
options:
type: string
optional: true
comment: Hugo highlighting options.
release: v0.27.6

View File

@@ -292,6 +292,8 @@
"link-secondary", "link-secondary",
"link-success", "link-success",
"link-warning", "link-warning",
"lntable",
"lntd",
"lottie-animation", "lottie-animation",
"m-0", "m-0",
"main-content", "main-content",
@@ -316,7 +318,9 @@
"mt-auto", "mt-auto",
"mt-md-0", "mt-md-0",
"multi-docs-collapse-15", "multi-docs-collapse-15",
"multi-file-collapse-0",
"multi-file-collapse-1", "multi-file-collapse-1",
"multi-file-collapse-2",
"mx-auto", "mx-auto",
"mx-md-0", "mx-md-0",
"mx-md-2", "mx-md-2",
@@ -500,7 +504,9 @@
"barre-de-navigation", "barre-de-navigation",
"blog", "blog",
"body-docs-collapse-15", "body-docs-collapse-15",
"body-file-collapse-0",
"body-file-collapse-1", "body-file-collapse-1",
"body-file-collapse-2",
"bouton", "bouton",
"breadcrumb", "breadcrumb",
"button", "button",
@@ -517,8 +523,10 @@
"collapse-1", "collapse-1",
"command-prompt", "command-prompt",
"cookies-etc", "cookies-etc",
"current-page-as-markdown-file",
"custom-activity", "custom-activity",
"data-tables", "data-tables",
"default-configuration",
"docs", "docs",
"documentation", "documentation",
"example", "example",
@@ -556,8 +564,11 @@
"fichier", "fichier",
"fil-dariane", "fil-dariane",
"file", "file",
"file-shortcode",
"footer-docs-collapse-15", "footer-docs-collapse-15",
"footer-file-collapse-0",
"footer-file-collapse-1", "footer-file-collapse-1",
"footer-file-collapse-2",
"formula-katex", "formula-katex",
"formule-katex", "formule-katex",
"groupe-de-boutons", "groupe-de-boutons",

View File

@@ -82,6 +82,7 @@
{{- $params = merge $params (dict {{- $params = merge $params (dict
"title" $element.Title "title" $element.Title
"href" $element.RelPermalink "href" $element.RelPermalink
"buttonLabel" $element.buttonLabel
"description" (partial "utilities/GetDescription.html" (dict "page" $element "raw" true)) "description" (partial "utilities/GetDescription.html" (dict "page" $element "raw" true))
"thumbnail" $thumbnail "thumbnail" $thumbnail
"anchor" $anchor "anchor" $anchor
@@ -143,7 +144,7 @@
"style" $args.style "style" $args.style
"align" $args.align "align" $args.align
"button" $args.button "button" $args.button
"buttonLabel" $args.buttonLabel "buttonLabel" $element.buttonLabel
"buttonType" $args.buttonType "buttonType" $args.buttonType
"iconRounded" $args.iconRounded "iconRounded" $args.iconRounded
) -}} ) -}}

View File

@@ -38,6 +38,7 @@
{{- $full := true -}} {{- $full := true -}}
{{ if isset .Params "full" }}{{ $full = partial "utilities/CastBool.html" (.Get "full") }}{{ end -}} {{ if isset .Params "full" }}{{ $full = partial "utilities/CastBool.html" (.Get "full") }}{{ end -}}
{{- $class := .Get "class" | default "" -}} {{- $class := .Get "class" | default "" -}}
{{- $options := .Get "options" -}}
{{ if not (fileExists $file) }} {{ if not (fileExists $file) }}
{{ warnf "Cannot find file: '%q'. See %s" $file $.Position }} {{ warnf "Cannot find file: '%q'. See %s" $file $.Position }}
@@ -65,7 +66,7 @@
</ul> </ul>
<div class="border-start border-end border-bottom mb-3"> <div class="border-start border-end border-bottom mb-3">
<div class="collapse multi-{{ $id }}{{ if $show }} show{{ end }} syntax-highlight" id="body-{{ $id }}"> <div class="collapse multi-{{ $id }}{{ if $show }} show{{ end }} syntax-highlight" id="body-{{ $id }}">
{{- highlight (trim $content "\r\n") $lang "" -}} {{- highlight (trim $content "\r\n") $lang $options -}}
</div> </div>
<div class="collapse multi-{{ $id }}{{ if not $show }} show{{ end }} p-3" id="footer-{{ $id }}"><i>...</i></div> <div class="collapse multi-{{ $id }}{{ if not $show }} show{{ end }} p-3" id="footer-{{ $id }}"><i>...</i></div>
</div> </div>

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.27.4", "version": "0.27.6",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.27.4", "version": "0.27.6",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@fullhuman/postcss-purgecss": "^6.0.0", "@fullhuman/postcss-purgecss": "^6.0.0",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@gethinode/hinode", "name": "@gethinode/hinode",
"version": "0.27.4", "version": "0.27.6",
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator", "description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
"keywords": [ "keywords": [
"hugo", "hugo",