mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
theme: improve initial page
which hopefully no one ever sees
This commit is contained in:
parent
806de0bbc4
commit
9222821974
2 changed files with 11 additions and 3 deletions
|
@ -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 }}
|
{{- partial "initial.md" . | markdownify }}
|
|
@ -1,6 +1,9 @@
|
||||||
# Create this Page
|
## Create this Page
|
||||||
|
|
||||||
You need to create a file for this page. You can either
|
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 a file in the `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
|
- 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`
|
||||||
|
|
Loading…
Reference in a new issue