mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Merge commit 'b3d87dd0fd746f07f9afa6e6a2969aea41da6a38'
This commit is contained in:
@@ -196,7 +196,7 @@ either of these shortcodes in conjunction with this render hook.
|
||||
>{{ .Text }}</a
|
||||
>
|
||||
|
||||
{{- define "partials/inline/h-rh-l/validate-fragment.html" }}
|
||||
{{- define "_partials/inline/h-rh-l/validate-fragment.html" }}
|
||||
{{- /*
|
||||
Validates the fragment portion of a link destination.
|
||||
|
||||
@@ -248,7 +248,7 @@ either of these shortcodes in conjunction with this render hook.
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "partials/inline/h-rh-l/get-glossary-link-attributes.html" }}
|
||||
{{- define "_partials/inline/h-rh-l/get-glossary-link-attributes.html" }}
|
||||
{{- /*
|
||||
Returns the anchor element attributes for a link to the given glossary term.
|
||||
|
@@ -5,6 +5,7 @@
|
||||
{{ $image1x := $image.Resize (printf "%dx" $width1x) }}
|
||||
{{ $image1xWebp := $image.Resize (printf "%dx webp" $width1x) }}
|
||||
{{ $class := .class | default "h-64 tablet:h-96 lg:h-full w-full object-cover lg:absolute" }}
|
||||
{{ $loading := .loading | default "eager" }}
|
||||
<picture>
|
||||
<source
|
||||
srcset="{{ $imageWebp.RelPermalink }}"
|
||||
@@ -20,6 +21,7 @@
|
||||
class="{{ $class }}"
|
||||
src="{{ $image1x.RelPermalink }}"
|
||||
alt=""
|
||||
loading="{{ $loading }}"
|
||||
width="{{ $image1x.Width }}"
|
||||
height="{{ $image1x.Height }}">
|
||||
</picture>
|
@@ -10,7 +10,7 @@
|
||||
{{ partial "layouts/blocks/modal.html" (dict "modal_button" $qr "modal_content" $qrBig "modal_title" (printf "QR code linking to %s" $.Permalink )) }}
|
||||
</div>
|
||||
|
||||
{{ define "partials/_inline/qr" }}
|
||||
{{ define "_partials/_inline/qr" }}
|
||||
{{ $img_class := .img_class | default "w-10" }}
|
||||
{{ with images.QR $.page.Permalink (dict "targetDir" "images/qr") }}
|
||||
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
@@ -359,7 +359,7 @@ When using the padding filter, provide all arguments in this order:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "partials/inline/get-resource.html" }}
|
||||
{{- define "_partials/inline/get-resource.html" }}
|
||||
{{- $r := "" }}
|
||||
{{- $u := urls.Parse .src }}
|
||||
{{- $msg := "The %q shortcode was unable to resolve %s. See %s" }}
|
@@ -14,8 +14,8 @@ separately for each language.
|
||||
(dict "contentDir" "/configuration/all/#contentdir")
|
||||
(dict "copyright" "/configuration/all/#copyright")
|
||||
(dict "disableAliases" "/configuration/all/#disablealiases")
|
||||
(dict "disableHugoGeneratorInject" "/configuration/all/#disableHugogeneratorinject")
|
||||
(dict "disableKinds" "/configuration/all/#disableKinds")
|
||||
(dict "disableHugoGeneratorInject" "/configuration/all/#disablehugogeneratorinject")
|
||||
(dict "disableKinds" "/configuration/all/#disablekinds")
|
||||
(dict "disableLiveReload" "/configuration/all/#disablelivereload")
|
||||
(dict "disablePathToLower" "/configuration/all/#disablepathtolower")
|
||||
(dict "enableEmoji " "/configuration/all/#enableemoji")
|
@@ -44,6 +44,8 @@
|
||||
{{ block "header" . }}
|
||||
{{ partial "layouts/header/header.html" . }}
|
||||
{{ end }}
|
||||
{{ block "subheader" . }}
|
||||
{{ end }}
|
||||
{{ block "hero" . }}
|
||||
{{ end }}
|
||||
<div class="flex w-full xl:w-6xl h-full flex-auto mx-auto">
|
Reference in New Issue
Block a user