From d331fff276572d081555b7806225a2d425dd60a5 Mon Sep 17 00:00:00 2001 From: andwati Date: Sun, 8 Mar 2026 23:22:12 +0300 Subject: [PATCH] feat: Add a custom robots.txt template and enable its generation in Zola. --- templates/robots.txt | 4 ++++ zola.toml | 1 + 2 files changed, 5 insertions(+) create mode 100644 templates/robots.txt diff --git a/templates/robots.txt b/templates/robots.txt new file mode 100644 index 0000000..d632a13 --- /dev/null +++ b/templates/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: {{ config.base_url }}/sitemap.xml diff --git a/zola.toml b/zola.toml index 79e464b..ca5d5ca 100644 --- a/zola.toml +++ b/zola.toml @@ -6,6 +6,7 @@ build_search_index = false taxonomies = [ {name = "tags"} ] generate_feeds = true feed_filenames = ["rss.xml"] +generate_robots_txt = true [markdown.highlighting] theme = "catppuccin-mocha"