forked from GitHub/dbot
Images. In *my* quote page? More likely than you think!
This commit is contained in:
parent
d60038a852
commit
b742e82f56
@ -2,6 +2,10 @@ div#quotelist
|
|||||||
-each quote in quotes
|
-each quote in quotes
|
||||||
-if(quote.match(locals.url_regex))
|
-if(quote.match(locals.url_regex))
|
||||||
div.quote
|
div.quote
|
||||||
a(href=quote)=quote
|
a(href=quote)
|
||||||
|
-if(quote.match(/(jpg|png|gif|jpeg|tiff)$/))
|
||||||
|
=img(src=quote)
|
||||||
|
-else
|
||||||
|
=quote
|
||||||
-else
|
-else
|
||||||
div.quote #{quote}
|
div.quote #{quote}
|
||||||
|
Loading…
Reference in New Issue
Block a user