theme: improve initial page

which hopefully no one ever sees
This commit is contained in:
Sören Weber 2023-05-25 22:15:11 +02:00
parent 806de0bbc4
commit 9222821974
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 11 additions and 3 deletions

View file

@ -1 +1,6 @@
{{- if or .IsHome (not .Title) }}
{{- $title := .Site.Title }}
{{- partial "heading-pre.html" . }}<h1 id="{{ $title | anchorize }}">{{ $title }}</h1>{{ partial "heading-post.html" . }}
{{- end }}
{{- partial "initial.md" . | markdownify }}

View file

@ -1,6 +1,9 @@
# Create this Page
## Create this Page
You need to create a file for this page. You can either
- create an _index.md, index.md or otherly named markdown file (depending on Hugo's bundle type) in *content* folder and fill it with Markdown content
- create an *index.html* file in the <b>static</b> folder and fill the file with HTML content
- 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`