From cca10206d39148b5b760a12f50213dcf7f322518 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 21 Apr 2026 15:05:45 +0200 Subject: feat: Add SEO meta tags — canonical and hreflang alternates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- themes/danix-xyz-hacker/layouts/robots.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 themes/danix-xyz-hacker/layouts/robots.txt (limited to 'themes/danix-xyz-hacker/layouts/robots.txt') 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 -- cgit v1.2.3