mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-02 03:52:13 +03:00
Revert "Revert "add as-rss blog summarizer" - ford /_ loop"
This reverts commit 388923e03a19cdfe514fdc0c39d2c083c556cbfa.
This commit is contained in:
parent
0994ad1976
commit
f2e4aad4b3
32
as-rss/xml.hook
Normal file
32
as-rss/xml.hook
Normal file
@ -0,0 +1,32 @@
|
||||
:: 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
|
||||
/= gas /$ fuel
|
||||
/$ |=([bem=beam but=spur] [dez=(trip q.bem) tub=(flop (slag 2 but))])
|
||||
/= dat /^ tree-include
|
||||
/: /===/tree-gen /%
|
||||
/tree-include/
|
||||
@ -22,6 +22,7 @@
|
||||
;link(type "text/css", rel "stylesheet", href "/src/tree/css/main.css");
|
||||
;link(type "text/css", rel "stylesheet", href "/lib/syntax/codemirror.css");
|
||||
::;link(type "text/css", rel "stylesheet", href "http://localhost:8000/docs/pub/tree/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