From 5abc4f8b6b5813e3d5b5d8558b274a4c268e24a4 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sun, 31 Mar 2024 07:47:37 -0700 Subject: [PATCH] chore: gh banner --- src/_includes/partials/banners/github.liquid | 7 +++++++ src/assets/styles/components/banners.css | 8 ++++++++ src/posts/2024/go-ahead-and-block-ai-web-crawlers.md | 2 ++ 3 files changed, 17 insertions(+) create mode 100644 src/_includes/partials/banners/github.liquid diff --git a/src/_includes/partials/banners/github.liquid b/src/_includes/partials/banners/github.liquid new file mode 100644 index 00000000..9f9bc3eb --- /dev/null +++ b/src/_includes/partials/banners/github.liquid @@ -0,0 +1,7 @@ +{% capture css %} + {% render "../../../assets/styles/components/banners.css" %} +{% endcapture %} + + \ No newline at end of file diff --git a/src/assets/styles/components/banners.css b/src/assets/styles/components/banners.css index 54e24411..62ad7335 100644 --- a/src/assets/styles/components/banners.css +++ b/src/assets/styles/components/banners.css @@ -17,6 +17,14 @@ stroke: var(--brand-npm); } +.banner.github { + border-color: var(--brand-github); +} + +.banner.github svg { + stroke: var(--brand-github); +} + .banner p { font-size: var(--font-size-sm); line-height: var(--line-height-sm); diff --git a/src/posts/2024/go-ahead-and-block-ai-web-crawlers.md b/src/posts/2024/go-ahead-and-block-ai-web-crawlers.md index b4365ee1..bfc72b60 100644 --- a/src/posts/2024/go-ahead-and-block-ai-web-crawlers.md +++ b/src/posts/2024/go-ahead-and-block-ai-web-crawlers.md @@ -71,4 +71,6 @@ Disallow: / **Update March 27, 2024:** Many thanks to [Jens](https://meiert.com/en/) for pointing out that the `User-agent` rules can be safely combined preceding a `Disallow` statement. +{% render "partials/banners/github.liquid", url: 'https://github.com/ai-robots-txt/ai.robots.txt' %} + [^1]: I've yet to definitively identify Arc Search's user agent but I'd like to, so I can block it and share it — but that assumes they respect `robots.txt` declarations. \ No newline at end of file