fix(docs): correct imageZoom and {markdown_url} config in v0.12 release blog

- Use nested imageZoom.enable: true instead of scalar imageZoom: true
- Use {markdown_url} (snake_case) placeholder matching the actual template-url
  utility key, not {markdownUrl} (camelCase) which would silently not substitute
This commit is contained in:
Xin
2026-02-20 23:35:44 +00:00
parent 8c059f7776
commit 2e709bf92d
4 changed files with 20 additions and 16 deletions

View File

@@ -43,9 +43,9 @@ hugo mod get -u github.com/imfing/hextra
![コンテキストメニュー](https://github.com/user-attachments/assets/0b55bee9-6f4d-4e1d-9461-60c40208cb6c)
ページコンテキストメニューはドロップダウンボタンを提供し、ページの内容を Markdown としてコピーしたり、生の Markdown ソースを表示できます。ドキュメントを生成 AI ツールに取り込むユーザーが増える中、クリーンな Markdown への素早いアクセスはますます有用です。テンプレート変数(`{url}``{title}``{markdownUrl}`を使ったカスタムリンクにより、「AI に質問」ショートカットなどのインテグレーションをメニューに直接組み込めます。
ページコンテキストメニューはドロップダウンボタンを提供し、ページの内容を Markdown としてコピーしたり、生の Markdown ソースを表示できます。ドキュメントを生成 AI ツールに取り込むユーザーが増える中、クリーンな Markdown への素早いアクセスはますます有用です。テンプレート変数(`{url}``{title}``{markdown_url}`を使ったカスタムリンクにより、「AI に質問」ショートカットなどのインテグレーションをメニューに直接組み込めます。
「Markdown として表示」および `{markdownUrl}` 機能を利用するには、サイト設定で Markdown 出力フォーマットを有効にしてください:
「Markdown として表示」および `{markdown_url}` 機能を利用するには、サイト設定で Markdown 出力フォーマットを有効にしてください:
```yaml {filename="hugo.yaml"}
outputs:
@@ -62,7 +62,7 @@ params:
enable: true
links:
- name: "Ask AI"
url: "https://example.com?content={markdownUrl}"
url: "https://example.com?content={markdown_url}"
icon: "sparkles"
```
@@ -86,7 +86,8 @@ params:
```yaml {filename="hugo.yaml"}
params:
imageZoom: true
imageZoom:
enable: true
```
### GoatCounter アナリティクス