mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
Merge branch 'master' into canary
This commit is contained in:
commit
88ebb17a9d
3 changed files with 8 additions and 1 deletions
|
@ -232,6 +232,10 @@
|
|||
width: var(--card-padding);
|
||||
text-align: center;
|
||||
color: var(--accent-color);
|
||||
|
||||
&:before {
|
||||
content: "#";
|
||||
}
|
||||
}
|
||||
|
||||
&:hover,
|
||||
|
|
|
@ -32,6 +32,7 @@ sidebar:
|
|||
avatar: img/avatar.png
|
||||
|
||||
article:
|
||||
headingAnchor: false
|
||||
# Enable LaTeX math syntax for all pages by default
|
||||
math: false
|
||||
readingTime: true
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<h{{ .Level }} id="{{ .Anchor }}">
|
||||
<a href="#{{ .Anchor }}" class="header-anchor">#</a>
|
||||
{{- if site.Params.Article.HeadingAnchor -}}
|
||||
<a href="#{{ .Anchor }}" class="header-anchor"></a>
|
||||
{{- end -}}
|
||||
{{ .Text | safeHTML }}
|
||||
</h{{ .Level }}>
|
Loading…
Reference in a new issue