diff --git a/exampleSite/content/posts/theme-demo.md b/exampleSite/content/posts/theme-demo.md index f11b5b7..39c8c69 100644 --- a/exampleSite/content/posts/theme-demo.md +++ b/exampleSite/content/posts/theme-demo.md @@ -1,6 +1,7 @@ +++ date = "2017-01-08" title = "Theme Demo" +math = "true" +++ @@ -26,6 +27,12 @@ _This is italic text_ ~~Deleted text~~ +This is text with inline math $\sum_{n=1}^{\infty} 2^{-n} = 1$ and with math blocks: + +$$ +\sum_{n=1}^{\infty} 2^{-n} = 1 +$$ + | Heading | Another heading | | :----: | :-------------: | | text | text | diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 5e8e4dd..b32ccd9 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -3,6 +3,31 @@

{{ .Title }}

{{ .Date.Format "January 2, 2006" }}

+ + {{ if eq .Params.math "true" }} + + {{ end }}
{{ .Content }}