Make $titles clickable
parent
5c8982c50c
commit
a16a9182ff
|
@ -21,7 +21,7 @@ M: word article-content
|
||||||
: $title ( article -- )
|
: $title ( article -- )
|
||||||
title-style [
|
title-style [
|
||||||
title-style [
|
title-style [
|
||||||
dup [ article-title write ] ($block) $where
|
dup [ 1array $link ] ($block) $where
|
||||||
] with-nesting
|
] with-nesting
|
||||||
] with-style terpri ;
|
] with-style terpri ;
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,11 @@ M: link article-title link-name article-title ;
|
||||||
M: link article-content link-name article-content ;
|
M: link article-content link-name article-content ;
|
||||||
M: link summary "Link: " swap link-name unparse append ;
|
M: link summary "Link: " swap link-name unparse append ;
|
||||||
|
|
||||||
: >link ( obj -- obj ) dup word? [ <link> ] unless ;
|
GENERIC: >link ( obj -- obj )
|
||||||
|
|
||||||
|
M: word >link ;
|
||||||
|
M: link >link ;
|
||||||
|
M: object >link <link> ;
|
||||||
|
|
||||||
: $link ( article -- )
|
: $link ( article -- )
|
||||||
first link-style [
|
first link-style [
|
||||||
|
|
Loading…
Reference in New Issue