about summary refs log tree commit diff stats
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorYihui Xie2018-08-30 09:24:07 -0500
committerYihui Xie2018-08-30 09:24:07 -0500
commite658235991d6e6e8d1b5201722054cb1f0d6c3fb (patch)
tree87e78707d5cd9cca309b5ccdfb721b796213b5d4 /layouts/_default/list.html
parent9c9c90e5ab0374627c3cbee1ac0eae3c2b4cc939 (diff)
downloadhugo-xmin-e658235991d6e6e8d1b5201722054cb1f0d6c3fb.tar.lz
hugo-xmin-e658235991d6e6e8d1b5201722054cb1f0d6c3fb.tar.zst
hugo-xmin-e658235991d6e6e8d1b5201722054cb1f0d6c3fb.zip
markdownify post titles since some people use backticks in post titles, and MathJax will treat content in backticks as inline math
e.g.

@jystatistics: https://jystatistics.rbind.io/post/2018/06/28/study-ggplot2/

@tcgriffith: https://tc.rbind.io/post/2018/01/25/apply-and-do-call/
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 41d9d89..70ab4e8 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,7 +1,7 @@
 {{ partial "header.html" . }}
 
 {{if not .IsHome }}
-<h1>{{ .Title }}</h1>
+<h1>{{ .Title | markdownify }}</h1>
 {{ end }}
 
 {{ .Content }}
@@ -10,7 +10,7 @@
   {{ 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>