chore: gh banner

This commit is contained in:
Cory Dransfeldt 2024-03-31 07:47:37 -07:00
parent 9070daffcd
commit 5abc4f8b6b
No known key found for this signature in database
3 changed files with 17 additions and 0 deletions

View file

@ -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>

View file

@ -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);

View file

@ -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.