use baseof, close #10
This commit is contained in:
parent
ec39d27ce2
commit
11d59ffa1b
@ -15,7 +15,22 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{- if .Site.Menus.main }}
|
{{ if .Site.Menus.main }}{{ partial "nav.html" . }}{{ end -}}
|
||||||
{{ partial "nav.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
<main>
|
<main>
|
||||||
|
<header><h1 id="tag_{{ .Title }}">{{ block "title" . }}{{ end }}</h1></header>
|
||||||
|
<article>
|
||||||
|
{{ block "main" . }}
|
||||||
|
{{ .Content }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Param "nextprev" }}{{ partial "nextprev.html" . -}}{{ end -}}
|
||||||
|
{{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}}
|
||||||
|
</article>
|
||||||
|
</main>
|
||||||
|
{{ block "footer" . }}
|
||||||
|
<footer>
|
||||||
|
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a>
|
||||||
|
{{- if .Param "showrss" }}<br><br><a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed" title="Subscribe via RSS for updates."></a>{{ end }}
|
||||||
|
</footer>
|
||||||
|
{{ end }}
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,11 +1,17 @@
|
|||||||
{{ partial "header.html" . -}}
|
{{ define "title" -}}
|
||||||
<header><h1 id="tag_{{ .Title }}">{{ .Title | title }}</h1></header>
|
{{ .Title | title }}
|
||||||
<article>
|
{{- end }}
|
||||||
{{ .Content -}}
|
{{ define "main" -}}
|
||||||
|
{{ .Content }}
|
||||||
<ul>
|
<ul>
|
||||||
{{- range.Pages }}
|
{{- range.Pages }}
|
||||||
<li><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> – <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
<li>
|
||||||
{{ end -}}
|
{{- if .Param "datesinlist" }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> – {{ end -}}
|
||||||
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
|
{{- if .Param "authorsinlist" }}
|
||||||
|
{{- range .Param "authors" }} by {{ . }}{{ end -}}
|
||||||
|
{{ end -}}
|
||||||
|
</li>
|
||||||
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</article>
|
{{- end }}
|
||||||
{{- partial "footer.html" . }}
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{{ partial "header.html" . -}}
|
{{ define "title" -}}
|
||||||
<header><h1>{{ .Title }}</h1></header>
|
{{ .Title }}
|
||||||
<article>
|
{{- end }}
|
||||||
{{ .Content -}}
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
{{ partial "nextprev.html" . -}}
|
|
||||||
{{ partial "taglist.html" . -}}
|
|
||||||
</article>
|
|
||||||
</main>
|
|
||||||
<footer>
|
|
||||||
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br>
|
|
||||||
<a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed" title="Subscribe via RSS for updates."></a>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
x
Reference in New Issue
Block a user