congo/layouts/partials/article-link.html

31 lines
1.0 KiB
HTML
Raw Normal View History

2021-08-11 05:28:33 +00:00
<article>
<h3 class="mt-6 text-xl font-semibold">
{{ if isset .Params "externalurl" }}
<a class="hover:underline" href="{{ .Params.externalurl }}" target="_blank" rel="external"
>{{ .Title }}</a
>
<span
class="text-sm cursor-default"
style="vertical-align: super;"
title="Link to external site"
>&#8599;</span
>
{{ else }}
<a class="hover:underline" href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
{{ if and .Draft .Site.Params.article.showDraftLabel }}
2021-08-14 04:57:31 +00:00
<span
class="ml-1 px-1 py-[2px] text-xs font-normal border rounded-md text-primary-700 dark:text-primary-400 border-primary-400 dark:border-primary-600 inline-block align-middle mb-1"
>
Draft
</span>
{{ end }}
2021-08-11 05:28:33 +00:00
{{ if templates.Exists "partials/extend-article-link.html" }}
{{ partial "extend-article-link.html" . }}
{{ end }}
</h3>
<div class="text-sm text-gray-400 dark:text-gray-500">
{{ partial "article-meta.html" . }}
2021-08-11 05:28:33 +00:00
</div>
</article>