Site update
This commit is contained in:
parent
33b85e2436
commit
6f9ac9c5b8
24 changed files with 748 additions and 18 deletions
|
@ -7,8 +7,7 @@
|
|||
<section class="list">
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Date.Format .Site.Params.dateFormat }} || {{ .Title }} <span class="comment"></span>
|
||||
</a><br>
|
||||
{{ .Date.Format .Site.Params.dateFormat }} || {{ .Title }}</a><br />
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
|
||||
{{ if isset .Params "date" }}
|
||||
|
||||
<div id="date">
|
||||
<p>{{ .Date.Format .Site.Params.dateFormat }}</p>
|
||||
<div id="blog-meta">
|
||||
<p id="date">{{ .Date.Format .Site.Params.dateFormat }}</p>
|
||||
{{ partial "tags.html" . }}
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
{{ end }} {{ .Content }} {{ end }}
|
||||
|
|
9
layouts/partials/tags.html
Normal file
9
layouts/partials/tags.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ $taxonomy := "tags" }} {{ with .Param $taxonomy }}
|
||||
<p>
|
||||
{{ range $index, $tag := . }} {{ with $.Site.GetPage (printf "/%s/%s"
|
||||
$taxonomy $tag) -}}
|
||||
<span>|</span>
|
||||
<a href="{{ .Permalink }}">{{ $tag | urlize }}</a>
|
||||
{{- end -}} {{- end -}}
|
||||
</p>
|
||||
{{ end }}
|
13
layouts/taxonomy/list.html
Normal file
13
layouts/taxonomy/list.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ .Content}}
|
||||
|
||||
<section class="list">
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}</a><br />
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
11
layouts/taxonomy/tag.html
Normal file
11
layouts/taxonomy/tag.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<h1>Tag: {{ .Title }}</h1>
|
||||
|
||||
<section class="list">
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Date.Format .Site.Params.dateFormat }} || {{ .Title }}</a><br />
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue