Template for refrence widget
authorJason Skomorowski <jason@indexdata.com>
Wed, 11 Jun 2014 00:52:53 +0000 (20:52 -0400)
committerJason Skomorowski <jason@indexdata.com>
Wed, 11 Jun 2014 00:52:53 +0000 (20:52 -0400)
src/mkws-widget-reference.templates/Reference.handlebars [new file with mode: 0644]

diff --git a/src/mkws-widget-reference.templates/Reference.handlebars b/src/mkws-widget-reference.templates/Reference.handlebars
new file mode 100644 (file)
index 0000000..62a9d2a
--- /dev/null
@@ -0,0 +1,17 @@
+{{!
+Paragraphs and images from a reference source.
+
+sentences - number of sentences to include
+paragraphs - number of paragraphs to include
+md-* - metadata fields passed through from backend
+}}
+<img src="{{md-thumburl}}" alt="{{md-title}}">
+<h1><a href="{{md-electronic-url}}">{{md-title}}</a></h1>
+{{#if md-title-remainder}}
+<b>{{md-title-remainder}}</b>
+{{/if}}
+{{#if md-title-responsibility}}
+<i>{{md-title-responsibility}}</i>
+{{/if}}
+{{{mkws-paragraphs md-description paragraphs sentences}}}
+<p class="mkwsCredit">Wikipedia</p>