Tweak configuration and template
This commit is contained in:
parent
14ae098c18
commit
e7c4816d31
3 changed files with 11 additions and 2 deletions
|
@ -2,4 +2,3 @@
|
|||
<meta name="viewport" content="width=device-width">
|
||||
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
||||
{{ partialCached "head/css.html" . }}
|
||||
{{ partialCached "head/js.html" . }}
|
||||
|
|
|
@ -13,7 +13,11 @@ For a given taxonomy, renders a list of terms assigned to the page.
|
|||
{{- with $page.GetTerms $taxonomy }}
|
||||
{{- $label := (index . 0).Parent.LinkTitle }}
|
||||
<div>
|
||||
<div>{{ $label }}:</div>
|
||||
{{if eq $label "Tags"}}
|
||||
<div>Etiquetas</div>
|
||||
{{else}}
|
||||
<div>{{ $label }}:</div>
|
||||
{{end}}
|
||||
<ul>
|
||||
{{- range . }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue