parent
fa11bbb712
commit
835fa0ae0a
2 changed files with 6 additions and 3 deletions
|
@ -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">⌗</a> ${3}` | safeHTML }}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -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">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
|
|
Loading…
Reference in a new issue