diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 75197ba91..43fee111c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,7 +7,13 @@ - + {{/* View Transition */}} + {{/* https://developer.chrome.com/docs/web-platform/view-transitions/cross-document */}} + {{- /* Paginate */ -}} {{- /* Paginate in here, To solve the problem of the canonical URL being the same in the pagination */ -}} {{- /* see more https://github.com/gohugoio/hugo/issues/4507 */ -}} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 617094b12..ccc83a3e5 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -6,19 +6,19 @@ {{- with $image -}} {{- end -}} {{- /* Title */ -}} -

+

{{ .Title }}

{{- /* Meta */ -}}
- + diff --git a/layouts/partials/function/stringNormalise.html b/layouts/partials/function/stringNormalise.html new file mode 100644 index 000000000..2d206a454 --- /dev/null +++ b/layouts/partials/function/stringNormalise.html @@ -0,0 +1 @@ +{{- return replaceRE "[^A-Za-z0-9]" "-" . -}} \ No newline at end of file diff --git a/layouts/partials/plugin/image.html b/layouts/partials/plugin/image.html index 6660db841..69056a535 100644 --- a/layouts/partials/plugin/image.html +++ b/layouts/partials/plugin/image.html @@ -34,6 +34,7 @@ {{- end -}} {{ T "contents" }}
{{- /* Title */ -}} -

{{ .Title }}

+

{{ .Title }}

{{- /* Subtitle */ -}} {{- with $params.subtitle -}} @@ -44,7 +44,7 @@

{{ . }}

{{- /* Meta */ -}}