Add files

This commit is contained in:
2021-03-25 02:42:09 -05:00
parent d37c835b01
commit 9e7c051884
19 changed files with 170 additions and 0 deletions

View File

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -0,0 +1,6 @@
{{ partial "header.html" . -}}
<h1>Posts</h1>
{{- range first 10 .Data.Pages }}
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
{{- end }}
{{ partial "footer.html" . -}}

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<body>
<h1>Posts</h1>
{{- range first 10 .Data.Pages }}
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
{{- end }}
<h4><a href="{{ .Site.BaseURL }}">Home</a></h4>
</body>
</html>

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ .Title }}</title>
</head>
<body>
<h1>{{ .Title }}</h1>
<h6>{{ .Date.Format "Mon, Jan 2, 2006" }}</h6>
{{ .Content }}
<h4><a href="{{ .Site.BaseURL }}">Home</a></h4>
</body>
</html>

View File

@ -0,0 +1,4 @@
{{ partial "header.html" . }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ partial "footer.html" . -}}

View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<body>
{{ partial "header.html" . }}
<h2>Posts</h2>
{{- range first 10 .Pages -}}
{{- if eq .Type "post" }}
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
{{- end -}}
{{- end -}}
<h2>Pages</h2>
{{- range first 10 .Pages -}}
{{- if eq .Type "page" }}
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
{{- end -}}
{{- end -}}
</body>
</html>

View File

@ -0,0 +1,3 @@
<div class="header">
<h1>{{ .Site.Title }}</h1>
</div>

View File

@ -0,0 +1,5 @@
{{ partial "header.html" . }}
<h1>{{ .Title }}</h1>
<h6>{{ .Date.Format "Mon, Jan 2, 2006" }}</h6>
{{ .Content }}
{{ partial "footer.html" . -}}