diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index 38f260c..8be390b 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -232,6 +232,10 @@ width: var(--card-padding); text-align: center; color: var(--accent-color); + + &:before { + content: "#"; + } } &:hover, diff --git a/config/_default/params.yaml b/config/_default/params.yaml index 706c52d..1cae320 100644 --- a/config/_default/params.yaml +++ b/config/_default/params.yaml @@ -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 diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index af79692..f79308a 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -1,4 +1,6 @@ - # + {{- if site.Params.Article.HeadingAnchor -}} + + {{- end -}} {{ .Text | safeHTML }} \ No newline at end of file