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