Initial commit
This commit is contained in:
commit
70f2d625fa
47 changed files with 1115 additions and 0 deletions
36
layouts/_default/baseof.html
Normal file
36
layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
{{- partial "head.html" . -}}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<header class="page__header">
|
||||
{{- partial "header.html" . -}}
|
||||
</header>
|
||||
|
||||
<section class="page__body">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</section>
|
||||
|
||||
<section class="page__aside">
|
||||
<div class="aside__about">
|
||||
{{- partial "about.html" . -}}
|
||||
</div>
|
||||
<hr>
|
||||
<div class="aside__content">
|
||||
{{- block "aside" . }}{{- end }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer class="page__footer">
|
||||
{{- partial "footer.html" . -}}
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
1
layouts/_default/li.html
Normal file
1
layouts/_default/li.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<li><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></li>
|
||||
12
layouts/_default/list.html
Normal file
12
layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{{ define "main" }}
|
||||
<h1 id="{{ .Title | urlize }}">{{ .Title | markdownify }}</h2>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
{{ .Render "li" }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ end }}
|
||||
14
layouts/_default/single.html
Normal file
14
layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{{ define "main" }}
|
||||
<header class="content__header">
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
</header>
|
||||
<div class="content__body">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<footer class="content__footer"></footer>
|
||||
{{ end }}
|
||||
|
||||
{{define "aside" }}
|
||||
<p>{{ .Params.description }}</p>
|
||||
<p>By {{ .Params.author }}, {{ .Date.Format "2 January 2006" }}</p>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue