fix: CSS task 12 — i18n-ready TOC heading in docs and notes layouts
Replace hardcoded "On this page" with Hugo i18n function (falls back to English if no i18n file exists). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5fb4b1a6cf
commit
e9895cf90d
2 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@
|
||||||
|
|
||||||
{{- with .TableOfContents -}}
|
{{- with .TableOfContents -}}
|
||||||
<aside data-toc>
|
<aside data-toc>
|
||||||
<h3>On this page</h3>
|
<h3>{{ i18n "onThisPage" | default "On this page" }}</h3>
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</aside>
|
</aside>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@
|
||||||
|
|
||||||
{{- with .TableOfContents -}}
|
{{- with .TableOfContents -}}
|
||||||
<aside data-toc>
|
<aside data-toc>
|
||||||
<h3>On this page</h3>
|
<h3>{{ i18n "onThisPage" | default "On this page" }}</h3>
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</aside>
|
</aside>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue