Make blog.ubik.hr blog-only: redirect non-blog pages to ubik.hr#167
Merged
Conversation
The Hugo deploy at blog.ubik.hr was originally the entire ubik.hr website. After the migration to Gatsby (now serving ubik.hr), this repo was repurposed to host only /blog/, but the navbar and the old non-blog pages (members, contact, arbitration, consulting, become-a-member) were left in place — so visitors clicking the navbar still landed on stale 2024 content. This commit: - Updates the navbar (HR + EN) so all non-blog links point to the corresponding pages on https://ubik.hr (absolute URLs). /blog/ stays on blog.ubik.hr. - Replaces the front-matter of each non-blog section's _index.md with a redirect spec (type: redirect, redirect_to: <ubik.hr URL>) - Adds a redirect HTML template (layouts/_default/redirect.html and layouts/redirect/list.html) that emits a meta-refresh + JS redirect + canonical link, with noindex for SEO hygiene. URL mapping: /members/, /en/members/ → ubik.hr/members/ /contact/, /en/contact/ → ubik.hr/contact/ /arbitration/, /en/arbitration/ → ubik.hr/arbitraza/ /become-a-member/, /en/become-a-member/ → ubik.hr/join/ /consulting/, /en/consulting/ → ubik.hr/ (no equivalent) The /blog/ section is unaffected. The Hugo home page (blog.ubik.hr/) is also unchanged for now — handle separately if desired. Backups for restoration: - tag backup/pre-blog-cleanup (master before this change) - tag backup/built-site-pre-cleanup (gh-pages before this change) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Hugo deploy at `blog.ubik.hr` was originally the entire ubik.hr website. After the migration to Gatsby (now serving ubik.hr), this repo was repurposed to host only `/blog/`, but the navbar and the old non-blog pages (members, contact, arbitration, consulting, become-a-member) were left in place — so visitors clicking the navbar landed on stale 2024 content.
This PR makes `blog.ubik.hr` truly blog-only:
URL mapping
Changes
Out of scope (intentional)
Backups
Before this PR, the state was tagged for permanent recovery:
Test plan
🤖 Generated with Claude Code