aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-02-04 15:31:35 +0000
committers-ol <s-ol@users.noreply.github.com>2020-02-04 15:31:35 +0000
commitc186f9101182c4ac1314e745ee33ccef32702ddd (patch)
tree454e12c37e625c44447ae829242ca47e918c3266
parentfix blog (diff)
downloadmmm-c186f9101182c4ac1314e745ee33ccef32702ddd.tar.gz
mmm-c186f9101182c4ac1314e745ee33ccef32702ddd.zip
small fixes
-rw-r--r--build/server.moon2
-rw-r--r--mmm/mmmfs/plugins/code.moon7
-rw-r--r--scss/_content.scss1
-rw-r--r--scss/_reset.scss2
4 files changed, 10 insertions, 2 deletions
diff --git a/build/server.moon b/build/server.moon
index 7c0ff46..1bf2228 100644
--- a/build/server.moon
+++ b/build/server.moon
@@ -174,7 +174,7 @@ class Server
path_facet or= path
path, facet = path_facet\match '(.*)/([^/]*)'
- facet = if facet == '' and type == '' and method ~= 'GET' and method ~= 'HEAD'
+ facet = if facet == '' and (not type or type == '') and method ~= 'GET' and method ~= 'HEAD'
nil
else
type or= 'text/html+interactive'
diff --git a/mmm/mmmfs/plugins/code.moon b/mmm/mmmfs/plugins/code.moon
index 9cea0a3..85d0184 100644
--- a/mmm/mmmfs/plugins/code.moon
+++ b/mmm/mmmfs/plugins/code.moon
@@ -78,5 +78,12 @@ class Editor
mode = @from\match @convert.inp
Editor value, mode, fileder, key
}
+ {
+ inp: 'URL.*'
+ out: 'mmm/dom'
+ cost: 0
+ transform: (value, fileder, key) =>
+ Editor value, nil, fileder, key
+ }
}
}
diff --git a/scss/_content.scss b/scss/_content.scss
index f9a00dc..937b02b 100644
--- a/scss/_content.scss
+++ b/scss/_content.scss
@@ -69,6 +69,7 @@
.markdown > ul {
margin-block-end: 1em;
+ text-align: none;
}
.embed {
diff --git a/scss/_reset.scss b/scss/_reset.scss
index 77990fd..d157fcf 100644
--- a/scss/_reset.scss
+++ b/scss/_reset.scss
@@ -29,7 +29,7 @@ code { font-size: 0.8em; }
b, strong { font-weight: bold; }
em, i { font-style: italic; }
hr { clear: both; }
-ul { margin: 0; }
+ul { margin: 0; padding-inline-start: 2em; }
sup, sub {
vertical-align: baseline;