From 4a11ca9f3962fc7d3593fdf559d2a13e38d3ca23 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Tue, 12 Mar 2024 20:29:15 -0400 Subject: [PATCH] opt out of gen-ai training --- layouts/partials/head.html | 6 +++++- static/robots.txt | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 496f58b..947bbff 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -13,8 +13,12 @@ {{ $resources = $resources | append (resources.Get "css/print.css" | resources.ExecuteAsTemplate "print.css" .) -}} {{- $css := $resources | resources.Concat "css/style.css" | minify -}} + {{ if or (eq site.BaseURL site.Params.CanonicalBaseURL) (in site.BaseURL "wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion") -}} - + + + {{ else -}} + {{ end -}} diff --git a/static/robots.txt b/static/robots.txt index 85b55fa..88d56b6 100644 --- a/static/robots.txt +++ b/static/robots.txt @@ -49,5 +49,8 @@ Disallow: / User-agent: GPTBot Disallow: / +# Official way to opt-out of Google's generative AI training: https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers +User-agent: Google-Extended +Disallow: / Sitemap: https://seirdy.one/sitemap.xml