mirror of
https://github.com/tadad/blog.git
synced 2024-08-17 08:40:20 +03:00
fix: indent
This commit is contained in:
parent
a6b100bb99
commit
459e188965
@ -32,35 +32,35 @@
|
||||
dra=*(map path md=@t)
|
||||
thm=*(map @tas css=@t)
|
||||
=. imp
|
||||
|-
|
||||
?: =(all-files ~) imp
|
||||
%. (rear all-files)
|
||||
|= [=path content=*]
|
||||
%= ^$
|
||||
all-files (snip all-files)
|
||||
imp
|
||||
?+ (rear path) imp
|
||||
%md
|
||||
=+ content=(of-wain:format ((list cord) content))
|
||||
?: ?=(%published (snag 0 path))
|
||||
|-
|
||||
?: =(all-files ~) imp
|
||||
%. (rear all-files)
|
||||
|= [=path content=*]
|
||||
%= ^$
|
||||
all-files (snip all-files)
|
||||
imp
|
||||
?+ (rear path) imp
|
||||
%md
|
||||
=+ content=(of-wain:format ((list cord) content))
|
||||
?: ?=(%published (snag 0 path))
|
||||
=/ file-name (oust [0 2] (snip path))
|
||||
=/ file (~(gut by pub.imp) file-name [html='' md='' theme=%default])
|
||||
imp(pub (~(put by pub.imp) file-name file(md content)))
|
||||
=/ draft-name (oust [0 1] (snip path))
|
||||
=/ draft (~(gut by dra.imp) draft-name [md=''])
|
||||
imp(dra (~(put by dra.imp) draft-name draft(md content)))
|
||||
::
|
||||
%css
|
||||
=/ theme-name (@tas (rear (oust [0 1] (snip path))))
|
||||
=/ theme (~(gut by thm.imp) theme-name [css=''])
|
||||
imp(thm (~(put by thm.imp) theme-name theme(css (@t (@tas content)))))
|
||||
::
|
||||
%html
|
||||
=/ file-name (oust [0 2] (snip path))
|
||||
=/ file (~(gut by pub.imp) file-name [html='' md='' theme=%default])
|
||||
imp(pub (~(put by pub.imp) file-name file(md content)))
|
||||
=/ draft-name (oust [0 1] (snip path))
|
||||
=/ draft (~(gut by dra.imp) draft-name [md=''])
|
||||
imp(dra (~(put by dra.imp) draft-name draft(md content)))
|
||||
::
|
||||
%css
|
||||
=/ theme-name (@tas (rear (oust [0 1] (snip path))))
|
||||
=/ theme (~(gut by thm.imp) theme-name [css=''])
|
||||
imp(thm (~(put by thm.imp) theme-name theme(css (@t (@tas content)))))
|
||||
::
|
||||
%html
|
||||
=/ file-name (oust [0 2] (snip path))
|
||||
=/ file (~(gut by pub.imp) file-name [html='' md='' theme=%default])
|
||||
imp(pub (~(put by pub.imp) file-name file(html (@t (@tas content)))))
|
||||
imp(pub (~(put by pub.imp) file-name file(html (@t (@tas content)))))
|
||||
==
|
||||
==
|
||||
==
|
||||
=| cards=(list card:agent:gall)
|
||||
=/ thm-map ;; (map path @tas)
|
||||
.^(noun %cx /(scot %p our)/blog/(scot %da now)/import/published/meta/noun)
|
||||
|
Loading…
Reference in New Issue
Block a user