some changes to themes
This commit is contained in:
parent
26c526e433
commit
8237b6aa19
51 changed files with 852 additions and 12 deletions
7
themes/fzmin2/layouts/_default/list.gopher.txt
Normal file
7
themes/fzmin2/layouts/_default/list.gopher.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
!{{ .Title }}
|
||||
|
||||
{{ .RawContent }}
|
||||
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
0{{ .Title }} {{ with .OutputFormats.Get "gopher" -}}{{ .RelPermalink }} {{ $.Site.Params.hostname}} 70 {{ end }}
|
||||
{{ end }}
|
21
themes/fzmin2/layouts/_default/list.html
Normal file
21
themes/fzmin2/layouts/_default/list.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
{{if not .IsHome }}
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ $pages := .Pages }}
|
||||
{{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
|
||||
{{ range $index, $page := (where $pages "Section" "!=" "") }}
|
||||
<div class="post">
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></h3>
|
||||
<span class="date">Written on {{ .Date.Format "2006/01/02" }}</span>
|
||||
<p>{{ .Summary }}</p>
|
||||
</div>
|
||||
{{ if not (eq $index (sub (len $pages) 1)) }}
|
||||
<hr>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
8
themes/fzmin2/layouts/_default/single.gopher.txt
Normal file
8
themes/fzmin2/layouts/_default/single.gopher.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
# {{ .Title }}
|
||||
|
||||
{{ .Date.Format (.Site.Params.dateform | default "N/A") }}
|
||||
{{ if .Params.tags }}
|
||||
Posted in: {{ range .Params.tags }}{{ . }} {{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ .RawContent }}
|
12
themes/fzmin2/layouts/_default/single.html
Normal file
12
themes/fzmin2/layouts/_default/single.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{ partial "header.html" . }}
|
||||
<div class="article-meta">
|
||||
<h1><span class="title">{{ .Title | markdownify }}</span></h1>
|
||||
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
|
||||
{{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
|
||||
</div>
|
||||
|
||||
<main>
|
||||
{{ .Content }}
|
||||
</main>
|
||||
|
||||
{{ partial "footer.html" . }}
|
13
themes/fzmin2/layouts/_default/terms.html
Normal file
13
themes/fzmin2/layouts/_default/terms.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<ul class="terms">
|
||||
{{ range .Data.Terms }}
|
||||
<li>
|
||||
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }})
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ partial "footer.html" . }}
|
Loading…
Add table
Add a link
Reference in a new issue