mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-23 23:20:19 +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"
|
||||
newContentEditor = "vim"
|
||||
theme = "hugo-theme-bootstrap4-blog"
|
||||
enableRobotsTXT = true
|
||||
|
||||
[permalinks]
|
||||
# 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