Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions docs/layouts/_partials/head/custom-head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!-- Custom head -->
{{ 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 }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ end -}}
<meta name="docsearch:audience" content="{{ .Params.audience | default " public" }}">
3 changes: 3 additions & 0 deletions docs/layouts/_partials/seo/robots.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- with .Params.seo.robots }}
<meta name="robots" content="{{ . }}">
{{- end }}
3 changes: 3 additions & 0 deletions docs/layouts/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-agent: *
Disallow:
Sitemap: {{ "/sitemap.xml" | absURL }}