diff --git a/docs/config/_default/hugo.toml b/docs/config/_default/hugo.toml index 13367504ca6..0b623542125 100644 --- a/docs/config/_default/hugo.toml +++ b/docs/config/_default/hugo.toml @@ -46,9 +46,12 @@ copyRight = "Copyright (c) 2020-2024 Thulite" priority = 0.5 [caches] + [caches.getresource] + dir = ":cacheDir/:project" + maxAge = "1h" [caches.getjson] dir = ":cacheDir/:project" - maxAge = -1 # "30m" + maxAge = "1h" [taxonomies] contributor = "contributors" diff --git a/docs/layouts/_partials/head/custom-head.html b/docs/layouts/_partials/head/custom-head.html index cadc425ac3a..5f14c4648e0 100644 --- a/docs/layouts/_partials/head/custom-head.html +++ b/docs/layouts/_partials/head/custom-head.html @@ -1,6 +1,7 @@ -{{ if site.Params.add_ons.docSearch -}} +{{ if site.Params.add_ons.docSearch -}} {{ $options := (dict "targetPath" "/css/main.min.css" "outputStyle" "compressed") }} {{ $style := resources.Get "scss/app.scss" | css.Sass $options }} - + {{ end -}} + \ No newline at end of file diff --git a/docs/layouts/_partials/seo/robots.html b/docs/layouts/_partials/seo/robots.html new file mode 100644 index 00000000000..128d19bf8f2 --- /dev/null +++ b/docs/layouts/_partials/seo/robots.html @@ -0,0 +1,3 @@ +{{- with .Params.seo.robots }} + +{{- end }} \ No newline at end of file diff --git a/docs/layouts/robots.txt b/docs/layouts/robots.txt new file mode 100644 index 00000000000..3cba9e17660 --- /dev/null +++ b/docs/layouts/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: +Sitemap: {{ "/sitemap.xml" | absURL }} \ No newline at end of file