mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
archetypes: modularize initially empty home page default #300
This commit is contained in:
parent
897e004e1a
commit
bba22b8f85
2 changed files with 20 additions and 21 deletions
|
@ -1,25 +1,9 @@
|
||||||
{{- partial "header.html" . }}
|
{{- partial "header.html" . }}
|
||||||
{{- if .Site.Home.Content }}
|
{{- if not .Site.Home.Content }}
|
||||||
{{- if eq (.Scratch.Get "relearnOutputFormat") "PRINT" }}
|
{{- partial "initial.html" .Site.Home }}
|
||||||
|
{{- else if eq (.Scratch.Get "relearnOutputFormat") "PRINT" }}
|
||||||
{{- partial "body.print.html" .Site.Home }}
|
{{- partial "body.print.html" .Site.Home }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- partial "body.html" .Site.Home }}
|
{{- partial "body.html" .Site.Home }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
|
||||||
<article>
|
|
||||||
|
|
||||||
<h1>Customize your own home page</h1>
|
|
||||||
<p>
|
|
||||||
The site is working. Don't forget to customize this page with your own. You typically have 3 choices :
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
<li><b>1.</b> Create an _index.md document in <b>content</b> folder and fill it with Markdown content</li>
|
|
||||||
<li><b>2.</b> Create an <b>index.html</b> file in the <b>static</b> folder and fill the file with HTML content</li>
|
|
||||||
<li><b>3.</b> Configure your server to automatically redirect home page to one your documentation page</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<footer class="footline">
|
|
||||||
</footer>
|
|
||||||
</article>
|
|
||||||
{{- end }}
|
|
||||||
{{- partial "footer.html" . }}
|
{{- partial "footer.html" . }}
|
15
layouts/partials/initial.html
Normal file
15
layouts/partials/initial.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<article>
|
||||||
|
|
||||||
|
<h1>Customize your own home page</h1>
|
||||||
|
<p>
|
||||||
|
The site is working. Don't forget to customize this page with your own. You typically have 3 choices :
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li><b>1.</b> Create an _index.md document in <b>content</b> folder and fill it with Markdown content</li>
|
||||||
|
<li><b>2.</b> Create an <b>index.html</b> file in the <b>static</b> folder and fill the file with HTML content</li>
|
||||||
|
<li><b>3.</b> Configure your server to automatically redirect home page to one your documentation page</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<footer class="footline">
|
||||||
|
</footer>
|
||||||
|
</article>
|
Loading…
Reference in a new issue