parent
fa11bbb712
commit
835fa0ae0a
2 changed files with 6 additions and 3 deletions
|
@ -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">⌗</a> ${3}` | safeHTML }}
|
||||
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ define "main" }}
|
||||
<h1>Posts for: #{{ .Title }}</h1>
|
||||
<h1>Статьи на тему #{{ .Title }}</h1>
|
||||
{{ with .Content }}
|
||||
<div class="index-content">
|
||||
{{ . }}
|
||||
|
|
Loading…
Reference in a new issue