WIP
This commit is contained in:
parent
dc0ac71f98
commit
c3f0a5b791
10
site.moon
10
site.moon
@ -20,8 +20,12 @@ require(rend).cmd = "pandoc --mathjax >"
|
||||
-- Replace the default markdown renderer with our custom renderer
|
||||
-- TODO we shouldn't remove it because it is still searched for in some places
|
||||
-- example https://github.com/leafo/sitegen/blob/ac9b7c199ed7adb32064b056a438cbaed8c71d23/sitegen/renderers/html.moon#L53
|
||||
Site.default_renderers = for v in *Site.default_renderers
|
||||
if v\find "markdown" then rend else v
|
||||
-- Site.default_renderers = for v in *Site.default_renderers
|
||||
-- if v\find "markdown" then rend else v
|
||||
|
||||
table.insert Site.default_renderers, 1, "renderers.markdown"
|
||||
|
||||
p Site.default_renderers
|
||||
|
||||
-- Remove "pygments" plugin because it conflicts with pandoc syntax highlighting
|
||||
Site.default_plugins = for v in *Site.default_plugins
|
||||
@ -94,7 +98,7 @@ sitegen.create =>
|
||||
|
||||
html.build ->
|
||||
import section, h3, time, a from tag
|
||||
md = @site\get_renderer "renderers.markdown"
|
||||
md = @site\get_renderer "sitegen.renderers.markdown"
|
||||
|
||||
return for post in *posts
|
||||
{:title, :blurb, :id, publish_date: {iso, pretty}} = post.meta
|
||||
|
Loading…
x
Reference in New Issue
Block a user