From 5dc3bb7794efb92e6a5294ba66529bba7e2f1f75 Mon Sep 17 00:00:00 2001 From: Fundor333 Date: Fri, 17 Jan 2025 14:58:54 +0100 Subject: [PATCH] Fix robots --- config/_default/params.yaml | 7 ------- layouts/robots.txt | 5 +++++ 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 layouts/robots.txt diff --git a/config/_default/params.yaml b/config/_default/params.yaml index 2f259cb2..9beed7c6 100644 --- a/config/_default/params.yaml +++ b/config/_default/params.yaml @@ -57,10 +57,3 @@ hcard: region: Ve country: IT showLocation: true - social: - - platform: email - identity: blog@fundor333.com - url_pattern: mailto:%s - - platform: github - identity: fundor333 - url_pattern: https://github.com/%s diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 00000000..6a12eb4e --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,5 @@ +User-agent: * + +{{ range where .Data.Pages "Params.robotsdisallow" true }} +Disallow: {{ .RelPermalink }} +{{ end }}