From eb49e85214053cdb7daed7b4763052e16ac58804 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Tue, 19 Mar 2024 07:37:49 -0700 Subject: [PATCH] Remove grid1 shortcode --- doc/content/about/_index.md | 2 +- layouts/shortcodes/grid.html | 8 ++++---- layouts/shortcodes/grid1.html | 11 ----------- 3 files changed, 5 insertions(+), 16 deletions(-) delete mode 100644 layouts/shortcodes/grid1.html diff --git a/doc/content/about/_index.md b/doc/content/about/_index.md index b7470b36..b6bd4b06 100644 --- a/doc/content/about/_index.md +++ b/doc/content/about/_index.md @@ -7,4 +7,4 @@ The **Scientific Python Hugo Theme** is a theme for the [Hugo](https://gohugo.io) static site generator built on the [Fresh](https://github.com/StefMa/hugo-fresh) theme. -{{< grid1 file="theme-team.toml" columns="2 3 4 5" />}} +{{< grid file="theme-team.toml" columns="2 3 4 5" />}} diff --git a/layouts/shortcodes/grid.html b/layouts/shortcodes/grid.html index d6ee03e7..6274af15 100644 --- a/layouts/shortcodes/grid.html +++ b/layouts/shortcodes/grid.html @@ -2,7 +2,7 @@ doc: Grids. -{{< grid1 columns="1 2 3 4" outline="true" >}} +{{< grid columns="1 2 3 4" outline="true" >}} [[item]] type = '' @@ -20,9 +20,9 @@ type = '' body = 'D' -{{< /grid1 >}} +{{< /grid >}} -{{< grid1 columns="1 2 2 4" >}} +{{< grid columns="1 2 2 4" >}} [[item]] type = 'card' @@ -92,7 +92,7 @@ {{< /image >}}''' footer = 'A clickable figure card' -{{< /grid1 >}} +{{< /grid >}} */}} diff --git a/layouts/shortcodes/grid1.html b/layouts/shortcodes/grid1.html deleted file mode 100644 index 5b18948e..00000000 --- a/layouts/shortcodes/grid1.html +++ /dev/null @@ -1,11 +0,0 @@ -{{- $items := "" -}} -{{- with .Get "file" -}} - {{- with $.Page.Resources.Get . | transform.Unmarshal }} - {{- $items = (index . "item") }} - {{- else }} - {{- errorf "Unable to get page resource %q" . }} - {{- end }} -{{- else }} - {{- $items = (index (.Inner | transform.Unmarshal) "item") }} -{{- end }} -{{- partial "_elements/grid.html" (merge .Params (dict "items" $items)) -}}