Article TOC: Make TOC title translateable
This commit is contained in:
2
i18n/en.toml
Normal file
2
i18n/en.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
[Contents]
|
||||
other = "Contents"
|
||||
@@ -35,7 +35,7 @@
|
||||
{{ if not .Params.notoc }}
|
||||
{{ if .TableOfContents }}
|
||||
<div class="article-toc" {{ if .Site.Params.SmartToc }}style="display:none;"{{ end }}>
|
||||
<h3>Contents</h3>
|
||||
<h3>{{ T "Contents" }}</h3>
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user