Наводим марафет
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
No known key found for this signature in database
GPG key ID: EEFBB39006B28920
2 changed files with 6 additions and 3 deletions

View file

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

View file

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