summaryrefslogtreecommitdiff
path: root/layouts/_shortcodes/link.html
blob: 9f7ea3e518548999e6ad5f91983a3ca3dff8334e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{ if eq (.Get "type") "podcast" }}
<a href="{{ .Get "link" }}" target="_blank" title="{{ .Get "title" }}"
    class="block w-[calc(25%_-_1rem)] rounded-md overflow-hidden box-border p-0"
    style="background-color: var(--block-background-color);
        color: var(--text-color);text-decoration: none;">
    <img src="{{ .Get "image" }}" class="block m-0!" alt="{{ .Get "title" }}">
</a>
{{ else }}
<a href="{{ .Get "link" }}" target="_blank"
    class="block w-[calc(50%_-_1rem)] rounded-4 box-border px-6"
    style="background-color: var(--block-background-color);
        color: var(--text-color);text-decoration: none;">
    <h3>{{ .Get "title" }}</h3>
</a>
{{ end }}