From 1270caf0a534aca1917698fa1d486ab2c3675b66 Mon Sep 17 00:00:00 2001 From: Choonho Son Date: Tue, 7 May 2024 19:18:34 +0900 Subject: [PATCH] Add robots.txt Signed-off-by: Choonho Son --- config.yaml | 1 + content/resources/_index.md | 2 +- themes/up-business-theme/layouts/robots.txt | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 themes/up-business-theme/layouts/robots.txt diff --git a/config.yaml b/config.yaml index ec57263..394f884 100644 --- a/config.yaml +++ b/config.yaml @@ -5,6 +5,7 @@ languageCode: "en-us" title: "AuroraStack" googleAnalytics: "G-TV6R44L088" +enableRobotsTXT: true summaryLength: 20 diff --git a/content/resources/_index.md b/content/resources/_index.md index 053ed6c..6cff4bb 100644 --- a/content/resources/_index.md +++ b/content/resources/_index.md @@ -1,6 +1,6 @@ +++ aliases = ["posts", "articles", "blog", "showcase", "docs"] -title = "Generative Agents" +title = "Generative AIOps Agents" author = "Hugo Authors" tags = ["index"] layout = "resources" diff --git a/themes/up-business-theme/layouts/robots.txt b/themes/up-business-theme/layouts/robots.txt new file mode 100644 index 0000000..1f663de --- /dev/null +++ b/themes/up-business-theme/layouts/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +{{ range .Pages }} +Allow: {{ .RelPermalink }} +{{ end }} \ No newline at end of file