From d88f38d28cf88db938a92f25a1896b3500c7fad1 Mon Sep 17 00:00:00 2001 From: Nikita Timofeev Date: Thu, 21 Mar 2024 14:42:36 +0300 Subject: [PATCH] Add sitemap to the `robots.txt` --- config.yaml | 30 +++++++++++++----------- static/robots.txt | 2 -- themes/bootique-theme/layouts/robots.txt | 2 ++ 3 files changed, 18 insertions(+), 16 deletions(-) delete mode 100644 static/robots.txt create mode 100644 themes/bootique-theme/layouts/robots.txt diff --git a/config.yaml b/config.yaml index a79a029f..88c03ce2 100644 --- a/config.yaml +++ b/config.yaml @@ -8,6 +8,8 @@ disableKinds: - taxonomy - term +enableRobotsTXT: true + params: googleAnalytics: "UA-74603008-1" description: >- @@ -21,17 +23,17 @@ permalinks: menu: main: - - Name: "Get started" - Pre: version # this means that item's URL depends on Bootique version - URL: "/getting-started/" - Weight: 1 - - Name: "Documentation" - Pre: version - URL: "/docs/" - Weight: 2 - - Name: "CLA" - URL: "/cla/" - Weight: 3 - - Name: "Forum" - URL: "https://groups.google.com/forum/#!forum/bootique-user" - Weight: 4 + - name: "Get started" + pre: version # this means that item's URL depends on Bootique version + url: "/getting-started/" + weight: 1 + - name: "Documentation" + pre: version + url: "/docs/" + weight: 2 + - name: "CLA" + url: "/cla/" + weight: 3 + - name: "Forum" + url: "https://groups.google.com/forum/#!forum/bootique-user" + weight: 4 diff --git a/static/robots.txt b/static/robots.txt deleted file mode 100644 index eb053628..00000000 --- a/static/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: diff --git a/themes/bootique-theme/layouts/robots.txt b/themes/bootique-theme/layouts/robots.txt new file mode 100644 index 00000000..0feaf4f9 --- /dev/null +++ b/themes/bootique-theme/layouts/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Sitemap: {{ "sitemap.xml" | absURL }} \ No newline at end of file