Skip to content

v1.3.0

Latest

Choose a tag to compare

@oxypteros oxypteros released this 03 Apr 17:08
450e5d2

This release bring up to date Alpha for the latest Hugo versions (v0.156.0+) while significantly improving multilingual capabilities. Introduces full support for Simplified Chinese alongside a language-aware font system that optimizes typography based on the user's locale.

What's Changed

Added

  • Multilingual Support (Chinese): Introduced full support for Simplified Chinese (zh-cn). This includes specialized typography handling and localized UI elements. (Note: Initial translations in zh-cn.toml were AI-generated and require review by a native speaker.)
  • Smart Font Loading System: Implemented a language-aware font loading mechanism that optimizes performance by only serving necessary character sets:
    • Dynamic Character Sets: Loads fonts-zh.css (Noto Sans SC) exclusively for Chinese locales, while defaulting to fonts.css (Noto Sans) for Latin-based languages.
    • Monospace Consolidation: Introduced a common fonts-mono.css for JetBrains Mono, shared across all languages to reduce redundancy.
    • Template Integration: Utilizes a new head/fonts.html partial to dynamically inject CSS variables, allowing Tailwind CSS to automatically adapt the --font-sans family based on the active language.

Changed

  • Hugo Compatibility: Updated the supported version range to 0.156.0 – 0.159.2. This ensures full compatibility with the latest multidimensional content model and performance improvements.
  • Modernized Language Selector: Refactored the multilingual.html component to use the modern .Rotate "language" method. This simplifies the logic for generating language switchers and aligns with current Hugo best practices.
  • Deprecation Fixes: Resolved multiple deprecation warnings introduced in recent Hugo versions (v0.156.0 and later):
    • Migrated all instances of .Site.Data and site.Data to the new hugo.Data global.
    • Updated language property usage: replaced .Language.LanguageCode with .Language.Locale and .Language.LanguageDirection with .Language.Direction.
    • Migrated .Site.Languages usage to the global site.Languages function for consistency.

Updated

  • Dependencies: Upgraded all npm dependencies to their latest stable versions.