diff --git a/i18n/es.toml b/i18n/es.toml index 63c01c7..45dd777 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -2,7 +2,7 @@ other = "NO ENCONTRADO" [not_found_desc] - other = "Haz tomado una ruta que no existe..." + other = "Has tomado una ruta que no existe..." [home] other = "Inicio" diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 0000000..0bff877 --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,44 @@ +{{ define "title"}} +{{ .Title }} | {{ .Site.Params.author.name }} +{{ end }} + +{{ define "main" }} + +
+
+

{{ .Title }}

+
+ + {{ with .Content }} +
+ {{- . -}} +
+ {{ end }} + +
+ {{ $pages := where site.RegularPages "Type" "blog" }} + {{ $paginator := .Paginate $pages.ByDate.Reverse 10 }} + + {{ range $paginator.Pages.ByDate.Reverse }} + + + +
+
+ {{ .Title }} + {{ $formattedDate := .Date.Format "2006-01-02" }} + +
+
+

{{ .Summary }}

+
+
+
+ + + {{end}} + {{ template "partials/pagination.html" . }} +
+
+ +{{ end }} diff --git a/layouts/categories/list.html b/layouts/categories/list.html new file mode 100644 index 0000000..11d6990 --- /dev/null +++ b/layouts/categories/list.html @@ -0,0 +1,44 @@ +{{ define "title"}} +{{ .Title }} | {{ .Site.Params.author.name }} +{{ end }} + +{{ define "main" }} + +
+
+

{{ .Title }}

+
+ + {{ with .Content }} +
+ {{- . -}} +
+ {{ end }} + +
+ {{ $pages := where site.RegularPages "Type" "categories" }} + {{ $paginator := .Paginate (where .Data.Pages "Type" "blog") 10 }} + + {{ range $paginator.Pages.ByDate.Reverse }} + + + +
+
+ {{ .Title }} + {{ $formattedDate := .Date.Format "2006-01-02" }} + +
+
+

{{ .Summary }}

+
+
+
+ + + {{end}} + {{ template "partials/pagination.html" . }} +
+
+ +{{ end }} diff --git a/layouts/partials/custom-head.html b/layouts/partials/custom-head.html index 4a789ff..4445f4c 100644 --- a/layouts/partials/custom-head.html +++ b/layouts/partials/custom-head.html @@ -3,6 +3,35 @@