Skip to content

Commit

Permalink
Merge pull request #1082 from gethinode/develop
Browse files Browse the repository at this point in the history
Fix argument handling
  • Loading branch information
markdumay authored Aug 11, 2024
2 parents 753b949 + 423670f commit 54e0f72
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions data/structures/youtube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ arguments:
type: bool
optional: true
default: false
release: v0.25.2
comment: >-
Trigger to retrieve the title from the video metadata.
2 changes: 1 addition & 1 deletion layouts/partials/assets/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

<p class="card-text"><small class="{{ if $color }}text-bg-{{ $color }}{{ else }}text-body-secondary{{ end }} text-uppercase">
{{- if in (slice "full" "publication") $keywords -}}
{{ with $page.Date }}{{- partial "utilities/date.html" (dict "date" . "format" "long") -}}&nbsp;&bull;{{ end }}
{{ with $page.Date }}{{ partial "utilities/date.html" (dict "date" . "format" "long") }}&nbsp;&bull;{{ end -}}
{{ $page.ReadingTime | lang.FormatNumber 0 }} {{ i18n "minutesShort" }} {{ i18n "read" -}}
{{- end -}}

Expand Down
4 changes: 3 additions & 1 deletion layouts/shortcodes/alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
{{ $icon = partial "assets/icon.html" (dict "icon" (printf "%s fa-2x fa-fw" .)) }}
{{ end }}
{{ $dismissible := false -}}
{{ if isset .Params "dismissible" }}{{ $dismissible = partial "utilities/CastBool.html" (.Get "dismissible") }}{{ end -}}
{{- if and .IsNamedParams (isset .Params "dismissible") }}
{{ $dismissible = partial "utilities/CastBool.html" (.Get "dismissible") }}
{{ end }}
{{- $class := .Get "class" | default "" -}}

{{ $body := trim .Inner " \r\n" -}}
Expand Down
6 changes: 4 additions & 2 deletions layouts/shortcodes/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@
{{- errorf "File format not supported (line %s): %s" .Position $file -}}
{{- end -}}

{{ $show := .Get "show" | default true -}}
{{ $full := .Get "full" | default true -}}
{{- $show := true -}}
{{ if isset .Params "show" }}{{ $show = partial "utilities/CastBool.html" (.Get "show") }}{{ end -}}
{{- $full := true -}}
{{ if isset .Params "full" }}{{ $full = partial "utilities/CastBool.html" (.Get "full") }}{{ end -}}
{{- $class := .Get "class" | default "" -}}

<!-- Main code -->
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gethinode/hinode",
"version": "0.25.2",
"version": "0.25.3",
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
"keywords": [
"hugo",
Expand Down

0 comments on commit 54e0f72

Please sign in to comment.