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