Skip to content

Commit

Permalink
markdownify post titles since some people use backticks in post title…
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 30, 2018
1 parent 9c9c90e commit e658235
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ partial "header.html" . }}

{{if not .IsHome }}
<h1>{{ .Title }}</h1>
<h1>{{ .Title | markdownify }}</h1>
{{ end }}

{{ .Content }}
Expand All @@ -10,7 +10,7 @@ <h1>{{ .Title }}</h1>
{{ range (where .Data.Pages "Section" "!=" "") }}
<li>
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
<a href="{{ .URL }}">{{ .Title }}</a>
<a href="{{ .URL }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ partial "header.html" . }}
<div class="article-meta">
<h1><span class="title">{{ .Title }}</span></h1>
<h1><span class="title">{{ .Title | markdownify }}</span></h1>
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
{{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
</div>
Expand Down

0 comments on commit e658235

Please sign in to comment.