diff --git a/documentation/config/_default/config.toml b/documentation/config/_default/config.toml index 17f8bb41dd..8795386966 100644 --- a/documentation/config/_default/config.toml +++ b/documentation/config/_default/config.toml @@ -1,45 +1,46 @@ # FreeBSD documentation baseURL = "https://docs.freebsd.org/" title = "FreeBSD Documentation Portal" copyright = "BSD 2-clause 'Simplified' License" defaultContentLanguage = "en" defaultContentLanguageInSubdir = true disablePathToLower = true theme = "beastie" disableKinds = [ "taxonomy", "taxonomyTerm" ] authors = [ "carlavilla@FreeBSD.org" ] ignoreFiles = [ "chapter.adoc$", "contrib-386bsd.adoc$", "contrib-additional.adoc$", "contrib-committers.adoc$", "contrib-corealumni.adoc$", "contrib-develalumni.adoc$", "contrib-develinmemoriam.adoc$", "contrib-portmgralumni.adoc$", "\\.po$" ] enableRobotsTXT = true googleAnalytics = 'UA-22767463-1' [params] websiteURL = "https://www.FreeBSD.org" description = "FreeBSD Documentation Portal" isOnline = true editBaseUrl = "https://github.com/freebsd/freebsd-doc/edit/main/documentation/content/" + downloadBaseUrl = "https://download.freebsd.org/doc/" [security] enableInlineShortcodes = false [security.exec] allow = ["^dart-sass-embedded$", "^go$", "^npx$", "^postcss$", "^asciidoctor$"] osEnv = ["(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM|LOAD_PATH|RUBYLIB)$"] [security.funcs] getenv = ["^HUGO_"] [security.http] methods = ["(?i)GET|POST"] urls = [".*"] [markup.asciidocExt] extensions = ["man-macro", "inter-document-references-macro", "cross-document-references-macro", "sectnumoffset-treeprocessor", "packages-macro", "git-macro"] [markup.asciidocExt.attributes] env-beastie = true isOnline = true skip-front-matter = true [outputs] home = [ "HTML" ] page = [ "HTML" ] list = [ "HTML" ] single = [ "HTML" ] section = [ "HTML" ] diff --git a/documentation/themes/beastie/layouts/articles/list.html b/documentation/themes/beastie/layouts/articles/list.html index d79f13bb32..8719a9cc87 100644 --- a/documentation/themes/beastie/layouts/articles/list.html +++ b/documentation/themes/beastie/layouts/articles/list.html @@ -1,54 +1,57 @@ {{ define "main" }}

{{ .Title }}

{{ if .Params.subtitle }}

{{ .Params.subtitle }}

{{ end }}
{{ $releaseInfo := split .Params.releaseinfo " " }} {{if gt (len $releaseInfo) 3}} {{ i18n "revision" }}: {{ index $releaseInfo 2 }} {{ end }}
{{ if .Params.copyright }} {{ end}} {{ if isset .Params "trademarks" }} {{ partial "trademarks" .Params.trademarks }} {{ end }}
{{if gt (len $releaseInfo) 5}} {{ $hour := replace (index $releaseInfo 4) "Z" "" }} {{ i18n "last-modified" }} {{ index $releaseInfo 3 }} {{ $hour }} {{ i18n "by" }} {{ index $releaseInfo 5 }}. {{ end }}

{{ i18n "toc" }}

{{ .TableOfContents }}
{{ .Content }}
{{ end }} diff --git a/documentation/themes/beastie/layouts/articles/single.html b/documentation/themes/beastie/layouts/articles/single.html index d79f13bb32..8719a9cc87 100644 --- a/documentation/themes/beastie/layouts/articles/single.html +++ b/documentation/themes/beastie/layouts/articles/single.html @@ -1,54 +1,57 @@ {{ define "main" }}

{{ .Title }}

{{ if .Params.subtitle }}

{{ .Params.subtitle }}

{{ end }}
{{ $releaseInfo := split .Params.releaseinfo " " }} {{if gt (len $releaseInfo) 3}} {{ i18n "revision" }}: {{ index $releaseInfo 2 }} {{ end }}
{{ if .Params.copyright }} {{ end}} {{ if isset .Params "trademarks" }} {{ partial "trademarks" .Params.trademarks }} {{ end }}
{{if gt (len $releaseInfo) 5}} {{ $hour := replace (index $releaseInfo 4) "Z" "" }} {{ i18n "last-modified" }} {{ index $releaseInfo 3 }} {{ $hour }} {{ i18n "by" }} {{ index $releaseInfo 5 }}. {{ end }}

{{ i18n "toc" }}

{{ .TableOfContents }}
{{ .Content }}
{{ end }} diff --git a/documentation/themes/beastie/layouts/books/list.html b/documentation/themes/beastie/layouts/books/list.html index fc99508c90..95f282804d 100644 --- a/documentation/themes/beastie/layouts/books/list.html +++ b/documentation/themes/beastie/layouts/books/list.html @@ -1,136 +1,139 @@ {{ define "main" }}
{{ if eq .Params.showBookMenu true }} {{ end }}
{{ if eq .Params.showBookMenu true }}
{{ end }}

{{ .Title }}

{{ if .Params.subtitle }}

{{ .Params.subtitle }}

{{ end }}
{{ if .Params.copyright }} {{ end}} {{ if isset .Params "trademarks" }} {{ partial "trademarks" .Params.trademarks }} {{ end }}

{{ i18n "toc" }}

{{ .TableOfContents }}
{{ if $.Site.Params.isOnline }} {{ if .Params.add_split_page_link }}
[ {{ i18n "split-html" }} / {{ i18n "single-html" }} ]
{{ end }} {{ if .Params.add_single_page_link }}
[ {{ i18n "split-html" }} / {{ i18n "single-html" }} ]
{{ end }} {{ end }}
{{ .Content }}

{{ if .Params.prev }} {{ end }}
{{ if $.Site.Params.isOnline }} {{ i18n "home" }} {{ else }} {{ i18n "home" }} {{ end }}
{{ if .Params.next }} {{ end }}
{{ end }} diff --git a/documentation/themes/beastie/layouts/books/single.html b/documentation/themes/beastie/layouts/books/single.html index fc99508c90..95f282804d 100644 --- a/documentation/themes/beastie/layouts/books/single.html +++ b/documentation/themes/beastie/layouts/books/single.html @@ -1,136 +1,139 @@ {{ define "main" }}
{{ if eq .Params.showBookMenu true }} {{ end }}
{{ if eq .Params.showBookMenu true }}
{{ end }}

{{ .Title }}

{{ if .Params.subtitle }}

{{ .Params.subtitle }}

{{ end }}
{{ if .Params.copyright }} {{ end}} {{ if isset .Params "trademarks" }} {{ partial "trademarks" .Params.trademarks }} {{ end }}

{{ i18n "toc" }}

{{ .TableOfContents }}
{{ if $.Site.Params.isOnline }} {{ if .Params.add_split_page_link }}
[ {{ i18n "split-html" }} / {{ i18n "single-html" }} ]
{{ end }} {{ if .Params.add_single_page_link }}
[ {{ i18n "split-html" }} / {{ i18n "single-html" }} ]
{{ end }} {{ end }}
{{ .Content }}

{{ if .Params.prev }} {{ end }}
{{ if $.Site.Params.isOnline }} {{ i18n "home" }} {{ else }} {{ i18n "home" }} {{ end }}
{{ if .Params.next }} {{ end }}
{{ end }}