Render markdown in titles.

This commit is contained in:
Danila Fedorin 2021-04-25 19:43:26 -07:00
parent 173df09707
commit 7a53923973
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<h2>{{ .Title | markdownify }}</h2>
<div class="post-subscript">
<p>Last updated on {{ .Date.Format "January 2, 2006" }}.</p>
</div>

View File

@ -1,5 +1,5 @@
<li>
<a href="{{ .Permalink }}" class="post-title">{{ if .Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ .Title }}</a>
<a href="{{ .Permalink }}" class="post-title">{{ if .Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ .Title | markdownify }}</a>
<!-- <p class="post-wordcount">{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p> -->
<p class="post-preview">{{ .Summary }}</p>
</li>