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 62b0cc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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 . }}
{{ or .AlertTitle (T (printf "admonitions.%s" .AlertType)) (title .AlertType) }}
</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

0 comments on commit 62b0cc8

Please sign in to comment.