From 30b5defb5896f54f986af0efacce5e17d6e29597 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Mon, 16 Oct 2023 00:11:31 +0200 Subject: Anchors on headings --- layouts/_default/_markup/render-heading.html | 7 +++++++ layouts/_default/about.html | 5 ++++- layouts/index.html | 5 ++++- layouts/partials/metadata.html | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 layouts/_default/_markup/render-heading.html (limited to 'layouts') diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..3df797e --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1,7 @@ + + + {{ .Text | safeHTML }} + + + + diff --git a/layouts/_default/about.html b/layouts/_default/about.html index 4a3a656..99eb93a 100644 --- a/layouts/_default/about.html +++ b/layouts/_default/about.html @@ -21,7 +21,10 @@ {{ range .Paginator.Pages }}
-

+

{{ .Title }}

{{ with .Content }} diff --git a/layouts/index.html b/layouts/index.html index f787152..021da39 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -9,7 +9,10 @@ {{ range $index, $element := (where .Pages "Type" "in" .Site.Params.mainSections).ByWeight }}
-

+

{{ .Title }}

{{ range first 3 .Pages.ByPublishDate.Reverse }} diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 5ad92e3..0c68b3c 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -50,7 +50,7 @@ }} {{ with $val }}