From 6291998554a3655fac37662391f223082348ba2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 29 Aug 2024 10:20:08 +0200 Subject: [PATCH] theme: remove disfunct initial handling #891 --- layouts/partials/indent.html | 3 --- layouts/partials/initial.html | 7 ------- layouts/partials/initial.md | 9 --------- 3 files changed, 19 deletions(-) delete mode 100644 layouts/partials/indent.html delete mode 100644 layouts/partials/initial.html delete mode 100644 layouts/partials/initial.md diff --git a/layouts/partials/indent.html b/layouts/partials/indent.html deleted file mode 100644 index dfcdbff61d2..00000000000 --- a/layouts/partials/indent.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- $content := .content }} -{{- $indention := .indention }} -{{- replaceRE "(\\r\\n|\\r|\\n)" (printf "$1%s" $indention) (replaceRE "^" $indention (trim $content "\n\r\t ")) | safeHTML }} \ No newline at end of file diff --git a/layouts/partials/initial.html b/layouts/partials/initial.html deleted file mode 100644 index 559492c6757..00000000000 --- a/layouts/partials/initial.html +++ /dev/null @@ -1,7 +0,0 @@ -{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }} -{{- if not $title }} - {{- $title := site.Title }} -

{{ $title }}

-{{- end }} - -{{- "layouts/partials/initial.md" | readFile | .RenderString }} \ No newline at end of file diff --git a/layouts/partials/initial.md b/layouts/partials/initial.md deleted file mode 100644 index 8a8f57ad51f..00000000000 --- a/layouts/partials/initial.md +++ /dev/null @@ -1,9 +0,0 @@ -## Create this Page - -You need to create a file for this page. You can either - -- create a file in the `content` folder and fill it with Markdown content - - inside a folder named by the page's title like `/_index.md` or `<TITLE>/index.md` - - named by the page's title like `<TITLE>.md` -- create a file in the `static` folder and fill it with HTML content - - inside a folder named by the page's title like `<TITLE>/index.html`