Наводим марафет
Some checks failed
/ site (push) Failing after 0s

This commit is contained in:
Артём 2024-07-20 14:10:00 +03:00
parent fa11bbb712
commit 835fa0ae0a
Signed by: SadmL
GPG key ID: EEFBB39006B28920
2 changed files with 6 additions and 3 deletions

View file

@ -3,14 +3,17 @@
<article> <article>
<header> <header>
<h1>{{ .Title }}</h1> <h1 class="post-title">
<a>{{ .Title | markdownify }}</a>
</h1>
</header> </header>
<aside> <aside>
{{ .TableOfContents }} {{ .TableOfContents }}
</aside> </aside>
{{ .Content }} {{ .Content | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor">&#8983;</a> ${3}` | safeHTML }}
</article> </article>
</main> </main>

View file

@ -1,5 +1,5 @@
{{ define "main" }} {{ define "main" }}
<h1>Posts for: #{{ .Title }}</h1> <h1>Статьи на тему #{{ .Title }}</h1>
{{ with .Content }} {{ with .Content }}
<div class="index-content"> <div class="index-content">
{{ . }} {{ . }}