2020-07-31 13:48:01 +00:00
|
|
|
{{ define "title" }}
|
2020-10-12 16:47:23 +00:00
|
|
|
<title>{{ with p .Data "title" }}{{ . }} - {{end}}{{ .Blog.Title }}</title>
|
2020-07-31 13:48:01 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<main class=h-entry>
|
|
|
|
<article>
|
2020-10-12 16:47:23 +00:00
|
|
|
{{ with title .Data }}<h1 class=p-name>{{ . }}</h1>{{ end }}
|
2020-10-12 17:12:43 +00:00
|
|
|
{{ if .Data.Published }}
|
2020-10-12 17:46:14 +00:00
|
|
|
<p>{{ string .Blog.Lang "publishedon" }} {{ longDate .Data.Published .Blog.Lang }}</p>{{ end }}
|
2020-10-12 17:12:43 +00:00
|
|
|
{{ if .Data.Updated }}
|
2020-10-12 17:46:14 +00:00
|
|
|
<p>{{ string .Blog.Lang "updatedon" }} {{ longDate .Data.Updated .Blog.Lang }}</p>{{ end }}
|
2020-10-18 09:54:29 +00:00
|
|
|
{{ if .Data.Content }}
|
|
|
|
<div class=e-content>{{ content .Data }}</div>
|
2020-07-31 19:02:47 +00:00
|
|
|
{{ end }}
|
2020-07-31 13:48:01 +00:00
|
|
|
</article>
|
2020-10-12 16:47:23 +00:00
|
|
|
{{ $post := .Data }}
|
2020-10-12 17:26:32 +00:00
|
|
|
{{ $blog := .Blog }}
|
|
|
|
{{ range $i, $tax := $blog.Taxonomies }}
|
2020-09-01 17:08:57 +00:00
|
|
|
{{ $tvs := ps $post $tax.Name }}
|
|
|
|
{{ if gt (len $tvs) 0 }}
|
|
|
|
<p>In <b>{{ $tax.Title }}</b>:
|
|
|
|
{{ range $j, $tv := $tvs }}
|
2020-10-12 17:26:32 +00:00
|
|
|
<a href="{{ blogRelative $blog ( printf "/%s/%s" $tax.Name (urlize $tv) ) }}">{{ $tv }}</a>
|
2020-09-01 17:08:57 +00:00
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2020-10-16 18:34:34 +00:00
|
|
|
{{ range $i, $t := (translations .Data) }}
|
|
|
|
<p><a href="{{ $t.Path }}">{{ (blog $t.Blog).Title }}</a></p>
|
|
|
|
{{ end }}
|
2020-07-31 13:48:01 +00:00
|
|
|
</main>
|
2020-07-31 19:02:47 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2020-08-05 17:14:10 +00:00
|
|
|
{{ define "post" }}
|
2020-07-31 19:02:47 +00:00
|
|
|
{{ template "base" . }}
|
2020-07-31 13:48:01 +00:00
|
|
|
{{ end }}
|