From 221fb3039ee4fab66fde87fcadfba24f43fd1b10 Mon Sep 17 00:00:00 2001 From: Warwick Date: Thu, 27 Jun 2024 14:35:41 +0100 Subject: [PATCH] added very permissive robots --- config.toml | 2 +- themes/warwick_portfolio/layouts/robots.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 themes/warwick_portfolio/layouts/robots.txt diff --git a/config.toml b/config.toml index 27babca..1c3cfd5 100644 --- a/config.toml +++ b/config.toml @@ -3,6 +3,7 @@ languageCode = "en-us" title = "Warwick New" theme = "warwick_portfolio" pluralizeListTitles = false +enableRobotsTXT = true [Author] name = "Warwick New" @@ -13,4 +14,3 @@ home = ['html'] section = ['html', 'rss'] taxonomy = ['html'] term = ['html'] - diff --git a/themes/warwick_portfolio/layouts/robots.txt b/themes/warwick_portfolio/layouts/robots.txt new file mode 100644 index 0000000..01cf30f --- /dev/null +++ b/themes/warwick_portfolio/layouts/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Allow: / {{ range site.RegularPages }} +Allow: {{ .RelPermalink }} {{ end }}