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 }}