Tweak configuration and template

This commit is contained in:
Miguel de la Cruz 2024-01-06 01:12:41 +01:00
parent 14ae098c18
commit e7c4816d31
3 changed files with 11 additions and 2 deletions

View file

@ -2,8 +2,14 @@ baseURL = 'https://ctrlz.es/'
languageCode = 'es-es' languageCode = 'es-es'
title = 'Control + Z' title = 'Control + Z'
theme = 'clean' theme = 'clean'
disableHugoGeneratorInject = true
enableEmoji = true
[params] [params]
[params.contact] [params.contact]
name = 'Miguel de la Cruz'
email = 'mgdelacroix@gmail.com' email = 'mgdelacroix@gmail.com'
mastodon = 'https://social.ctrlz.es/@mgdelacroix' mastodon = 'https://social.ctrlz.es/@mgdelacroix'
[params.author]
name = 'Miguel de la Cruz'
email = 'mgdelacroix@gmail.com'

View file

@ -2,4 +2,3 @@
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
{{ partialCached "head/css.html" . }} {{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}

View file

@ -13,7 +13,11 @@ For a given taxonomy, renders a list of terms assigned to the page.
{{- with $page.GetTerms $taxonomy }} {{- with $page.GetTerms $taxonomy }}
{{- $label := (index . 0).Parent.LinkTitle }} {{- $label := (index . 0).Parent.LinkTitle }}
<div> <div>
<div>{{ $label }}:</div> {{if eq $label "Tags"}}
<div>Etiquetas</div>
{{else}}
<div>{{ $label }}:</div>
{{end}}
<ul> <ul>
{{- range . }} {{- range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li> <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>