1
0
Fork 0

use hugo template for robots.txt

This commit is contained in:
dark_hash 2025-01-26 13:58:15 +01:00
parent 7730be480e
commit ec4ef9f533
2 changed files with 7 additions and 1 deletions

View file

@ -3,7 +3,7 @@ languageCode = 'de-AT'
title = 'IT-Syndikat'
theme = "mainroad"
pluralizelisttitles = false # removes the automatically appended "s" on sidebar entries
enableRobotsTXT = false
enableRobotsTXT = true
defaultContentLanguage = 'de'
defaultContentLanguageInSubdir = false

View file

@ -44,3 +44,9 @@ User-agent: VelenPublicWebCrawler
User-agent: Webzio-Extended
User-agent: YouBot
Disallow: /
{{ range where .Data.Pages "Params.robotsdisallow" true }}
Disallow: {{ .RelPermalink }}
{{ end }}
Sitemap: {{ "sitemap.xml" | absLangURL }}