Skip to content

fix: normalize Norwegian hreflang to no and align last-generation.json with documented schema#585

Merged
pethers merged 2 commits intonews-realtime/2026-02-26-120500-a28e6c8531887396from
copilot/sub-pr-582
Feb 26, 2026
Merged

fix: normalize Norwegian hreflang to no and align last-generation.json with documented schema#585
pethers merged 2 commits intonews-realtime/2026-02-26-120500-a28e6c8531887396from
copilot/sub-pr-582

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

Two schema/SEO inconsistencies in the breaking news article set.

Changes

  • Norwegian hreflang — All 14 articles used hreflang="nb" in <link rel="alternate"> while the language switcher and Norwegian page itself used lang="no". Normalized to hreflang="no" everywhere.
<!-- before -->
<link rel="alternate" hreflang="nb" href="https://riksdagsmonitor.com/news/2026-02-26-breaking-security-reforms-no.html">

<!-- after -->
<link rel="alternate" hreflang="no" href="https://riksdagsmonitor.com/news/2026-02-26-breaking-security-reforms-no.html">
  • last-generation.json schema — File was missing the four fields documented in news/metadata/README.md (generated, errors, types, status). Added them as top-level fields while preserving all existing keys for backward compatibility with current consumers.
{
  "timestamp": "2026-02-26T12:05:00.000Z",
  "generated": 14,
  "errors": 0,
  "types": "breaking",
  "status": "success",
  "generated_at": "2026-02-26T12:05:00.000Z",
  ...
}

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@github-actions
Copy link
Contributor

🏷️ Automatic Labeling Summary

This PR has been automatically labeled based on the files changed and PR metadata.

Applied Labels: size-xs

Label Categories

  • 🗳️ Content: news, dashboard, visualization, intelligence
  • 💻 Technology: html-css, javascript, workflow, security
  • 📊 Data: cia-data, riksdag-data, data-pipeline, schema
  • 🌍 I18n: i18n, translation, rtl
  • 🔒 ISMS: isms, iso-27001, nist-csf, cis-controls
  • 🏗️ Infrastructure: ci-cd, deployment, performance, monitoring
  • 🔄 Quality: testing, accessibility, documentation, refactor
  • 🤖 AI: agent, skill, agentic-workflow

For more information, see .github/labeler.yml.

…ields

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Update security and justice reforms proposals in Sweden fix: normalize Norwegian hreflang to no and align last-generation.json with documented schema Feb 26, 2026
@pethers pethers marked this pull request as ready for review February 26, 2026 14:35
@pethers pethers merged commit d632d92 into news-realtime/2026-02-26-120500-a28e6c8531887396 Feb 26, 2026
@pethers pethers deleted the copilot/sub-pr-582 branch February 26, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-xs Extra small change (< 10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants