Skip to content

Commit

Permalink
Add copyright and robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuotidem committed Nov 29, 2024
1 parent e3e01b9 commit cfce681
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 2 deletions.
18 changes: 17 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,27 @@ highlight_theme= "css"

[extra]
# Put all your custom variables here
copyright = "© $CURRENT_YEAR Isaac M $SEPARATOR Except where otherwise noted , content on this site is licensed under a [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) license."

menu = [
{ name = "blog", url = "blog", trailing_slash = true },
{ name = "linkedin", external_url = "https://www.linkedin.com/in/miisaac/", trailing_slash = false },
#{ name = "archive", url = "archive", trailing_slash = true },
{ name = "tags", url = "tags", trailing_slash = true },
]

override_serif_with_sans = true
override_serif_with_sans = true

[link_checker]
skip_prefixes = [
"https://www.linkedin.com/",
"https://linkedin.com/"
]

skip_anchor_prefixes = [
"https://caniuse.com/",
]

internal_level = "error"
external_level = "error"

70 changes: 70 additions & 0 deletions content/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
User-agent: *
Allow: /

Sitemap: https://mbuotidem.github.io/sitemap-index.xml

User-agent: Amazonbot
Disallow: /

User-agent: anthropic-ai
Disallow: /

User-Agent: Applebot
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: ChatGPT-User
Disallow: /

User-agent: Claude-Web
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: cohere-ai
Disallow: /

User-agent: Diffbot
Disallow: /

User-agent: FacebookBot
Disallow: /

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: ImagesiftBot
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

User-agent: Meta-ExternalFetcher
Disallow: /

User-agent: Omgili
Disallow: /

User-agent: Omgilibot
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: Timpibot
Disallow: /

User-agent: YouBot
Disallow: /
6 changes: 5 additions & 1 deletion themes/tabi/templates/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
{% for menu in config.extra.menu %}
<li>
{% set trailing_slash = menu.trailing_slash | default(value=true) %}
<a class="nav-links no-hover-padding" href="{{ get_url(path=menu.url, lang=lang, trailing_slash=trailing_slash) }}">
{% if menu.external_url %}
<a class="nav-links no-hover-padding" href="{{ menu.external_url }}" target="_blank" rel="noopener noreferrer">
{% else %}
<a class="nav-links no-hover-padding" href="{{ get_url(path=menu.url, lang=lang, trailing_slash=trailing_slash) }}">
{% endif %}
{{ macros_translate::translate(key=menu.name, default=menu.name, language_strings=language_strings) }}
</a>
</li>
Expand Down

0 comments on commit cfce681

Please sign in to comment.