From b8f888c7680accd110039aaeb63729a17bbb6de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 18 Apr 2025 14:56:11 +0200 Subject: [PATCH] theme: Rename internal templates from partials/ to _partials/ --- layouts/_markup/render-link.html | 4 ++-- layouts/_partials/layouts/header/qr.html | 2 +- layouts/_shortcodes/img.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_markup/render-link.html b/layouts/_markup/render-link.html index 88e3cbee5..70011220e 100644 --- a/layouts/_markup/render-link.html +++ b/layouts/_markup/render-link.html @@ -196,7 +196,7 @@ either of these shortcodes in conjunction with this render hook. >{{ .Text }} -{{- 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. diff --git a/layouts/_partials/layouts/header/qr.html b/layouts/_partials/layouts/header/qr.html index ccc0ee959..fea64f625 100644 --- a/layouts/_partials/layouts/header/qr.html +++ b/layouts/_partials/layouts/header/qr.html @@ -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 )) }} -{{ define "partials/_inline/qr" }} +{{ define "_partials/_inline/qr" }} {{ $img_class := .img_class | default "w-10" }} {{ with images.QR $.page.Permalink (dict "targetDir" "images/qr") }} diff --git a/layouts/_shortcodes/img.html b/layouts/_shortcodes/img.html index 60187802e..e49afc57f 100644 --- a/layouts/_shortcodes/img.html +++ b/layouts/_shortcodes/img.html @@ -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" }}