From 310f6ce5e70d36a6cd352b6fdeef36550faf8145 Mon Sep 17 00:00:00 2001 From: dachus Date: Thu, 16 Feb 2023 14:18:48 -0600 Subject: [PATCH] draft scry added --- app/blog.hoon | 5 +++-- mar/blog.hoon | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) 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] --