This commit is contained in:
parent
11225cb81b
commit
d07212a8b2
2 changed files with 20 additions and 5 deletions
|
@ -10,10 +10,6 @@
|
|||
<h1 class="post-title">
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
</h1>
|
||||
|
||||
<aside>
|
||||
{{ .TableOfContents }}
|
||||
</aside>
|
||||
|
||||
<div class="post-meta">
|
||||
{{- if .Date -}}
|
||||
|
|
|
@ -7,9 +7,28 @@
|
|||
{{ .Title }}
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<div class="post-meta">
|
||||
{{- if .Date -}}
|
||||
<time class="post-date">
|
||||
{{ .Date | time.Format ":date_medium" }}
|
||||
</time>
|
||||
{{- end -}}
|
||||
{{- with .Params.Author -}}
|
||||
<span class="post-author">{{ . }}</span>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{{ .Description | markdownify }}
|
||||
</div>
|
||||
|
||||
{{ partial "cover.html" . }}
|
||||
|
||||
{{ .TableOfContents }}
|
||||
<aside>
|
||||
{{ .TableOfContents }}
|
||||
</aside>
|
||||
|
||||
|
||||
{{ .Content | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor">⌗</a> ${3}` | safeHTML }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue