blog/themes/farallon/layouts/shortcodes/link.html

12 lines
528 B
HTML
Raw Normal View History

2024-05-06 12:00:46 +08:00
{{$URL := .Get 0}}
{{ with .Site.GetPage $URL }}
<div class="graph--mixtapeEmbed">
<a href="{{ .Permalink }}" target="_blank" class="mixtapeContent"><span
class="markup--strong markup--mixtapeEmbed-strong">{{ .Title
}}</span><em class="markup--em markup--mixtapeEmbed-em">{{ .Summary | truncate 60 }}</em></a>
{{ if .Params.cover }}
<a href="{{ .Permalink }}" target="_blank" class="mixtapeImage"
style="background-image:url('{{ .Params.cover }}')"></a>
{{ end }}
</div>
{{ end }}