aboutsummaryrefslogtreecommitdiffstats
path: root/extra/layout.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-03-16 10:11:36 +0000
committers-ol <s-ol@users.noreply.github.com>2020-03-16 10:18:41 +0000
commitc0bf14a6eb97af216cb12b05686a7ad7be697eeb (patch)
treecc1f408d908e68ab2e04f3c8b84e0b48f6ffa69e /extra/layout.moon
parentswitch repo docs to github (diff)
downloadalive-c0bf14a6eb97af216cb12b05686a7ad7be697eeb.tar.gz
alive-c0bf14a6eb97af216cb12b05686a7ad7be697eeb.zip
doc styling, preparation for internal md documentation
Diffstat (limited to 'extra/layout.moon')
-rw-r--r--extra/layout.moon5
1 files changed, 3 insertions, 2 deletions
diff --git a/extra/layout.moon b/extra/layout.moon
index 70d9848..2741a70 100644
--- a/extra/layout.moon
+++ b/extra/layout.moon
@@ -64,8 +64,10 @@ aopts = (href, pat) ->
-- layout and write a doc page
-- opts:
+-- - preamble
-- - title
--- - body
+-- - style
+-- - body (str or table)
layout = (opts) ->
import header, footer, nav, div, span, b, code, a, article from require 'extra.dom'
@@ -103,7 +105,6 @@ layout = (opts) ->
<title>#{title}</title>
<link rel=\"stylesheet\" href=\"#{opts.style or abs 'style.css'}\">
- #{opts.css or ''}
</head>
<body>
#{head}