diff --git a/hugo.toml b/hugo.toml index 158b072..6a28fb9 100644 --- a/hugo.toml +++ b/hugo.toml @@ -63,3 +63,5 @@ aria = "Mi correo electrónico" name = "rss" weight = 4 url = "/blog/index.xml" +[outputs] + home = ["HTML", "RSS", "JSON"] diff --git a/layouts/_default/index.json b/layouts/_default/index.json new file mode 100644 index 0000000..0517d1f --- /dev/null +++ b/layouts/_default/index.json @@ -0,0 +1 @@ +{{- $.Scratch.Add "index" slice -}} {{- range .Site.RegularPages -}} {{- $.Scratch.Add "index" (dict "date" (.PublishDate.Format "01-12-2006") "title" .Title "tags" .Params.tags "section" (index .Params.categories 0) "desc" .Plain "summary" (printf "%s..." (substr (.Summary | plainify) 0 90)) "permalink" .Permalink) -}} {{- end -}} {{- $.Scratch.Get "index" | jsonify -}} diff --git a/layouts/partials/custom-head.html b/layouts/partials/custom-head.html index dbd84cc..c007266 100644 --- a/layouts/partials/custom-head.html +++ b/layouts/partials/custom-head.html @@ -3,8 +3,68 @@
+