mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 22:55:03 +03:00
Revert "add as-rss blog summarizer" - ford /_ loop
This reverts commit 8f01d27496d4ee359f1305993244178ee377b796.
This commit is contained in:
parent
158d5996fe
commit
dea41c719a
@ -1,32 +0,0 @@
|
||||
:: Simple rss transformer
|
||||
::
|
||||
:::: /hook/xml/as-rss
|
||||
::
|
||||
/= sum /: /=== /% 2 /snip/
|
||||
/^ kid=(map span ,[marl marl])
|
||||
/: /=== /% 2 /_ /snip/
|
||||
/$ |=([bem=beam but=path] [our=p.bem dez=q.bem tub=(flop (slag 2 but))])
|
||||
::
|
||||
:::: ~fyr
|
||||
::
|
||||
:: Link from relative path
|
||||
=+ hok=`hart`[& ~ `/org/urbit/(rsh 3 1 (scot %p our))]
|
||||
=+ ref=|=(a=path (earn hok `[dez %tree (weld tub a)] ~))
|
||||
:: urb:front attrs confuse RSS validators, readers
|
||||
=+ no-meta=|=(a=marl `_a`?~(a ~ ?.(?=(%meta n.g.i.a) a $(a t.a))))
|
||||
::
|
||||
%- crip %- poxo
|
||||
;rss(version "2.0")
|
||||
;channel
|
||||
;title: *{hed.sum}
|
||||
;link: {(ref /)}
|
||||
;description: *{(no-meta tal.sum)}
|
||||
;* %+ turn (~(tap by kid))
|
||||
|= [nom=@t hed=marl tal=marl]
|
||||
;item
|
||||
;title: *{hed}
|
||||
;description: *{(no-meta tal)}
|
||||
;link: {(ref /[nom])}
|
||||
==
|
||||
==
|
||||
==
|
@ -1,7 +1,7 @@
|
||||
::
|
||||
/? 314
|
||||
/- tree-include
|
||||
/$ |=([bem=beam but=spur] [dez=(trip q.bem) tub=(flop (slag 2 but))])
|
||||
/= gas /$ fuel
|
||||
/= dat /^ tree-include
|
||||
/: /===/tree-gen /%
|
||||
/tree-include/
|
||||
@ -13,6 +13,7 @@
|
||||
!:
|
||||
::::
|
||||
::
|
||||
=+ dez=(trip &2:%)
|
||||
=+ kids-json=a/(turn (~(tap by kid)) |=([a=span *] (joba %name s/a)))
|
||||
;html
|
||||
;head
|
||||
@ -22,7 +23,6 @@
|
||||
;link(type "text/css", rel "stylesheet", href "/{dez}/pub/tree/src/css/main.css");
|
||||
;link(type "text/css", rel "stylesheet", href "/{dez}/lib/syntax/codemirror.css");
|
||||
::;link(type "text/css", rel "stylesheet", href "http://localhost:8000/docs/pub/tree/src/css/main.css");
|
||||
;link(type "application/rss+xml", rel "alternate", href "/{dez}/as-rss{(spud tub)}.xml");
|
||||
;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js");
|
||||
;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js");
|
||||
;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/react/0.12.2/react.js");
|
||||
|
Loading…
Reference in New Issue
Block a user