2016-08-17 11:18:57 +03:00
|
|
|
Description
|
|
|
|
============================================================
|
|
|
|
|
|
|
|
Item title; used when rendering an item in HTML or for the feed. (Includes the Hackage link and so on.)
|
|
|
|
|
|
|
|
Required context:
|
|
|
|
|
|
|
|
* item.link
|
|
|
|
item.name
|
2017-09-10 15:37:48 +03:00
|
|
|
item.kind.contents (optional)
|
2016-08-17 11:18:57 +03:00
|
|
|
|
|
|
|
|
|
|
|
HTML
|
|
|
|
============================================================
|
|
|
|
|
|
|
|
{{# item.link }}
|
2016-09-01 22:49:35 +03:00
|
|
|
<a href="{{item.link}}" class="item-name">{{item.name}}</a>
|
2016-08-17 11:18:57 +03:00
|
|
|
{{/ item.link }}
|
|
|
|
{{^ item.link }}
|
2016-09-03 01:24:37 +03:00
|
|
|
<span class="item-name">{{item.name}}</span>
|
2016-08-17 11:18:57 +03:00
|
|
|
{{/ item.link }}
|
|
|
|
|
|
|
|
{{! if the item is on Hackage, let's provide a link }}
|
2017-09-10 15:37:48 +03:00
|
|
|
{{# item.kind.contents }}
|
2016-09-03 21:49:55 +03:00
|
|
|
{{ hackageLink = [|https://hackage.haskell.org/package/{{.}}|] }}
|
|
|
|
(<a href="{{hackageLink}}">Hackage</a>)
|
2017-09-10 15:37:48 +03:00
|
|
|
{{/ item.kind.contents }}
|