theme: remove disfunct initial handling #891

This commit is contained in:
Sören Weber 2024-08-29 10:20:08 +02:00
parent 4a43773272
commit 3f9e8cbdeb
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
3 changed files with 0 additions and 19 deletions

View file

@ -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 }}

View file

@ -1,7 +0,0 @@
{{- $title := partial "pageHelper/title.hugo" (dict "page" .) }}
{{- if not $title }}
{{- $title := site.Title }}
<h1 id="{{ $title | plainify | anchorize }}">{{ $title }}</h1>
{{- end }}
{{- "layouts/partials/initial.md" | readFile | .RenderString }}

View file

@ -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 `<TITLE>/_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`