parent
c259a51818
commit
55c9054af8
2 changed files with 8 additions and 3 deletions
|
@ -9,6 +9,11 @@ DefaultContentLanguage = "ru"
|
|||
# [frontmatter]
|
||||
# lastmod = ['lastmod', ':git', 'date', 'publishDate']
|
||||
|
||||
[markup]
|
||||
[markup.tableOfContents]
|
||||
endLevel = 4
|
||||
ordered = false
|
||||
startLevel = 1
|
||||
|
||||
[params]
|
||||
# dir name of your main content (default is `content/posts`).
|
||||
|
@ -57,7 +62,7 @@ DefaultContentLanguage = "ru"
|
|||
|
||||
# set title for the table of contents
|
||||
# can be overridden in a page's front-matter
|
||||
# TocTitle = "Table of Contents" # default
|
||||
# TocTitle = "Содержание" # default
|
||||
|
||||
[languages.ru]
|
||||
languageCode = 'ru'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}
|
||||
{{- if and (ge .Level 2) (le .Level 4) }}{{" " -}}
|
||||
{{- if and (ge .Level 1) (le .Level 4) }}{{" " -}}
|
||||
<a class="header-link" href="#{{ .Anchor | safeURL }}"><span>⌗</span></a>
|
||||
{{- end -}}
|
||||
</h{{ .Level }}>
|
Loading…
Reference in a new issue