projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a1673ee
)
support multiple images, part of WRIS-10
author
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 21 Jan 2015 17:06:29 +0000
(17:06 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Wed, 21 Jan 2015 17:06:29 +0000
(17:06 +0000)
src/templates/wikipedia.handlebars
patch
|
blob
|
history
diff --git
a/src/templates/wikipedia.handlebars
b/src/templates/wikipedia.handlebars
index
9447fb5
..
b2a92cb
100644
(file)
--- a/
src/templates/wikipedia.handlebars
+++ b/
src/templates/wikipedia.handlebars
@@
-5,7
+5,20
@@
sentences - number of sentences to include
paragraphs - number of paragraphs to include
md-* - metadata fields passed through from backend
}}
paragraphs - number of paragraphs to include
md-* - metadata fields passed through from backend
}}
-<img src="{{md-thumburl}}" alt="{{md-title}}">
+
+<!--
+display only the first image
+
+{{#if md-thumburl}}
+<img src="{{md-thumburl.[0]}}" alt="{{md-title}}">
+{{/if}}
+-->
+
+<!-- multiple images -->
+{{#each md-thumburl}}
+ <img src="{{this}}" alt="{{md-title}}">
+{{/each}}
+
<h1><a href="{{md-electronic-url}}">{{md-title}}</a></h1>
{{#if md-title-remainder}}
<b>{{md-title-remainder}}</b>
<h1><a href="{{md-electronic-url}}">{{md-title}}</a></h1>
{{#if md-title-remainder}}
<b>{{md-title-remainder}}</b>