Render markdown in titles.
This commit is contained in:
parent
173df09707
commit
7a53923973
|
@ -1,5 +1,5 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h2>{{ .Title }}</h2>
|
<h2>{{ .Title | markdownify }}</h2>
|
||||||
<div class="post-subscript">
|
<div class="post-subscript">
|
||||||
<p>Last updated on {{ .Date.Format "January 2, 2006" }}.</p>
|
<p>Last updated on {{ .Date.Format "January 2, 2006" }}.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<li>
|
<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-wordcount">{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p> -->
|
||||||
<p class="post-preview">{{ .Summary }}</p>
|
<p class="post-preview">{{ .Summary }}</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user