summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/robots.txt
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-21 15:05:45 +0200
committerDanilo M. <danix@danix.xyz>2026-04-21 15:05:45 +0200
commitcca10206d39148b5b760a12f50213dcf7f322518 (patch)
treef39bda6fb2dba40557ca7619d83453ffa0f83812 /themes/danix-xyz-hacker/layouts/robots.txt
parent2e3c3c8709845432f231098e16d32cfe0191a5dd (diff)
downloaddanixxyz-cca10206d39148b5b760a12f50213dcf7f322518.tar.gz
danixxyz-cca10206d39148b5b760a12f50213dcf7f322518.zip
feat: Add SEO meta tags — canonical and hreflang alternates
- Create robots.txt template with Sitemap directive and JSON search index exclusions - Add canonical link and hreflang alternates (it, en, x-default) to all pages - Uses Hugo built-ins (.Permalink, .AllTranslations) for production-correct URLs - All pages now signal canonical URL and language variants to search engines Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/robots.txt')
-rw-r--r--themes/danix-xyz-hacker/layouts/robots.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/layouts/robots.txt b/themes/danix-xyz-hacker/layouts/robots.txt
new file mode 100644
index 0000000..8fc0c20
--- /dev/null
+++ b/themes/danix-xyz-hacker/layouts/robots.txt
@@ -0,0 +1,5 @@
+User-agent: *
+Disallow: /search-index.json
+Disallow: /it/search-index.json
+
+Sitemap: {{ .Site.BaseURL }}sitemap.xml