chore: release blog for Hextra v0.12
* chore: release blog for Hextra v0.12 * Add v0.12 blog translations and proofreading updates * Merge main into plan-release-v0.12.0 and update build script versions * Update build environment versions in netlify.toml to HUGO 0.156.0, GO 1.26.0, and NODE 24.13.1 * chore: update banner messages in multiple languages to reflect the release of Hextra **v0.12** in hugo.yaml * docs(blog): align v0.12 tabs example with image (Photos/Music/Videos) * docs(blog): fix page context menu wording (dropdown, not right-click) * docs(hugo): update version link from v0.9 to v0.11 in menu
This commit is contained in:
1
build.sh
1
build.sh
@@ -12,6 +12,7 @@ echo "Using base URL: $BASE_URL"
|
|||||||
MAIN_VERSION="v0.11.3:latest:docs"
|
MAIN_VERSION="v0.11.3:latest:docs"
|
||||||
VERSIONS=(
|
VERSIONS=(
|
||||||
"main:latest:docs" # latest version always builds from main
|
"main:latest:docs" # latest version always builds from main
|
||||||
|
"v0.11.3:v0.11:docs"
|
||||||
"v0.10.3:v0.10:exampleSite"
|
"v0.10.3:v0.10:exampleSite"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
217
docs/content/blog/v0.12.fa.md
Normal file
217
docs/content/blog/v0.12.fa.md
Normal file
@@ -0,0 +1,217 @@
|
|||||||
|
---
|
||||||
|
title: "Hextra v0.12"
|
||||||
|
date: 2026-02-20
|
||||||
|
authors:
|
||||||
|
- name: imfing
|
||||||
|
link: https://github.com/imfing
|
||||||
|
image: https://github.com/imfing.png
|
||||||
|
tags:
|
||||||
|
- انتشار
|
||||||
|
---
|
||||||
|
|
||||||
|
Hextra v0.12.0 مجموعهای غنی از ویژگیهای جدید شامل منوی زمینه صفحه، زوم تصویر، تبهای بازطراحیشده و موارد بیشتر، به همراه بهبودهای جامع دسترسپذیری WCAG 2.2 AA و رفع اشکالات متعدد ارائه میدهد.
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
## راهنمای ارتقا
|
||||||
|
|
||||||
|
برای بیشتر سایتها تغییر شکستآمیزی وجود ندارد. با استفاده از [Hugo Modules](https://gohugo.io/hugo-modules/use-modules/) بهروزرسانی کنید:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
hugo mod get -u github.com/imfing/hextra
|
||||||
|
```
|
||||||
|
|
||||||
|
## نکات برجسته
|
||||||
|
|
||||||
|
- منوی زمینه صفحه برای کپی/مشاهده سورس Markdown
|
||||||
|
- بازطراحی شورتکد تبها با نامگذاری هر تب و پشتیبانی از آیکون
|
||||||
|
- زوم با کلیک برای تصاویر Markdown
|
||||||
|
- پشتیبانی از تحلیلگر GoatCounter
|
||||||
|
- گزینه مخفیکردن نوار کناری اصلی در دسکتاپ
|
||||||
|
- نمایش آخرین نویسنده ویرایشکننده از طریق GitInfo
|
||||||
|
- گزینه غیرفعالسازی ناوبری قبلی/بعدی
|
||||||
|
- صفحه آرشیو داخلی برای فهرست زمانی نوشتههای وبلاگ
|
||||||
|
- شورتکد و چیدمان واژهنامه
|
||||||
|
- حذف صفحات/بخشها از llms.txt
|
||||||
|
- ترتیب و برچسبهای نوار کناری موبایل همراستا با `menu.main`
|
||||||
|
- عرض محتوای پایدار با پشتیبانی از بازنویسی متغیر CSS
|
||||||
|
- بهبودهای جامع دسترسپذیری WCAG 2.2 AA
|
||||||
|
|
||||||
|
## ویژگیهای جدید
|
||||||
|
|
||||||
|
### منوی زمینه صفحه
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
منوی زمینه صفحه دکمهای کشویی فراهم میکند که با آن میتوانید محتوای صفحه را بهصورت Markdown کپی کنید یا سورس خام Markdown را مشاهده نمایید. با افزایش کاربرانی که مستندات را به ابزارهای هوش مصنوعی مولّد میدهند، دسترسی سریع به Markdown تمیز بسیار مفید است. پیوندهای سفارشی با متغیرهای قالب (`{url}`، `{title}`، `{markdownUrl}`) به شما امکان میدهند میانبرهای «از AI بپرس» یا سایر یکپارچهسازیها را مستقیماً در منو ایجاد کنید.
|
||||||
|
|
||||||
|
برای استفاده از قابلیتهای «مشاهده بهصورت Markdown» و `{markdownUrl}`، فرمت خروجی Markdown را در پیکربندی سایت فعال کنید:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
outputs:
|
||||||
|
page: [html, markdown]
|
||||||
|
section: [html, rss, markdown]
|
||||||
|
```
|
||||||
|
|
||||||
|
سپس منوی زمینه را پیکربندی کنید:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
page:
|
||||||
|
contextMenu:
|
||||||
|
enable: true
|
||||||
|
links:
|
||||||
|
- name: "Ask AI"
|
||||||
|
url: "https://example.com?content={markdownUrl}"
|
||||||
|
icon: "sparkles"
|
||||||
|
```
|
||||||
|
|
||||||
|
### بازطراحی تبها و پشتیبانی از آیکون
|
||||||
|
|
||||||
|
[شورتکد تبها]({{% relref "docs/guide/shortcodes/tabs" %}}) بازطراحی شده است. اکنون میتوان نام تبها را مستقیماً روی هر شورتکد `tab` تنظیم کرد و پارامتر اختیاری `icon` یک آیکون قبل از برچسب تب نمایش میدهد. نحو قبلی همچنان پشتیبانی میشود.
|
||||||
|
|
||||||
|
```md
|
||||||
|
{{</* tabs */>}}
|
||||||
|
{{</* tab name="Photos" icon="photograph" */>}}مدیریت و سازماندهی کتابخانه عکسهای شما.{{</* /tab */>}}
|
||||||
|
{{</* tab name="Music" icon="music-note" */>}}مرور و پخش آهنگهای مورد علاقه شما.{{</* /tab */>}}
|
||||||
|
{{</* tab name="Videos" icon="film" */>}}تماشا و پخش محتوای ویدیویی.{{</* /tab */>}}
|
||||||
|
{{</* /tabs */>}}
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### زوم تصویر
|
||||||
|
|
||||||
|
با یک گزینه پیکربندی جدید، زوم با کلیک را روی تصاویر Markdown فعال کنید. این قابلیت از [medium-zoom](https://github.com/francoischalifour/medium-zoom) استفاده میکند.
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
imageZoom: true
|
||||||
|
```
|
||||||
|
|
||||||
|
### تحلیلگر GoatCounter
|
||||||
|
|
||||||
|
پشتیبانی داخلی از تحلیلگر [GoatCounter](https://www.goatcounter.com/) در کنار یکپارچهسازیهای موجود Google Analytics، Umami و Matomo.
|
||||||
|
|
||||||
|
### مخفیکردن نوار کناری اصلی
|
||||||
|
|
||||||
|
یک پارامتر جدید فرانتمتر امکان مخفیکردن نوار کناری اصلی در دسکتاپ را فراهم میکند تا صفحات محتوا عرض کامل داشته باشند.
|
||||||
|
|
||||||
|
```yaml {filename="content/my-page.md"}
|
||||||
|
---
|
||||||
|
title: My Page
|
||||||
|
sidebar:
|
||||||
|
hide: true
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### آخرین نویسنده ویرایشکننده
|
||||||
|
|
||||||
|
با استفاده از GitInfo هوگو، آخرین نویسنده کامیت را در کنار تاریخ «آخرین بهروزرسانی» نمایش دهید.
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
displayUpdatedAuthor: true
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### غیرفعالسازی ناوبری قبلی/بعدی
|
||||||
|
|
||||||
|
دکمههای ناوبری قبلی/بعدی را در سطح سایت غیرفعال کنید:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
page:
|
||||||
|
displayPagination: false
|
||||||
|
```
|
||||||
|
|
||||||
|
### حذف از LLMs.txt
|
||||||
|
|
||||||
|
با تنظیم `llms: false` در فرانتمتر، صفحات یا بخشهای کامل را از خروجی `llms.txt` حذف کنید.
|
||||||
|
|
||||||
|
```yaml {filename="content/private-page.md"}
|
||||||
|
---
|
||||||
|
title: "Private Page"
|
||||||
|
llms: false
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### صفحه آرشیو
|
||||||
|
|
||||||
|
چیدمان جدید داخلی `archives` نوشتههای وبلاگ را در یک خط زمانی گروهبندیشده بر اساس سال نمایش میدهد و برچسبها بهصورت درونخطی پس از عنوان هر نوشته نشان داده میشوند.
|
||||||
|
|
||||||
|
```yaml {filename="content/archives/_index.md"}
|
||||||
|
---
|
||||||
|
title: Archives
|
||||||
|
layout: archives
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### واژهنامه
|
||||||
|
|
||||||
|
یک [واژهنامه]({{% relref "docs/guide/shortcodes/term" %}}) اصطلاحات سراسری سایت با صفحه فهرست اختصاصی و شورتکد `term` برای تعاریف درونخطی.
|
||||||
|
|
||||||
|
## دسترسپذیری
|
||||||
|
|
||||||
|
بهبودهای جامع دسترسپذیری WCAG 2.2 AA (#924):
|
||||||
|
|
||||||
|
- پیوند رفتن به محتوا و نقشهای نشانهای ARIA در تمام صفحات
|
||||||
|
- ویژگیهای ARIA برای تمام ابزارکهای تعاملی (کلید تغییر تم، تبها، نوار کناری، درخت فایل، منوهای بازشو، جستجو، منوها)
|
||||||
|
- ناوبری صفحهکلیدی برای تبها و کلید تغییر تم (کلیدهای جهتی، Enter، Escape)
|
||||||
|
- پشتیبانی از `prefers-reduced-motion` و سبکهای سراسری `focus-visible`
|
||||||
|
- ۱۵ کلید دسترسپذیری i18n جدید با ترجمه کامل در تمام ۲۱ محلیسازی
|
||||||
|
- جایگزینی تمام رشتههای انگلیسی `aria-label` که بهصورت هاردکد بودند با جستجوی i18n
|
||||||
|
|
||||||
|
## بهبودهای کیفیت زندگی
|
||||||
|
|
||||||
|
- بهبود سبکهای خوانایی جدول
|
||||||
|
- پشتیبانی از ویژگیهای Markdown برای سرتیترها
|
||||||
|
- تشخیص بهتر پیوند فعال برای صفحات فرود بخش چندزبانه
|
||||||
|
- پشتیبانی شورتکد کارت از پارامتر اختیاری `alt` برای تصاویر
|
||||||
|
- پشتیبانی از تصاویر بسته صفحه در ابرداده OpenGraph
|
||||||
|
- عرض محتوا اکنون بهصورت پیشفرض ثابت است، با پشتیبانی از بازنویسی متغیر CSS برای چیدمانهای سفارشی
|
||||||
|
|
||||||
|
## رفع اشکالات
|
||||||
|
|
||||||
|
- جلوگیری از پیشوند پایه دوگانه `relref` در render-link
|
||||||
|
- رفع رندر تبها هنگام تودرتوبودن در مراحل
|
||||||
|
- همراستاسازی ترتیب و برچسبهای نوار کناری موبایل با `menu.main`
|
||||||
|
- رعایت `search.enable` در نوار کناری
|
||||||
|
- رعایت پارامتر صفحه `toc` در منوی بازشو موبایل
|
||||||
|
- بهبود برجستهسازی تطبیق FlexSearch و دستکاری امن DOM
|
||||||
|
- رفع موقعیت زیرعنوان کارت
|
||||||
|
- مدیریت اسلشهای ابتدایی در مسیرهای تصویر OG برای استقرارهای زیرمسیر
|
||||||
|
- رفع بازگرداندن صفحات نتیجه کمتر از حد انتظار توسط FlexSearch
|
||||||
|
- تغییر فایل پیشفرض Umami analytics به `script.js`
|
||||||
|
- رفع جستجوی نویسنده RSS برای Hugo v0.156.0+ (`.Site.Params.Author`)
|
||||||
|
|
||||||
|
## مستندات و بومیسازی
|
||||||
|
|
||||||
|
- افزودن بومیسازی ایتالیایی
|
||||||
|
- پیوند مستندات KaTeX
|
||||||
|
- بهروزرسانی مستندات شورتکد details به نحو angle bracket
|
||||||
|
|
||||||
|
## مشارکتکنندگان
|
||||||
|
|
||||||
|
این انتشار با مشارکت ۱۱ مشارکتکننده جدید ممکن شد:
|
||||||
|
|
||||||
|
- [@ghac101](https://github.com/ghac101) - رفع Umami analytics، غیرفعالسازی ناوبری قبلی/بعدی
|
||||||
|
- [@pmarrapese](https://github.com/pmarrapese) - پشتیبانی از ویژگیهای Markdown برای سرتیترها
|
||||||
|
- [@Bubbler-4](https://github.com/Bubbler-4) - مستندات شورتکد details
|
||||||
|
- [@bloovis](https://github.com/bloovis) - رفع تعداد نتایج FlexSearch
|
||||||
|
- [@AntoninPvr](https://github.com/AntoninPvr) - رفع موقعیت زیرعنوان کارت
|
||||||
|
- [@illia-v](https://github.com/illia-v) - رفع TOC موبایل و کلید تغییر جستجو
|
||||||
|
- [@gallochri](https://github.com/gallochri) - بومیسازی ایتالیایی
|
||||||
|
- [@MatheusFlausino](https://github.com/MatheusFlausino) - حذف از LLMs.txt
|
||||||
|
- [@daniseijo](https://github.com/daniseijo) - قابلیت آخرین نویسنده ویرایشکننده
|
||||||
|
- [@confusedkernel](https://github.com/confusedkernel) - صفحه آرشیو
|
||||||
|
- [@Fenyutanchan](https://github.com/Fenyutanchan) - رفع سازگاری نویسنده RSS با Hugo v0.156.0
|
||||||
|
|
||||||
|
همچنین از مشارکتکنندگان بازگشته [@KStocky](https://github.com/KStocky)، [@ldez](https://github.com/ldez)، [@kowyo](https://github.com/kowyo)، [@torbjornbp](https://github.com/torbjornbp)، [@yuri1969](https://github.com/yuri1969) و [@PrintN](https://github.com/PrintN) بابت مشارکتهای مداومشان سپاسگزاریم.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**تغییرات کامل**: https://github.com/imfing/hextra/compare/v0.11.1...v0.12.0
|
||||||
217
docs/content/blog/v0.12.ja.md
Normal file
217
docs/content/blog/v0.12.ja.md
Normal file
@@ -0,0 +1,217 @@
|
|||||||
|
---
|
||||||
|
title: "Hextra v0.12"
|
||||||
|
date: 2026-02-20
|
||||||
|
authors:
|
||||||
|
- name: imfing
|
||||||
|
link: https://github.com/imfing
|
||||||
|
image: https://github.com/imfing.png
|
||||||
|
tags:
|
||||||
|
- Release
|
||||||
|
---
|
||||||
|
|
||||||
|
Hextra v0.12.0 は、ページコンテキストメニュー、画像ズーム、刷新されたタブ、その他多くの新機能に加え、包括的な WCAG 2.2 AA アクセシビリティ改善と多数のバグ修正を提供します。
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
## アップグレードガイド
|
||||||
|
|
||||||
|
ほとんどのサイトで破壊的変更はありません。[Hugo Modules](https://gohugo.io/hugo-modules/use-modules/) を使って更新してください:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
hugo mod get -u github.com/imfing/hextra
|
||||||
|
```
|
||||||
|
|
||||||
|
## ハイライト
|
||||||
|
|
||||||
|
- Markdown ソースのコピー・表示ができるページコンテキストメニュー
|
||||||
|
- タブ名指定とアイコンをサポートする刷新されたタブショートコード
|
||||||
|
- Markdown 画像のクリックズーム
|
||||||
|
- GoatCounter アナリティクス対応
|
||||||
|
- デスクトップでメインサイドバーを非表示にするオプション
|
||||||
|
- GitInfo による最終更新者の表示
|
||||||
|
- 前へ/次へナビゲーションの無効化オプション
|
||||||
|
- ブログ記事の年別アーカイブページ
|
||||||
|
- 用語集ショートコードとレイアウト
|
||||||
|
- llms.txt からのページ/セクション除外
|
||||||
|
- モバイルサイドバーの順序とラベルが `menu.main` に準拠
|
||||||
|
- CSS 変数オーバーライドによる安定したコンテンツ幅
|
||||||
|
- 包括的な WCAG 2.2 AA アクセシビリティ改善
|
||||||
|
|
||||||
|
## 新機能
|
||||||
|
|
||||||
|
### ページコンテキストメニュー
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
ページコンテキストメニューはドロップダウンボタンを提供し、ページの内容を Markdown としてコピーしたり、生の Markdown ソースを表示できます。ドキュメントを生成 AI ツールに取り込むユーザーが増える中、クリーンな Markdown への素早いアクセスはますます有用です。テンプレート変数(`{url}`、`{title}`、`{markdownUrl}`)を使ったカスタムリンクにより、「AI に質問」ショートカットなどのインテグレーションをメニューに直接組み込めます。
|
||||||
|
|
||||||
|
「Markdown として表示」および `{markdownUrl}` 機能を利用するには、サイト設定で Markdown 出力フォーマットを有効にしてください:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
outputs:
|
||||||
|
page: [html, markdown]
|
||||||
|
section: [html, rss, markdown]
|
||||||
|
```
|
||||||
|
|
||||||
|
次にコンテキストメニューを設定します:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
page:
|
||||||
|
contextMenu:
|
||||||
|
enable: true
|
||||||
|
links:
|
||||||
|
- name: "Ask AI"
|
||||||
|
url: "https://example.com?content={markdownUrl}"
|
||||||
|
icon: "sparkles"
|
||||||
|
```
|
||||||
|
|
||||||
|
### タブの刷新とアイコン対応
|
||||||
|
|
||||||
|
[タブショートコード]({{% relref "docs/guide/shortcodes/tabs" %}})が刷新されました。各 `tab` ショートコードでタブ名を直接設定でき、オプションの `icon` パラメータでラベルの前にアイコンを表示できます。従来の構文も引き続きサポートされています。
|
||||||
|
|
||||||
|
```md
|
||||||
|
{{</* tabs */>}}
|
||||||
|
{{</* tab name="Photos" icon="photograph" */>}}写真ライブラリを管理・整理します。{{</* /tab */>}}
|
||||||
|
{{</* tab name="Music" icon="music-note" */>}}お気に入りの曲を閲覧・再生します。{{</* /tab */>}}
|
||||||
|
{{</* tab name="Videos" icon="film" */>}}動画コンテンツを視聴・ストリーミングします。{{</* /tab */>}}
|
||||||
|
{{</* /tabs */>}}
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 画像ズーム
|
||||||
|
|
||||||
|
[medium-zoom](https://github.com/francoischalifour/medium-zoom) を利用した新しい設定オプションで、Markdown 画像のクリックズームを有効にできます。
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
imageZoom: true
|
||||||
|
```
|
||||||
|
|
||||||
|
### GoatCounter アナリティクス
|
||||||
|
|
||||||
|
既存の Google Analytics、Umami、Matomo に加え、[GoatCounter](https://www.goatcounter.com/) アナリティクスの組み込みサポートを追加しました。
|
||||||
|
|
||||||
|
### メインサイドバーの非表示
|
||||||
|
|
||||||
|
新しいフロントマターパラメータにより、デスクトップでメインサイドバーを非表示にしてコンテンツを全幅表示できます。
|
||||||
|
|
||||||
|
```yaml {filename="content/my-page.md"}
|
||||||
|
---
|
||||||
|
title: My Page
|
||||||
|
sidebar:
|
||||||
|
hide: true
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### 最終更新者の表示
|
||||||
|
|
||||||
|
Hugo の GitInfo を使って、「最終更新日」と合わせて最終コミット者を表示します。
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
displayUpdatedAuthor: true
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 前へ/次へナビゲーションの無効化
|
||||||
|
|
||||||
|
サイト全体で前へ/次へナビゲーションボタンを無効にできます:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
page:
|
||||||
|
displayPagination: false
|
||||||
|
```
|
||||||
|
|
||||||
|
### LLMs.txt 除外
|
||||||
|
|
||||||
|
フロントマターで `llms: false` を設定すると、個別のページやセクション全体を `llms.txt` 出力から除外できます。
|
||||||
|
|
||||||
|
```yaml {filename="content/private-page.md"}
|
||||||
|
---
|
||||||
|
title: "Private Page"
|
||||||
|
llms: false
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### アーカイブページ
|
||||||
|
|
||||||
|
新しい組み込み `archives` レイアウトは、ブログ記事を年ごとにグループ化した時系列タイムラインで表示し、各タイトルの後にタグをインラインで表示します。
|
||||||
|
|
||||||
|
```yaml {filename="content/archives/_index.md"}
|
||||||
|
---
|
||||||
|
title: Archives
|
||||||
|
layout: archives
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 用語集
|
||||||
|
|
||||||
|
サイト全体の[用語集]({{% relref "docs/guide/shortcodes/term" %}})。専用のリストページとインライン定義用の `term` ショートコードを備えています。
|
||||||
|
|
||||||
|
## アクセシビリティ
|
||||||
|
|
||||||
|
包括的な WCAG 2.2 AA アクセシビリティ改善 (#924):
|
||||||
|
|
||||||
|
- すべてのページに本文へスキップリンクと ARIA ランドマークロール
|
||||||
|
- すべてのインタラクティブウィジェット(テーマトグル、タブ、サイドバー、ファイルツリー、ドロップダウン、検索、メニュー)に ARIA 属性
|
||||||
|
- タブとテーマトグルのキーボードナビゲーション(矢印キー、Enter、Escape)
|
||||||
|
- `prefers-reduced-motion` サポートとグローバル `focus-visible` スタイル
|
||||||
|
- 全 21 ロケールに完全翻訳された 15 個の新しい i18n アクセシビリティキー
|
||||||
|
- ハードコードされた英語 `aria-label` 文字列をすべて i18n ルックアップに置き換え
|
||||||
|
|
||||||
|
## 利便性の向上
|
||||||
|
|
||||||
|
- テーブルの読みやすさ向上のためのスタイル改善
|
||||||
|
- ヘッダーでの Markdown 属性サポート
|
||||||
|
- 多言語セクションランディングページでのアクティブリンク検出の改善
|
||||||
|
- カードショートコードで画像に `alt` パラメータをオプションでサポート
|
||||||
|
- ページバンドル画像が OpenGraph メタデータでサポート
|
||||||
|
- コンテンツ幅がデフォルトで安定し、カスタムレイアウト用の CSS 変数オーバーライドをサポート
|
||||||
|
|
||||||
|
## 修正
|
||||||
|
|
||||||
|
- render-link での `relref` ベースプレフィックスの二重付与を修正
|
||||||
|
- ステップ内にネストされたタブの描画を修正
|
||||||
|
- モバイルサイドバーの順序とラベルを `menu.main` に準拠
|
||||||
|
- サイドバーでの `search.enable` の尊重
|
||||||
|
- モバイルドロップダウンでの `toc` ページパラメータの尊重
|
||||||
|
- FlexSearch のマッチハイライトと安全な DOM 操作の改善
|
||||||
|
- カードのサブタイトル位置の修正
|
||||||
|
- サブパスデプロイメントでの OG 画像パスの先頭スラッシュの処理
|
||||||
|
- FlexSearch が期待より少ない結果ページを返す問題の修正
|
||||||
|
- Umami アナリティクスのデフォルトファイルを `script.js` に変更
|
||||||
|
- Hugo v0.156.0+ での RSS author ルックアップの修正 (`.Site.Params.Author`)
|
||||||
|
|
||||||
|
## ドキュメントと i18n
|
||||||
|
|
||||||
|
- イタリア語ローカリゼーションを追加
|
||||||
|
- KaTeX ドキュメントへのリンクを追加
|
||||||
|
- details ショートコードのドキュメントを angle bracket 構文に更新
|
||||||
|
|
||||||
|
## コントリビューター
|
||||||
|
|
||||||
|
このリリースは 11 名の新しいコントリビューターの貢献により実現しました:
|
||||||
|
|
||||||
|
- [@ghac101](https://github.com/ghac101) - Umami アナリティクスの修正、前へ/次へナビゲーションの無効化
|
||||||
|
- [@pmarrapese](https://github.com/pmarrapese) - ヘッダーの Markdown 属性サポート
|
||||||
|
- [@Bubbler-4](https://github.com/Bubbler-4) - details ショートコードのドキュメント
|
||||||
|
- [@bloovis](https://github.com/bloovis) - FlexSearch の結果件数修正
|
||||||
|
- [@AntoninPvr](https://github.com/AntoninPvr) - カードのサブタイトル位置修正
|
||||||
|
- [@illia-v](https://github.com/illia-v) - モバイル TOC と検索トグルの修正
|
||||||
|
- [@gallochri](https://github.com/gallochri) - イタリア語ローカリゼーション
|
||||||
|
- [@MatheusFlausino](https://github.com/MatheusFlausino) - LLMs.txt 除外
|
||||||
|
- [@daniseijo](https://github.com/daniseijo) - 最終更新者機能
|
||||||
|
- [@confusedkernel](https://github.com/confusedkernel) - アーカイブページ
|
||||||
|
- [@Fenyutanchan](https://github.com/Fenyutanchan) - Hugo v0.156.0 RSS author 互換性修正
|
||||||
|
|
||||||
|
さらに、継続的な貢献をいただいている [@KStocky](https://github.com/KStocky)、[@ldez](https://github.com/ldez)、[@kowyo](https://github.com/kowyo)、[@torbjornbp](https://github.com/torbjornbp)、[@yuri1969](https://github.com/yuri1969)、[@PrintN](https://github.com/PrintN) の各コントリビューターに感謝いたします。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**完全な変更履歴**: https://github.com/imfing/hextra/compare/v0.11.1...v0.12.0
|
||||||
217
docs/content/blog/v0.12.md
Normal file
217
docs/content/blog/v0.12.md
Normal file
@@ -0,0 +1,217 @@
|
|||||||
|
---
|
||||||
|
title: "Hextra v0.12"
|
||||||
|
date: 2026-02-20
|
||||||
|
authors:
|
||||||
|
- name: imfing
|
||||||
|
link: https://github.com/imfing
|
||||||
|
image: https://github.com/imfing.png
|
||||||
|
tags:
|
||||||
|
- Release
|
||||||
|
---
|
||||||
|
|
||||||
|
Hextra v0.12.0 delivers a rich set of new features including page context menus, image zoom, redesigned tabs, and more, plus comprehensive WCAG 2.2 AA accessibility improvements and numerous bug fixes.
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
## Upgrade Guide
|
||||||
|
|
||||||
|
No breaking changes are expected for most sites. Update using [Hugo Modules](https://gohugo.io/hugo-modules/use-modules/):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
hugo mod get -u github.com/imfing/hextra
|
||||||
|
```
|
||||||
|
|
||||||
|
## Highlights
|
||||||
|
|
||||||
|
- Page context menu for copying/viewing Markdown source
|
||||||
|
- Redesigned tabs shortcode with per-tab naming and icon support
|
||||||
|
- Click-to-zoom for Markdown images
|
||||||
|
- GoatCounter analytics support
|
||||||
|
- Option to hide the main sidebar on desktop
|
||||||
|
- Display last modified author via GitInfo
|
||||||
|
- Option to disable prev/next navigation
|
||||||
|
- Built-in archives page for chronological blog post listings
|
||||||
|
- Term glossary shortcode and layout
|
||||||
|
- Exclude pages/sections from llms.txt
|
||||||
|
- Mobile sidebar ordering and labels aligned with `menu.main`
|
||||||
|
- Stable content width with CSS variable override support
|
||||||
|
- Comprehensive WCAG 2.2 AA accessibility improvements
|
||||||
|
|
||||||
|
## New Features
|
||||||
|
|
||||||
|
### Page Context Menu
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
The page context menu provides a dropdown button that lets you copy the page content as Markdown or view the raw Markdown source. As more users feed documentation into generative AI tools, having quick access to clean Markdown is increasingly useful. Custom links with template variables (`{url}`, `{title}`, `{markdownUrl}`) let you wire up "Ask AI" shortcuts or other integrations directly in the menu.
|
||||||
|
|
||||||
|
To use the "View as Markdown" and `{markdownUrl}` features, enable the Markdown output format in your site configuration:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
outputs:
|
||||||
|
page: [html, markdown]
|
||||||
|
section: [html, rss, markdown]
|
||||||
|
```
|
||||||
|
|
||||||
|
Then configure the context menu:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
page:
|
||||||
|
contextMenu:
|
||||||
|
enable: true
|
||||||
|
links:
|
||||||
|
- name: "Ask AI"
|
||||||
|
url: "https://example.com?content={markdownUrl}"
|
||||||
|
icon: "sparkles"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Tabs Revamp and Icon Support
|
||||||
|
|
||||||
|
The [tabs shortcode]({{% relref "docs/guide/shortcodes/tabs" %}}) has been redesigned. Tab names can now be set directly on each `tab` shortcode, and an optional `icon` parameter displays an icon before the tab label. The previous syntax is still supported.
|
||||||
|
|
||||||
|
```md
|
||||||
|
{{</* tabs */>}}
|
||||||
|
{{</* tab name="Photos" icon="photograph" */>}}Manage and organize your photo library.{{</* /tab */>}}
|
||||||
|
{{</* tab name="Music" icon="music-note" */>}}Browse and play your favorite tracks.{{</* /tab */>}}
|
||||||
|
{{</* tab name="Videos" icon="film" */>}}Watch and stream video content.{{</* /tab */>}}
|
||||||
|
{{</* /tabs */>}}
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### Image Zoom
|
||||||
|
|
||||||
|
Enable click-to-zoom on Markdown images with a new configuration option, powered by [medium-zoom](https://github.com/francoischalifour/medium-zoom).
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
imageZoom: true
|
||||||
|
```
|
||||||
|
|
||||||
|
### GoatCounter Analytics
|
||||||
|
|
||||||
|
Built-in support for [GoatCounter](https://www.goatcounter.com/) analytics alongside existing Google Analytics, Umami, and Matomo integrations.
|
||||||
|
|
||||||
|
### Hide Main Sidebar
|
||||||
|
|
||||||
|
A new front matter parameter allows hiding the main sidebar on desktop to give content pages the full width.
|
||||||
|
|
||||||
|
```yaml {filename="content/my-page.md"}
|
||||||
|
---
|
||||||
|
title: My Page
|
||||||
|
sidebar:
|
||||||
|
hide: true
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### Last Modified Author
|
||||||
|
|
||||||
|
Display the last commit author alongside the "last updated" date using Hugo's GitInfo.
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
displayUpdatedAuthor: true
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### Disable Prev/Next Navigation
|
||||||
|
|
||||||
|
Disable the previous/next navigation buttons site-wide:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
page:
|
||||||
|
displayPagination: false
|
||||||
|
```
|
||||||
|
|
||||||
|
### LLMs.txt Exclusion
|
||||||
|
|
||||||
|
Exclude individual pages or entire sections from `llms.txt` output by setting `llms: false` in front matter.
|
||||||
|
|
||||||
|
```yaml {filename="content/private-page.md"}
|
||||||
|
---
|
||||||
|
title: "Private Page"
|
||||||
|
llms: false
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### Archives Page
|
||||||
|
|
||||||
|
A new built-in `archives` layout displays blog posts in a chronological timeline grouped by year, with tags shown inline after each post title.
|
||||||
|
|
||||||
|
```yaml {filename="content/archives/_index.md"}
|
||||||
|
---
|
||||||
|
title: Archives
|
||||||
|
layout: archives
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### Glossary
|
||||||
|
|
||||||
|
A site-wide terminology [glossary]({{% relref "docs/guide/shortcodes/term" %}}) with a dedicated listing page and a `term` shortcode for inline definitions.
|
||||||
|
|
||||||
|
## Accessibility
|
||||||
|
|
||||||
|
Comprehensive WCAG 2.2 AA accessibility improvements (#924):
|
||||||
|
|
||||||
|
- Skip-to-content link and ARIA landmark roles on all pages
|
||||||
|
- ARIA attributes on all interactive widgets (theme toggle, tabs, sidebar, filetree, dropdowns, search, menus)
|
||||||
|
- Keyboard navigation for tabs and theme toggle (arrow keys, Enter, Escape)
|
||||||
|
- `prefers-reduced-motion` support and global `focus-visible` styles
|
||||||
|
- 15 new i18n accessibility keys with full translations across all 21 locales
|
||||||
|
- Replaced all hardcoded English `aria-label` strings with i18n lookups
|
||||||
|
|
||||||
|
## Quality of Life
|
||||||
|
|
||||||
|
- Improved table readability styles
|
||||||
|
- Markdown attribute support for headers
|
||||||
|
- Better active link detection for multilingual section landing pages
|
||||||
|
- Card shortcode supports optional `alt` parameter for images
|
||||||
|
- Page bundle images supported in OpenGraph metadata
|
||||||
|
- Content width now stays consistent by default, with CSS variable override support for custom layouts
|
||||||
|
|
||||||
|
## Fixes
|
||||||
|
|
||||||
|
- Prevent `relref` double base-prefix in render-link
|
||||||
|
- Fix tabs rendering when nested inside steps
|
||||||
|
- Align mobile sidebar ordering and labels with `menu.main`
|
||||||
|
- Respect `search.enable` in the sidebar
|
||||||
|
- Respect the `toc` page parameter in mobile dropdown
|
||||||
|
- Enhance FlexSearch match highlighting and safe DOM manipulation
|
||||||
|
- Fix card subtitle positioning
|
||||||
|
- Handle leading slashes in OG image paths for subpath deployments
|
||||||
|
- Fix FlexSearch returning fewer than expected result pages
|
||||||
|
- Change default Umami analytics file to `script.js`
|
||||||
|
- Fix RSS author lookup for Hugo v0.156.0+ (`.Site.Params.Author`)
|
||||||
|
|
||||||
|
## Documentation & i18n
|
||||||
|
|
||||||
|
- Add Italian localization
|
||||||
|
- Link KaTeX documentation
|
||||||
|
- Update details shortcode docs to angle bracket syntax
|
||||||
|
|
||||||
|
## Contributors
|
||||||
|
|
||||||
|
This release was made possible by contributions from 11 new contributors:
|
||||||
|
|
||||||
|
- [@ghac101](https://github.com/ghac101) - Umami analytics fix, disable prev/next navigation
|
||||||
|
- [@pmarrapese](https://github.com/pmarrapese) - Markdown attribute support for headers
|
||||||
|
- [@Bubbler-4](https://github.com/Bubbler-4) - Details shortcode documentation
|
||||||
|
- [@bloovis](https://github.com/bloovis) - FlexSearch result count fix
|
||||||
|
- [@AntoninPvr](https://github.com/AntoninPvr) - Card subtitle positioning fix
|
||||||
|
- [@illia-v](https://github.com/illia-v) - Mobile TOC and search toggle fixes
|
||||||
|
- [@gallochri](https://github.com/gallochri) - Italian localization
|
||||||
|
- [@MatheusFlausino](https://github.com/MatheusFlausino) - LLMs.txt exclusion
|
||||||
|
- [@daniseijo](https://github.com/daniseijo) - Last modified author feature
|
||||||
|
- [@confusedkernel](https://github.com/confusedkernel) - Archives page
|
||||||
|
- [@Fenyutanchan](https://github.com/Fenyutanchan) - Hugo v0.156.0 RSS author compatibility fix
|
||||||
|
|
||||||
|
Additional thanks to returning contributors [@KStocky](https://github.com/KStocky), [@ldez](https://github.com/ldez), [@kowyo](https://github.com/kowyo), [@torbjornbp](https://github.com/torbjornbp), [@yuri1969](https://github.com/yuri1969), and [@PrintN](https://github.com/PrintN) for their continued contributions.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Full Changelog**: https://github.com/imfing/hextra/compare/v0.11.1...v0.12.0
|
||||||
217
docs/content/blog/v0.12.zh-cn.md
Normal file
217
docs/content/blog/v0.12.zh-cn.md
Normal file
@@ -0,0 +1,217 @@
|
|||||||
|
---
|
||||||
|
title: "Hextra v0.12"
|
||||||
|
date: 2026-02-20
|
||||||
|
authors:
|
||||||
|
- name: imfing
|
||||||
|
link: https://github.com/imfing
|
||||||
|
image: https://github.com/imfing.png
|
||||||
|
tags:
|
||||||
|
- Release
|
||||||
|
---
|
||||||
|
|
||||||
|
Hextra v0.12.0 带来了丰富的新功能,包括页面上下文菜单、图片缩放、全新设计的标签页等,同时提供全面的 WCAG 2.2 AA 无障碍改进和大量错误修复。
|
||||||
|
|
||||||
|
<!--more-->
|
||||||
|
|
||||||
|
## 升级指南
|
||||||
|
|
||||||
|
对大多数站点而言没有破坏性变更。使用 [Hugo Modules](https://gohugo.io/hugo-modules/use-modules/) 更新:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
hugo mod get -u github.com/imfing/hextra
|
||||||
|
```
|
||||||
|
|
||||||
|
## 亮点
|
||||||
|
|
||||||
|
- 页面上下文菜单,可复制/查看 Markdown 源码
|
||||||
|
- 全新设计的标签页短代码,支持单独命名和图标
|
||||||
|
- Markdown 图片点击缩放
|
||||||
|
- GoatCounter 分析支持
|
||||||
|
- 桌面端隐藏主侧边栏选项
|
||||||
|
- 通过 GitInfo 显示最后修改作者
|
||||||
|
- 禁用上一篇/下一篇导航选项
|
||||||
|
- 内置归档页面,按时间顺序列出博客文章
|
||||||
|
- 术语表短代码和布局
|
||||||
|
- 从 llms.txt 中排除页面/章节
|
||||||
|
- 移动端侧边栏排序和标签与 `menu.main` 对齐
|
||||||
|
- 通过 CSS 变量覆盖支持稳定的内容宽度
|
||||||
|
- 全面的 WCAG 2.2 AA 无障碍改进
|
||||||
|
|
||||||
|
## 新功能
|
||||||
|
|
||||||
|
### 页面上下文菜单
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
页面上下文菜单提供下拉按钮,可将页面内容复制为 Markdown 或查看原始 Markdown 源码。随着越来越多用户将文档输入生成式 AI 工具,快速获取干净的 Markdown 变得越来越有用。通过模板变量(`{url}`、`{title}`、`{markdownUrl}`)添加自定义链接,可以在菜单中直接集成“询问 AI”快捷方式或其他功能。
|
||||||
|
|
||||||
|
要使用“以 Markdown 查看”和 `{markdownUrl}` 功能,请在站点配置中启用 Markdown 输出格式:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
outputs:
|
||||||
|
page: [html, markdown]
|
||||||
|
section: [html, rss, markdown]
|
||||||
|
```
|
||||||
|
|
||||||
|
然后配置页面上下文菜单:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
page:
|
||||||
|
contextMenu:
|
||||||
|
enable: true
|
||||||
|
links:
|
||||||
|
- name: "Ask AI"
|
||||||
|
url: "https://example.com?content={markdownUrl}"
|
||||||
|
icon: "sparkles"
|
||||||
|
```
|
||||||
|
|
||||||
|
### 标签页重设计与图标支持
|
||||||
|
|
||||||
|
[标签页短代码]({{% relref "docs/guide/shortcodes/tabs" %}})经过重新设计。现在可以直接在每个 `tab` 短代码上设置标签名称,可选的 `icon` 参数可在标签文字前显示图标。之前的语法仍然支持。
|
||||||
|
|
||||||
|
```md
|
||||||
|
{{</* tabs */>}}
|
||||||
|
{{</* tab name="Photos" icon="photograph" */>}}管理和整理您的照片库。{{</* /tab */>}}
|
||||||
|
{{</* tab name="Music" icon="music-note" */>}}浏览和播放您喜爱的曲目。{{</* /tab */>}}
|
||||||
|
{{</* tab name="Videos" icon="film" */>}}观看和串流视频内容。{{</* /tab */>}}
|
||||||
|
{{</* /tabs */>}}
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 图片缩放
|
||||||
|
|
||||||
|
通过新的配置选项,启用 Markdown 图片的点击缩放功能,基于 [medium-zoom](https://github.com/francoischalifour/medium-zoom) 实现。
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
imageZoom: true
|
||||||
|
```
|
||||||
|
|
||||||
|
### GoatCounter 分析
|
||||||
|
|
||||||
|
在现有的 Google Analytics、Umami 和 Matomo 集成之外,新增 [GoatCounter](https://www.goatcounter.com/) 分析的内置支持。
|
||||||
|
|
||||||
|
### 隐藏主侧边栏
|
||||||
|
|
||||||
|
新的 Front Matter 参数允许在桌面端隐藏主侧边栏,使内容页面获得全宽显示。
|
||||||
|
|
||||||
|
```yaml {filename="content/my-page.md"}
|
||||||
|
---
|
||||||
|
title: My Page
|
||||||
|
sidebar:
|
||||||
|
hide: true
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### 最后修改作者
|
||||||
|
|
||||||
|
使用 Hugo 的 GitInfo 功能,在"最后更新"日期旁显示最后提交的作者。
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
displayUpdatedAuthor: true
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 禁用上一篇/下一篇导航
|
||||||
|
|
||||||
|
在站点范围内禁用上一篇/下一篇导航按钮:
|
||||||
|
|
||||||
|
```yaml {filename="hugo.yaml"}
|
||||||
|
params:
|
||||||
|
page:
|
||||||
|
displayPagination: false
|
||||||
|
```
|
||||||
|
|
||||||
|
### LLMs.txt 排除
|
||||||
|
|
||||||
|
通过在 Front Matter 中设置 `llms: false`,将单个页面或整个章节从 `llms.txt` 输出中排除。
|
||||||
|
|
||||||
|
```yaml {filename="content/private-page.md"}
|
||||||
|
---
|
||||||
|
title: "Private Page"
|
||||||
|
llms: false
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### 归档页面
|
||||||
|
|
||||||
|
新的内置 `archives` 布局按年份分组,以时间线形式展示博客文章,每篇文章标题后内联显示标签。
|
||||||
|
|
||||||
|
```yaml {filename="content/archives/_index.md"}
|
||||||
|
---
|
||||||
|
title: Archives
|
||||||
|
layout: archives
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### 术语表
|
||||||
|
|
||||||
|
站点级[术语表]({{% relref "docs/guide/shortcodes/term" %}}),提供专用列表页面和用于内联定义的 `term` 短代码。
|
||||||
|
|
||||||
|
## 无障碍
|
||||||
|
|
||||||
|
全面的 WCAG 2.2 AA 无障碍改进 (#924):
|
||||||
|
|
||||||
|
- 所有页面添加跳转到内容链接和 ARIA 地标角色
|
||||||
|
- 所有交互组件(主题切换、标签页、侧边栏、文件树、下拉菜单、搜索、菜单)添加 ARIA 属性
|
||||||
|
- 标签页和主题切换的键盘导航(方向键、Enter、Escape)
|
||||||
|
- 支持 `prefers-reduced-motion` 和全局 `focus-visible` 样式
|
||||||
|
- 15 个新的 i18n 无障碍键,在全部 21 个语言环境中提供完整翻译
|
||||||
|
- 将所有硬编码的英文 `aria-label` 字符串替换为 i18n 查找
|
||||||
|
|
||||||
|
## 使用体验优化
|
||||||
|
|
||||||
|
- 改进表格可读性样式
|
||||||
|
- 标题支持 Markdown 属性
|
||||||
|
- 多语言章节着陆页的活动链接检测改进
|
||||||
|
- 卡片短代码支持可选的图片 `alt` 参数
|
||||||
|
- OpenGraph 元数据支持页面资源包图片
|
||||||
|
- 内容宽度默认保持一致,支持通过 CSS 变量覆盖自定义布局
|
||||||
|
|
||||||
|
## 修复
|
||||||
|
|
||||||
|
- 修复 render-link 中 `relref` 基础前缀重复问题
|
||||||
|
- 修复嵌套在步骤中的标签页渲染
|
||||||
|
- 移动端侧边栏排序和标签与 `menu.main` 对齐
|
||||||
|
- 侧边栏中遵循 `search.enable` 设置
|
||||||
|
- 移动端下拉菜单中遵循 `toc` 页面参数
|
||||||
|
- 增强 FlexSearch 匹配高亮和安全的 DOM 操作
|
||||||
|
- 修复卡片副标题定位
|
||||||
|
- 处理子路径部署中 OG 图片路径的前导斜杠
|
||||||
|
- 修复 FlexSearch 返回结果页数少于预期的问题
|
||||||
|
- 将 Umami 分析的默认文件改为 `script.js`
|
||||||
|
- 修复 Hugo v0.156.0+ 的 RSS 作者查找 (`.Site.Params.Author`)
|
||||||
|
|
||||||
|
## 文档与 i18n
|
||||||
|
|
||||||
|
- 添加意大利语本地化
|
||||||
|
- 链接 KaTeX 文档
|
||||||
|
- 将 details 短代码文档更新为尖括号语法
|
||||||
|
|
||||||
|
## 贡献者
|
||||||
|
|
||||||
|
此版本由 11 位新贡献者共同参与完成:
|
||||||
|
|
||||||
|
- [@ghac101](https://github.com/ghac101) - Umami 分析修复、禁用上一篇/下一篇导航
|
||||||
|
- [@pmarrapese](https://github.com/pmarrapese) - 标题 Markdown 属性支持
|
||||||
|
- [@Bubbler-4](https://github.com/Bubbler-4) - details 短代码文档
|
||||||
|
- [@bloovis](https://github.com/bloovis) - FlexSearch 结果计数修复
|
||||||
|
- [@AntoninPvr](https://github.com/AntoninPvr) - 卡片副标题定位修复
|
||||||
|
- [@illia-v](https://github.com/illia-v) - 移动端目录和搜索切换修复
|
||||||
|
- [@gallochri](https://github.com/gallochri) - 意大利语本地化
|
||||||
|
- [@MatheusFlausino](https://github.com/MatheusFlausino) - LLMs.txt 排除
|
||||||
|
- [@daniseijo](https://github.com/daniseijo) - 最后修改作者功能
|
||||||
|
- [@confusedkernel](https://github.com/confusedkernel) - 归档页面
|
||||||
|
- [@Fenyutanchan](https://github.com/Fenyutanchan) - Hugo v0.156.0 RSS 作者兼容性修复
|
||||||
|
|
||||||
|
同时感谢回归贡献者 [@KStocky](https://github.com/KStocky)、[@ldez](https://github.com/ldez)、[@kowyo](https://github.com/kowyo)、[@torbjornbp](https://github.com/torbjornbp)、[@yuri1969](https://github.com/yuri1969) 和 [@PrintN](https://github.com/PrintN) 的持续贡献。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**完整变更日志**: https://github.com/imfing/hextra/compare/v0.11.1...v0.12.0
|
||||||
@@ -32,7 +32,7 @@ languages:
|
|||||||
params:
|
params:
|
||||||
banner:
|
banner:
|
||||||
message: |
|
message: |
|
||||||
هگزترا **v0.11** منتشر شد! 🎉 [تازهها را ببینید]({{% relref "blog/v0.11" %}})
|
هگزترا **v0.12** منتشر شد! 🎉 [تازهها را ببینید]({{% relref "blog/v0.12" %}})
|
||||||
page:
|
page:
|
||||||
contextMenu:
|
contextMenu:
|
||||||
links:
|
links:
|
||||||
@@ -47,7 +47,7 @@ languages:
|
|||||||
params:
|
params:
|
||||||
banner:
|
banner:
|
||||||
message: |
|
message: |
|
||||||
Hextra **v0.11** がリリースされました!🎉 [新着情報はこちら]({{% relref "blog/v0.11" %}})
|
Hextra **v0.12** がリリースされました!🎉 [新着情報はこちら]({{% relref "blog/v0.12" %}})
|
||||||
page:
|
page:
|
||||||
contextMenu:
|
contextMenu:
|
||||||
links:
|
links:
|
||||||
@@ -62,7 +62,7 @@ languages:
|
|||||||
params:
|
params:
|
||||||
banner:
|
banner:
|
||||||
message: |
|
message: |
|
||||||
Hextra **v0.11** 发布啦!🎉 查看[更新内容]({{% relref "blog/v0.11" %}})
|
Hextra **v0.12** 发布啦!🎉 查看[更新内容]({{% relref "blog/v0.12" %}})
|
||||||
page:
|
page:
|
||||||
contextMenu:
|
contextMenu:
|
||||||
links:
|
links:
|
||||||
@@ -137,9 +137,9 @@ menu:
|
|||||||
name: v0.10 ↗
|
name: v0.10 ↗
|
||||||
url: https://imfing.github.io/hextra/versions/v0.10/
|
url: https://imfing.github.io/hextra/versions/v0.10/
|
||||||
parent: versions
|
parent: versions
|
||||||
- identifier: v0.9
|
- identifier: v0.11
|
||||||
name: v0.9 ↗
|
name: v0.11 ↗
|
||||||
url: https://imfing.github.io/hextra/versions/v0.9/
|
url: https://imfing.github.io/hextra/versions/v0.11/
|
||||||
parent: versions
|
parent: versions
|
||||||
- identifier: about
|
- identifier: about
|
||||||
name: About
|
name: About
|
||||||
@@ -178,9 +178,9 @@ params:
|
|||||||
externalLinkDecoration: true
|
externalLinkDecoration: true
|
||||||
|
|
||||||
banner:
|
banner:
|
||||||
key: 'announcement-v0.11'
|
key: 'announcement-v0.12'
|
||||||
message: |
|
message: |
|
||||||
Hextra **v0.11** is here! 🎉 Discover [what's new]({{% relref "blog/v0.11" %}})
|
Hextra **v0.12** is here! 🎉 Discover [what's new]({{% relref "blog/v0.12" %}})
|
||||||
|
|
||||||
navbar:
|
navbar:
|
||||||
displayTitle: true
|
displayTitle: true
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ command = "cd docs && hugo --gc --minify --themesDir ../.. -b ${DEPLOY_PRIME_URL
|
|||||||
ignore = "false"
|
ignore = "false"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.147.7"
|
HUGO_VERSION = "0.156.0"
|
||||||
GO_VERSION = "1.24.3"
|
GO_VERSION = "1.26.0"
|
||||||
NODE_VERSION = "22.16.0"
|
NODE_VERSION = "24.13.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user