2020-08-29 05:34:26 -04:00
|
|
|
<div class="article-details">
|
2020-10-09 13:26:28 -04:00
|
|
|
{{ if .Params.categories }}
|
2020-08-29 05:34:26 -04:00
|
|
|
<header class="article-category">
|
2020-10-09 13:26:28 -04:00
|
|
|
{{ range (.GetTerms "categories") }}
|
2020-12-22 13:43:14 -05:00
|
|
|
<a href="{{ .RelPermalink }}" {{ with .Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}>
|
|
|
|
{{ .LinkTitle }}
|
|
|
|
</a>
|
2020-08-29 05:34:26 -04:00
|
|
|
{{ end }}
|
|
|
|
</header>
|
|
|
|
{{ end }}
|
|
|
|
|
2022-03-03 17:36:17 -05:00
|
|
|
<div class="article-title-wrapper">
|
|
|
|
<h2 class="article-title">
|
|
|
|
<a href="{{ .RelPermalink }}">
|
|
|
|
{{- .Title -}}
|
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
{{ with .Params.description }}
|
|
|
|
<h3 class="article-subtitle">
|
|
|
|
{{ . }}
|
|
|
|
</h3>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2020-08-29 05:34:26 -04:00
|
|
|
|
2021-07-23 12:37:30 -04:00
|
|
|
{{ if or (not .Date.IsZero) (.Site.Params.article.readingTime) }}
|
2020-08-29 05:34:26 -04:00
|
|
|
<footer class="article-time">
|
2021-07-23 12:37:30 -04:00
|
|
|
{{ if not .Date.IsZero }}
|
|
|
|
<div>
|
|
|
|
{{ partial "helper/icon" "date" }}
|
|
|
|
<time class="article-time--published">
|
|
|
|
{{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
|
|
|
|
</time>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2022-10-22 05:48:00 -04:00
|
|
|
{{ if (.Params.readingTime | default (.Site.Params.article.readingTime)) }}
|
2021-07-23 12:37:30 -04:00
|
|
|
<div>
|
|
|
|
{{ partial "helper/icon" "clock" }}
|
|
|
|
<time class="article-time--reading">
|
|
|
|
{{ T "article.readingTime" .ReadingTime }}
|
|
|
|
</time>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2020-08-29 05:34:26 -04:00
|
|
|
</footer>
|
2021-07-23 12:37:30 -04:00
|
|
|
{{ end }}
|
2022-02-27 03:48:57 -05:00
|
|
|
|
|
|
|
{{ if .IsTranslated }}
|
|
|
|
<footer class="article-translations">
|
|
|
|
{{ partial "helper/icon" "language" }}
|
|
|
|
<div>
|
|
|
|
{{ range .Translations }}
|
|
|
|
<a href="{{ .Permalink }}" class="link">{{ .Language.LanguageName }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
{{ end }}
|
2022-10-22 05:48:00 -04:00
|
|
|
</div>
|