diff --git a/app/blog.hoon b/app/blog.hoon index a07fc76..093d789 100644 --- a/app/blog.hoon +++ b/app/blog.hoon @@ -61,8 +61,9 @@ ^- (unit (unit cage)) ?+ path ~ :: - [%x %md ^] ``blog+!>(q:(~(got by files) t.t.path)) - [%x %html ^] ``blog+!>(p:(~(got by files) t.t.path)) + [%x %md ^] ``blog+!>(q:(~(got by files) t.t.path)) + [%x %html ^] ``blog+!>(p:(~(got by files) t.t.path)) + [%x %draft @ ~] ``blog+!>((~(got by drafts) i.t.t.path)) :: [%x %pages ~] :^ ~ ~ %json diff --git a/mar/blog.hoon b/mar/blog.hoon index 1625d4f..6f57598 100644 --- a/mar/blog.hoon +++ b/mar/blog.hoon @@ -9,6 +9,8 @@ -- ++ grow |% + :: TODO you actually do want separate html and md marks + :: because md is /text/plain while html is text/html ++ mime [/text/plain (as-octs:mimes:html txt)] ++ json [%s txt] --