mirror of https://github.com/jpanther/congo.git
42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
<article>
|
|
<h3 class="flex items-center mt-6 text-xl font-semibold">
|
|
{{ with .Params.externalUrl }}
|
|
<a
|
|
class="hover:underline hover:decoration-primary-500 hover:underline-offset-2 text-neutral-800 dark:text-neutral"
|
|
href="{{ . }}"
|
|
target="_blank"
|
|
rel="external"
|
|
>{{ $.Title }}</a
|
|
>
|
|
<span
|
|
class="-mt-2 text-xs cursor-default text-neutral-400 dark:text-neutral-500"
|
|
title="{{ i18n "list.externalurl_title" }}"
|
|
>
|
|
↗
|
|
</span>
|
|
{{ else }}
|
|
<a
|
|
class="hover:underline hover:decoration-primary-500 hover:underline-offset-2 text-neutral-800 dark:text-neutral"
|
|
href="{{ .RelPermalink }}"
|
|
>{{ .Title }}</a
|
|
>
|
|
{{ end }}
|
|
{{ if and .Draft .Site.Params.article.showDraftLabel }}
|
|
<div class="ml-2">
|
|
{{ partial "badge.html" (i18n "article.draft" | emojify) }}
|
|
</div>
|
|
{{ end }}
|
|
{{ if templates.Exists "partials/extend-article-link.html" }}
|
|
{{ partial "extend-article-link.html" . }}
|
|
{{ end }}
|
|
</h3>
|
|
<div class="text-sm text-neutral-500 dark:text-neutral-400">
|
|
{{ partial "article-meta.html" . }}
|
|
</div>
|
|
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
|
|
<div class="py-1 prose dark:prose-light">
|
|
{{ .Summary | emojify }}
|
|
</div>
|
|
{{ end }}
|
|
</article>
|