Start 'how to spend time' note
This commit is contained in:
16
themes/v2/layouts/notes/list.html
Normal file
16
themes/v2/layouts/notes/list.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
<hr>
|
||||
|
||||
<h3>Notes</h3>
|
||||
|
||||
<ul>
|
||||
{{ range (where .Site.RegularPages "Type" "in" "notes") }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ .Date | time.Format "(2006-01-02)" }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
38
themes/v2/layouts/notes/single.html
Normal file
38
themes/v2/layouts/notes/single.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{{ define "main" }}
|
||||
<hr>
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
<h3>
|
||||
Posted {{ .Date | time.Format "2006-01-02" }}
|
||||
|
||||
{{ if .Params.tags }}
|
||||
under
|
||||
|
||||
{{ range .Params.tags }}
|
||||
<a href="/tags/{{ . | urlize }}">#{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</h3>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ with .Params.References }}
|
||||
<hr>
|
||||
|
||||
<div class="references">
|
||||
<h3>References</h3>
|
||||
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>
|
||||
“<a href="{{ .url }}">{{ .title }}</a>”;
|
||||
<a href="/archive/{{ .file }}">
|
||||
backed up {{ .date | time.Format "2006-01-02 15:04:05 MST" }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user