Merge branch 'master' into canary

This commit is contained in:
Jimmy Cai
2024-05-02 23:36:21 +02:00
3 changed files with 8 additions and 1 deletions
+4
View File
@@ -232,6 +232,10 @@
width: var(--card-padding); width: var(--card-padding);
text-align: center; text-align: center;
color: var(--accent-color); color: var(--accent-color);
&:before {
content: "#";
}
} }
&:hover, &:hover,
+1
View File
@@ -32,6 +32,7 @@ sidebar:
avatar: img/avatar.png avatar: img/avatar.png
article: article:
headingAnchor: false
# Enable LaTeX math syntax for all pages by default # Enable LaTeX math syntax for all pages by default
math: false math: false
readingTime: true readingTime: true
+3 -1
View File
@@ -1,4 +1,6 @@
<h{{ .Level }} id="{{ .Anchor }}"> <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 }} {{ .Text | safeHTML }}
</h{{ .Level }}> </h{{ .Level }}>