2021-08-11 05:28:33 +00:00
|
|
|
<article>
|
2021-08-21 01:42:40 +00:00
|
|
|
<h3 class="flex items-center mt-6 text-xl font-semibold">
|
2021-08-22 06:58:25 +00:00
|
|
|
{{ with .Params.externalUrl }}
|
2021-08-20 07:02:08 +00:00
|
|
|
<a
|
|
|
|
class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral"
|
2021-08-22 06:58:25 +00:00
|
|
|
href="{{ . }}"
|
2021-08-20 07:02:08 +00:00
|
|
|
target="_blank"
|
|
|
|
rel="external"
|
2022-01-18 22:15:23 +00:00
|
|
|
>{{ $.Title | emojify }}</a
|
2021-08-11 05:28:33 +00:00
|
|
|
>
|
|
|
|
<span
|
2021-08-22 06:58:25 +00:00
|
|
|
class="-mt-2 text-xs cursor-default text-neutral-400 dark:text-neutral-500"
|
2021-08-17 06:48:08 +00:00
|
|
|
title="{{ i18n "list.externalurl_title" }}"
|
2021-08-11 05:28:33 +00:00
|
|
|
>
|
2021-08-22 06:58:25 +00:00
|
|
|
↗
|
|
|
|
</span>
|
2021-08-11 05:28:33 +00:00
|
|
|
{{ else }}
|
2021-08-20 03:56:45 +00:00
|
|
|
<a
|
2021-08-20 07:02:08 +00:00
|
|
|
class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral"
|
2021-08-25 23:44:41 +00:00
|
|
|
href="{{ .RelPermalink }}"
|
2022-01-18 22:15:23 +00:00
|
|
|
>{{ .Title | emojify }}</a
|
2021-08-20 03:56:45 +00:00
|
|
|
>
|
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-21 01:42:40 +00:00
|
|
|
<div class="ml-2">
|
2021-09-20 03:24:28 +00:00
|
|
|
{{ partial "badge.html" (i18n "article.draft" | emojify) }}
|
2021-08-21 01:42:40 +00:00
|
|
|
</div>
|
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>
|
2021-12-21 02:22:45 +00:00
|
|
|
<div class="text-sm text-neutral-500 dark:text-neutral-400">
|
2021-08-14 04:44:34 +00:00
|
|
|
{{ partial "article-meta.html" . }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</div>
|
2021-10-19 06:04:42 +00:00
|
|
|
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
|
2021-10-29 03:54:46 +00:00
|
|
|
<div class="py-1 prose dark:prose-light">
|
2021-10-19 06:04:42 +00:00
|
|
|
{{ .Summary | emojify }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</article>
|