From e53690816fc73b4db9cc765d4b9c00206bb5e998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 29 Aug 2024 10:57:17 +0200 Subject: [PATCH] theme: consistent naming #891 --- layouts/_default/list.html | 2 +- layouts/_default/single.html | 2 +- layouts/_default/views/body.html | 1 + layouts/_default/views/body.print.html | 1 + layouts/_default/views/page.html | 1 - layouts/_default/views/page.print.html | 1 - layouts/partials/bodys/{page-single.html => single.html} | 0 layouts/partials/bodys/{page-tree.html => tree.html} | 0 8 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 layouts/_default/views/body.html create mode 100644 layouts/_default/views/body.print.html delete mode 100644 layouts/_default/views/page.html delete mode 100644 layouts/_default/views/page.print.html rename layouts/partials/bodys/{page-single.html => single.html} (100%) rename layouts/partials/bodys/{page-tree.html => tree.html} (100%) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 678546c49b..21509c74c7 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,7 @@ {{- .Render "views/storeOutputFormat" }} {{- end }} {{- define "body" }} - {{- .Render "views/page" }} + {{- .Render "views/body" }} {{- end }} {{- define "menu" }} {{- .Render "views/menu" }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 678546c49b..21509c74c7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@ {{- .Render "views/storeOutputFormat" }} {{- end }} {{- define "body" }} - {{- .Render "views/page" }} + {{- .Render "views/body" }} {{- end }} {{- define "menu" }} {{- .Render "views/menu" }} diff --git a/layouts/_default/views/body.html b/layouts/_default/views/body.html new file mode 100644 index 0000000000..871f7fbe08 --- /dev/null +++ b/layouts/_default/views/body.html @@ -0,0 +1 @@ +{{- partial "bodys/single.html" . }} \ No newline at end of file diff --git a/layouts/_default/views/body.print.html b/layouts/_default/views/body.print.html new file mode 100644 index 0000000000..6de3c3f842 --- /dev/null +++ b/layouts/_default/views/body.print.html @@ -0,0 +1 @@ +{{- partial "bodys/tree.html" . }} \ No newline at end of file diff --git a/layouts/_default/views/page.html b/layouts/_default/views/page.html deleted file mode 100644 index 2598ae47c6..0000000000 --- a/layouts/_default/views/page.html +++ /dev/null @@ -1 +0,0 @@ -{{- partial "bodys/page-single.html" . }} \ No newline at end of file diff --git a/layouts/_default/views/page.print.html b/layouts/_default/views/page.print.html deleted file mode 100644 index 656a8f4756..0000000000 --- a/layouts/_default/views/page.print.html +++ /dev/null @@ -1 +0,0 @@ -{{- partial "bodys/page-tree.html" . }} \ No newline at end of file diff --git a/layouts/partials/bodys/page-single.html b/layouts/partials/bodys/single.html similarity index 100% rename from layouts/partials/bodys/page-single.html rename to layouts/partials/bodys/single.html diff --git a/layouts/partials/bodys/page-tree.html b/layouts/partials/bodys/tree.html similarity index 100% rename from layouts/partials/bodys/page-tree.html rename to layouts/partials/bodys/tree.html