From e658235991d6e6e8d1b5201722054cb1f0d6c3fb Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Thu, 30 Aug 2018 09:24:07 -0500 Subject: 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/ --- layouts/_default/list.html | 4 ++-- layouts/_default/single.html | 2 +- 2 files changed, 3 insertions(+), 3 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 }} -

{{ .Title }}

+

{{ .Title | markdownify }}

{{ end }} {{ .Content }} @@ -10,7 +10,7 @@ {{ range (where .Data.Pages "Section" "!=" "") }}
  • {{ .Date.Format "2006/01/02" }} - {{ .Title }} + {{ .Title | markdownify }}
  • {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0fb2f8b..de3f121 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ partial "header.html" . }}
    -

    {{ .Title }}

    +

    {{ .Title | markdownify }}

    {{ with .Params.author }}

    {{ . }}

    {{ end }} {{ if (gt .Params.date 0) }}

    {{ .Date.Format "2006/01/02" }}

    {{ end }}
    -- cgit 1.4.1