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:
Ludo 2026-04-11 16:04:51 +02:00
parent 5fb4b1a6cf
commit e9895cf90d
Signed by: ludo
GPG key ID: F6E479DEFAB84D6E
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@
{{- with .TableOfContents -}}
<aside data-toc>
<h3>On this page</h3>
<h3>{{ i18n "onThisPage" | default "On this page" }}</h3>
{{ . }}
</aside>
{{- end -}}

View file

@ -86,7 +86,7 @@
{{- with .TableOfContents -}}
<aside data-toc>
<h3>On this page</h3>
<h3>{{ i18n "onThisPage" | default "On this page" }}</h3>
{{ . }}
</aside>
{{- end -}}