Skip to content

Commit

Permalink
refactor: remove workaround for upstream issue
Browse files Browse the repository at this point in the history
- Remove workaround
- Set minimum required version

gohugoio/hugo#12913 was resolved with
the release of v0.140.0.
  • Loading branch information
jmooring committed Dec 14, 2024
1 parent 2ab2ae3 commit b3c56da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[module.hugoVersion]
extended = true
min = '0.140.0'
9 changes: 4 additions & 5 deletions layouts/_default/_markup/render-blockquote-alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,12 @@
{{- if templates.Exists (printf "partials/%s" $partial) }}
<div class="admonition {{ $type }}">
<div class="admonition-header">
{{- partialCached $partial . }}
{{- or .AlertTitle (T (printf "admonitions.%s" .AlertType)) (title .AlertType) }}
{{ partialCached $partial . }}
<span>{{ or .AlertTitle (T (printf "admonitions.%s" .AlertType)) (title .AlertType) }}</span>
</div>
{{- /* See https://github.com/gohugoio/hugo/issues/12913. */}}
{{- if ne .Text "<p>" }}
{{- with .Text }}
<div class="admonition-content">
{{ .Text }}
{{ . }}
</div>
{{- end }}
</div>
Expand Down
7 changes: 4 additions & 3 deletions theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ license: MIT
licenselink: https://github.com/kkkzoz/hugo-admonitions/blob/master/LICENSE
description: Hugo theme component to display simple and clean callouts.
homepage: https://github.com/kkkzoz/hugo-admonitions
min_version: 0.134.1

tags:
- component
- admonition
- alert
- callout
- component
- notice
- admonition

features:
- nicely display notices
- easy to use
Expand Down

0 comments on commit b3c56da

Please sign in to comment.