Browse Source

Render markdown in titles.

master
Danila Fedorin 2 months ago
parent
commit
7a53923973
  1. 2
      layouts/modules/single.html
  2. 2
      layouts/partials/post.html

2
layouts/modules/single.html

@ -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>

2
layouts/partials/post.html

@ -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>
Loading…
Cancel
Save