From 762308322bc80586157f54a45ae277e1bc6a0f0d Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Mon, 22 May 2023 20:12:38 +0200 Subject: [PATCH] Toevoegen van ondersteuning voor robots.txt --- config/_default/hugo.toml | 10 ++++++++++ themes/nluug/layouts/robots.txt | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 themes/nluug/layouts/robots.txt diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index ab9b4d5..4061c92 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -1,11 +1,21 @@ # Basisconfiguratie voor de website baseURL = "https://www3.nluug.nl/" + +# Talen languageCode = "nl" defaultContentLanguage = "nl" title = "NLUUG" theme = "nluug" + +# Git-ondersteuning, zodat lastmod automatisch wordt ingevuld met data van git. enableGitInfo = true + +# Kleine optimalisatie door geen onnodige header toe te voegen disableHugoGeneratorInject = true +# Genereer /robots.txt (template in layouts) +enableRobotsTXT = true + + # EOF diff --git a/themes/nluug/layouts/robots.txt b/themes/nluug/layouts/robots.txt new file mode 100644 index 0000000..db9ed43 --- /dev/null +++ b/themes/nluug/layouts/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Sitemap: {{ absURL site.Home.Sitemap.Filename }}