1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-23 12:52:31 +03:00
guide/templates/item-title.widget
2016-09-03 01:24:37 +03:00

27 lines
691 B
Plaintext

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
item.kind.hackageName (optional)
HTML
============================================================
{{# item.link }}
<a href="{{item.link}}" class="item-name">{{item.name}}</a>
{{/ item.link }}
{{^ item.link }}
<span class="item-name">{{item.name}}</span>
{{/ item.link }}
{{! if the item is on Hackage, let's provide a link }}
{{# item.kind.hackageName }}
(<a href="https://hackage.haskell.org/package/{{.}}">Hackage</a>)
{{/ item.kind.hackageName }}