From fb05fbc1280cc21fb9a90a5a859ec70b9cdce8c7 Mon Sep 17 00:00:00 2001 From: randogoth Date: Mon, 22 May 2023 12:14:17 +0300 Subject: [PATCH] robots --- web/extra/robots.txt | 2 ++ web/pelicanconf.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 web/extra/robots.txt diff --git a/web/extra/robots.txt b/web/extra/robots.txt new file mode 100644 index 0000000..77470cb --- /dev/null +++ b/web/extra/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / \ No newline at end of file diff --git a/web/pelicanconf.py b/web/pelicanconf.py index 6ffd869..24d4954 100644 --- a/web/pelicanconf.py +++ b/web/pelicanconf.py @@ -59,4 +59,7 @@ CATEGORY_SAVE_AS = 'zone/{slug}/index.html' DELETE_OUTPUT_DIRECTORY = True -PLUGINS = ['geohash', 'geodata'] \ No newline at end of file +PLUGINS = ['geohash', 'geodata'] + +STATIC_PATHS = ['../extra/robots.txt'] +EXTRA_PATH_METADATA = {'../extra/robots.txt': {'path': 'robots.txt'},} \ No newline at end of file