Indent layout files, link to about page
This commit is contained in:
parent
91af8d0ac9
commit
f5aa1d63a7
9 changed files with 16 additions and 11 deletions
3
content/_index.md
Normal file
3
content/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
See my [gallery](/art)!
|
||||
|
||||
See my [about page](/about)!
|
|
@ -1 +1 @@
|
|||
|
||||
Hello this is my about page :-)
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
Page not found!
|
||||
{{ end }}
|
|
@ -3,9 +3,7 @@
|
|||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ end }}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ end }}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
|
@ -0,0 +1 @@
|
|||
Copyright (c) 2022
|
|
@ -0,0 +1 @@
|
|||
<h1>{{ .Site.Title }}</h1>
|
Loading…
Add table
Reference in a new issue