first commit
This commit is contained in:
commit
f9eb307cca
38 changed files with 1394 additions and 0 deletions
13
layouts/_default/baseof.html
Normal file
13
layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
<div id="content">
|
||||
{{- partial "header.html" . -}}
|
||||
<main>
|
||||
{{- block "main" . }}{{- end }}
|
||||
</main>
|
||||
{{- partial "footer.html" . -}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
18
layouts/_default/list.html
Normal file
18
layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{{ define "main" }}
|
||||
<h2>
|
||||
<span>
|
||||
{{ $title := .Title }}
|
||||
{{ $section := .Section | humanize }}
|
||||
{{ if and (ne $section $title) (ne $section "Tags") }}
|
||||
{{ $section }}:
|
||||
{{ end }}
|
||||
{{ if and (eq $section "Tags") (ne $section $title) }}#{{ end }}{{ $title }}
|
||||
</span>
|
||||
</h2>
|
||||
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li><span class="date">{{ .Date.Format "2006-01-02" }}</span> <a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
16
layouts/_default/single.html
Normal file
16
layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{{ define "main" }}
|
||||
<article>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
|
||||
<div>{{ .Content }}</div>
|
||||
{{ if .Params.tags }}
|
||||
<hr />
|
||||
<p>
|
||||
<h4>Tags:</h4>
|
||||
{{ range .Params.tags }}
|
||||
<a href="/tags/{{ . }}">#{{ . }}</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue