summaryrefslogtreecommitdiff
path: root/desk/web/manx.hoon
blob: 53e1d0826a7f11751cf77c52525cb00a1c41f51c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/-  tp=trill-post
/+  plib=trill-utils
/=  post-show  /web/blog/post
/=  index  /web/index
|%
++  post-manx
|=  [p=post:tp feed=gfeed:tp who=@p]  ^-  manx
  =/  fn  (node-to-full:plib p feed)
~(html post-show [fn who])
++  layout
|=  [body=manx =bowl:gall]  ^-  manx
  (index ~[body] bowl)
++  post
|=  [p=post:tp feed=gfeed:tp =bowl:gall]  ^-  manx
%+  index  ~[(post-manx p feed src.bowl)]  bowl
--