2021-08-11 05:28:33 +00:00
|
|
|
<article>
|
|
|
|
<h3 class="mt-6 text-xl font-semibold">
|
2021-08-16 05:09:21 +00:00
|
|
|
{{ if isset .Params "externalUrl" }}
|
|
|
|
<a class="hover:underline" href="{{ .Params.externalUrl }}" target="_blank" rel="external"
|
2021-08-11 05:28:33 +00:00
|
|
|
>{{ .Title }}</a
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="text-sm cursor-default"
|
|
|
|
style="vertical-align: super;"
|
2021-08-17 06:48:08 +00:00
|
|
|
title="{{ i18n "list.externalurl_title" }}"
|
2021-08-11 05:28:33 +00:00
|
|
|
>↗</span
|
|
|
|
>
|
|
|
|
{{ else }}
|
2021-08-20 03:56:45 +00:00
|
|
|
<a
|
|
|
|
class="hover:underline hover:underline-primary-500 hover:underline-offset-small"
|
|
|
|
href="{{ .Permalink }}"
|
|
|
|
>{{ .Title }}</a
|
|
|
|
>
|
2021-08-11 05:28:33 +00:00
|
|
|
{{ end }}
|
2021-08-16 00:14:51 +00:00
|
|
|
{{ if and .Draft .Site.Params.article.showDraftLabel }}
|
2021-08-16 05:09:21 +00:00
|
|
|
{{ partial "badge.html" "Draft" }}
|
2021-08-14 04:57:31 +00:00
|
|
|
{{ 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">
|
2021-08-14 04:44:34 +00:00
|
|
|
{{ partial "article-meta.html" . }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</div>
|
|
|
|
</article>
|