mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-21 14:15:02 +01:00
Add robots.txt template to disallow robots
See: https://github.com/spf13/hugo/blob/master/docs/content/extras/robots-txt.md
This commit is contained in:
parent
d3fa258e8b
commit
2696466e0e
@ -5,6 +5,7 @@ languageCode = "en-us"
|
|||||||
title = "CGSpace Notes"
|
title = "CGSpace Notes"
|
||||||
newContentEditor = "vim"
|
newContentEditor = "vim"
|
||||||
theme = "hugo-theme-bootstrap4-blog"
|
theme = "hugo-theme-bootstrap4-blog"
|
||||||
|
enableRobotsTXT = true
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
# use 2016-09 as slug, since my posts are always monthly
|
# use 2016-09 as slug, since my posts are always monthly
|
||||||
|
4
layouts/robots.txt
Normal file
4
layouts/robots.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
User-agent: *
|
||||||
|
|
||||||
|
{{range .Data.Pages}}
|
||||||
|
Disallow: {{.RelPermalink}}{{end}}
|
Loading…
Reference in New Issue
Block a user