diff --git a/hugo.toml b/hugo.toml index f463daa..bfc5f39 100644 --- a/hugo.toml +++ b/hugo.toml @@ -59,6 +59,7 @@ defaultContentLanguage = 'es' name = "código-fuente" weight = 3 url = "https://gitlab.com/putridpete/hugo-website" + icon = "fa-brands fa-gitlab" [[menu.header]] name = "rss" weight = 4 diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..15d41dc --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,64 @@ +{{ define "title"}} +{{ .Title }} | {{ .Site.Params.author.name }} +{{ end }} + +{{ define "main" }} +
+

{{ .Title }}

+ {{ if .Description}} +

{{.Description}}

+ {{ end }} + {{ if .Params.showMetadata | default true }} +
+
+ {{ with .GetTerms "tags" }} + {{ partial "taxonomy/tags.html" . }} + {{ end }} + {{ with .GetTerms "authors" }} + {{ partial "taxonomy/authors.html" . }} + {{ end }} + {{ with .GetTerms "categories" }} + {{ partial "taxonomy/categories.html" . }} + {{ end }} + {{ if .Site.Params.published | default true }} +
{{ i18n "published" }}
+ {{ $formattedDate := .Date.Format "2006-01-02" }} +
+ {{ end }} + {{ if .Site.Params.readingTime | default true }} +
{{ i18n "reading_time" }}
+
{{ i18n "reading_time_desc" .ReadingTime }}
+ {{ end }} +
+
+ {{ end }} +
+ {{ .Content }} +
+{{ $related := .Site.RegularPages.Related . | first 5 }} +{{ with $related }} +

Leer también:

+
+
+
+ +{{ end }} diff --git a/layouts/partials/related.html b/layouts/partials/related.html new file mode 100644 index 0000000..845e7f2 --- /dev/null +++ b/layouts/partials/related.html @@ -0,0 +1,8 @@ +{{ with site.RegularPages.Related . | first 5 }} +

Related content:

+ +{{ end }}