summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/link.html
blob: 1b9c4f79198959205621400bce5720dc89e60b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<a href="{{.Get "link" }}" target="_blank"
    class="{{ if (.Get "type") }}{{ .Get "type" }}-link{{ else }}blog-link{{ end }}">
    {{ if and (isset .Params "image") .Params.image }}
    <div class="link-image">
        <img src="{{ .Params.image }}" class="no-fancybox" alt="{{ .Params.title }}" />
    </div>
    {{ end }}
    {{ if ne (.Get "type") "podcast" }}
    <div class="link-content">
        <h4>{{.Get "title" }}</h4>
        <p>{{.Get "description" }}</p>
    </div>
    {{ end }}
</a>