parent
c259a51818
commit
55c9054af8
2 changed files with 8 additions and 3 deletions
|
@ -3,12 +3,17 @@ baseurl = ""
|
|||
theme = "hugo-theme-terminal"
|
||||
paginate = 5
|
||||
DefaultContentLanguage = "ru"
|
||||
#defaultContentLanguageInSubdir = true
|
||||
# defaultContentLanguageInSubdir = true
|
||||
# enableGitInfo = true
|
||||
|
||||
# [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