diff --git a/config.toml b/config.toml index 52d283b487..082deed127 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,7 @@ baseURL = "/" +#baseURL = "https://docs.armory.io/" + +#canonifyURLs = true enableRobotsTXT = true enableInlineShortcodes = true diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml new file mode 100644 index 0000000000..b74bc35794 --- /dev/null +++ b/layouts/_default/list.rss.xml @@ -0,0 +1,43 @@ + + + {{ .Site.Title }} – {{ .Title }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ with .OutputFormats.Get "RSS" }} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end }} + {{ if not $.Section }} + {{ $sections := .Site.Params.rss_sections | default (slice "blog") }} + {{ .Scratch.Set "rss_pages" (first 50 (where $.Site.RegularPages "Type" "in" $sections )) }} + {{ else }} + {{ if $.Parent.IsHome }} + {{ .Scratch.Set "rss_pages" (first 50 (where $.Site.RegularPages "Type" $.Section )) }} + {{ else }} + {{ .Scratch.Set "rss_pages" (first 50 $.Pages) }} + {{ end }} + {{ end }} + {{ range (.Scratch.Get "rss_pages") }} + + {{ .Section | title }}: {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + + {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }} + {{ with $img }} + {{ $img := .Resize "640x" }} + {{ printf "]]>" $img.Permalink $img.Width $img.Height | safeHTML }} + {{ end }} + {{ .Content | html }} + + + {{ end }} + + diff --git a/layouts/partials/list-recent-release-notes.html b/layouts/partials/list-recent-release-notes.html index 0b8ee9f269..e0cb9b7452 100644 --- a/layouts/partials/list-recent-release-notes.html +++ b/layouts/partials/list-recent-release-notes.html @@ -1,7 +1,7 @@
-

+

{{ $pages := (where .Site.Pages "Section" .Section).ByParam "version" }} {{ $pagesReverse := $pages.Reverse }} diff --git a/netlify.toml b/netlify.toml index 2c5c946ecc..b6f676bb58 100755 --- a/netlify.toml +++ b/netlify.toml @@ -8,7 +8,7 @@ # "production" environment specific build settings [build.environment] - HUGO_VERSION = "0.71.1" + HUGO_VERSION = "0.108.0" HUGO_THEME = "docsy" HUGO_ENV = "production"