enable robots.txt by default

use CRLF in robots.txt
This commit is contained in:
leafee98 2022-05-10 21:34:51 +08:00
parent 3b58a1a279
commit dff69c5bd3
2 changed files with 9 additions and 8 deletions

View file

@ -1,6 +1,7 @@
title = "Flat theme"
theme = "hugo-theme-flat"
themesDir = "../.."
enableRobotsTXT = true
hasCJKLanguage = true
paginate = 6
baseURL = ""

View file

@ -1,8 +1,8 @@
User-agent: *
Allow: /posts/
Allow: /tags/
Allow: /categories/
Allow: /about/
Disallow: *
Sitemap: {{ .Site.BaseURL }}sitemap.xml
User-agent: *
Allow: /posts/
Allow: /tags/
Allow: /categories/
Allow: /about/
Disallow: *
Sitemap: {{ .Site.BaseURL }}sitemap.xml