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 %} +<style>{{ css }}</style> +<div class="banner github"> + <p>{% tablericon "brand-github" "GitHub repository" %} Take a look at <a href="{{ url }}">the GitHub repository for this project</a>. (And give it a star if you feel like it.)</p> +</div> \ 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