zmin/exampleSite/config.toml
Thomas M Ward 38d4939eec
Allow inline html in _index.Rmarkdown (#42)
Starting with hugo 0.60, the default markdown renderer changed from
blackdown to goldmark. By default, goldmark does not render raw HTML so
specifying raw html in _index.Rmarkdown (in this instance to customize
an image's display) created an html file with <!-- raw HTML omitted -->
rather than the correct html to display the image.

You can make goldmark include raw html by switching it to `unsafe` mode
in the `config.toml` which this commit does.

As an FYI, An alternative is to mv `_index.Rmarkdown` to `_index.Rmd`
which will switch the markdown engine from goldmark to pandoc which
still renders raw html.
2020-07-24 14:45:45 -05:00

42 lines
968 B
TOML

baseurl = "/"
languageCode = "en-us"
title = "A minimal Hugo website"
theme = "hugo-xmin"
googleAnalytics = ""
disqusShortname = ""
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
footnotereturnlinkcontents = "↩"
[permalinks]
post = "/post/:year/:month/:day/:slug/"
note = "/note/:year/:month/:day/:slug/"
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "About"
url = "/about/"
weight = 2
[[menu.main]]
name = "Categories"
url = "/categories/"
weight = 3
[[menu.main]]
name = "Tags"
url = "/tags/"
weight = 4
[[menu.main]]
name = "Subscribe"
url = "/index.xml"
[params]
description = "A website built through Hugo and blogdown."
footer = "&copy; [Yihui Xie](https://yihui.name) 2017 -- 2019 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)"
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true