Move to 'journal'
This commit is contained in:
@@ -1,12 +1 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
<hr>
|
||||
|
||||
{{ range (where .Site.RegularPages "Type" "in" "posts") }}
|
||||
<h3>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ .Date | time.Format "(2006-01-02)" }}
|
||||
</h3>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,8 +1 @@
|
||||
{{ define "main" }}
|
||||
<hr>
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
<h3>{{ .Date | time.Format "2006-01-02" }}</h3>
|
||||
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
@@ -4,14 +4,22 @@
|
||||
<section>
|
||||
<hr>
|
||||
|
||||
{{ range (where .Site.RegularPages "Type" "in" "posts") }}
|
||||
<h3>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ .Date | time.Format "(2006-01-02)" }}
|
||||
</h3>
|
||||
<h3>
|
||||
<a href="/journal">Journal</a>
|
||||
</h3>
|
||||
|
||||
{{ .Summary }}
|
||||
{{ end }}
|
||||
<ul>
|
||||
{{ range (where .Site.RegularPages "Type" "in" "journal") }}
|
||||
<li>
|
||||
<p>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ .Date | time.Format "(2006-01-02)" }}
|
||||
</p>
|
||||
|
||||
{{ .Summary }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
{{- partial "pinboard.html" . -}}
|
||||
|
||||
12
themes/v2/layouts/journal/list.html
Normal file
12
themes/v2/layouts/journal/list.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
<hr>
|
||||
|
||||
{{ range (where .Site.RegularPages "Type" "in" "journal") }}
|
||||
<h3>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ .Date | time.Format "(2006-01-02)" }}
|
||||
</h3>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
19
themes/v2/layouts/journal/single.html
Normal file
19
themes/v2/layouts/journal/single.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "main" }}
|
||||
<hr>
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
<h3>
|
||||
Posted {{ .Date | time.Format "January 1, 2006" }}
|
||||
|
||||
{{ if .Params.tags }}
|
||||
under
|
||||
|
||||
{{ range .Params.tags }}
|
||||
<a href="/tags/{{ . | urlize }}">#{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</h3>
|
||||
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user