🐼 first commit

This commit is contained in:
koirand 2018-09-23 20:11:35 +09:00
commit 8c7ec3df80
27 changed files with 2823 additions and 0 deletions

View file

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

View file

@ -0,0 +1,14 @@
{{ define "main"}}
<div>
{{ range $index, $value := .Pages.GroupByDate "January, 2006" }}
{{ if (ne $index 0) }}
<hr class="separator">
{{ end }}
<p class="date">{{ .Key }}</p>
{{ range .Pages }}
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
{{ end }}
{{ end }}
</div>
{{ end }}

View file

@ -0,0 +1,10 @@
{{ define "main"}}
<div>
<h1>{{ .Title }}</h1>
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
<div class="markdown-body">
{{ .Content }}
</div>
</div>
{{ end }}