Skip to content

Drop broken Telegram notifier; redirect blog home → /blog/#168

Merged
lukaskywalk merged 1 commit into
UBIKhr:masterfrom
lukaskywalk:cleanup-tg-and-home-redirect
Apr 29, 2026
Merged

Drop broken Telegram notifier; redirect blog home → /blog/#168
lukaskywalk merged 1 commit into
UBIKhr:masterfrom
lukaskywalk:cleanup-tg-and-home-redirect

Conversation

@lukaskywalk
Copy link
Copy Markdown
Collaborator

Summary

Two cleanups:

1. Remove broken Telegram notification step

The `appleboy/telegram-action` step in `publish.yml` was failing on every run with:
`Forbidden: bot was kicked from the supergroup chat`

This caused the workflow to be marked as failed even though the deploy itself succeeded — misleading any time someone glances at the Actions tab. Removing the step.

(If Telegram notifications are still wanted later, easiest fix is to invite the bot back to the chat and add the step in. For now: dropped.)

2. Redirect blog home pages to the blog index

`https://blog.ubik.hr/\` and `/en/` were rendering the legacy Hugo home page. Since this site is now blog-only, we send users straight to where the content lives:

URL Redirects to
`https://blog.ubik.hr/\` `/blog/`
`https://blog.ubik.hr/en/\` `/en/blog/`

Changes

  • `.github/workflows/publish.yml` — drop the `Notify deployment` step
  • `site/layouts/index.html` — new project-level home layout that emits a meta-refresh + JS redirect to the language-appropriate blog index

Test plan

🤖 Generated with Claude Code

1. Removes the "Notify deployment" step that posted to a Telegram
   chat from which the bot has been kicked. Every successful deploy
   was being marked as failed because of this single side-effect
   step. The deploy itself worked, but the workflow status was
   misleading. Removing the step fixes the status without losing
   any functionality (notifications can be re-added later via a
   different channel if desired).

2. Adds a custom home layout (site/layouts/index.html) so visiting
   blog.ubik.hr/ or blog.ubik.hr/en/ redirects to the corresponding
   blog index (/blog/ or /en/blog/). Users typing the bare domain
   are sent straight to where the content lives, since this site
   is now blog-only.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@lukaskywalk lukaskywalk merged commit aafd3dc into UBIKhr:master Apr 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant