You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.4 KiB
78 lines
2.4 KiB
<div class="article-details">
|
|
{{ if .Params.categories }}
|
|
<header class="article-category">
|
|
{{ range (.GetTerms "categories") }}
|
|
<a href="{{ .RelPermalink }}" class="{{printf "%s%s" "article-category--" .LinkTitle }}" {{ with .Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}>
|
|
{{ .LinkTitle }}
|
|
</a>
|
|
{{ end }}
|
|
</header>
|
|
{{ end }}
|
|
{{ if .Params.author }}
|
|
<p class="article-author">Écrit par
|
|
<a href="{{ .RelPermalink }}">
|
|
{{- .Params.Author -}}
|
|
</a>
|
|
</p>
|
|
{{ else }}
|
|
|
|
<p class="article-author">Auteur Anonyme</p>
|
|
|
|
{{ end }}
|
|
<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>
|
|
|
|
|
|
{{ if or (not .Date.IsZero) (.Site.Params.article.readingTime) }}
|
|
<footer class="article-time">
|
|
{{ if not .Date.IsZero }}
|
|
<div>
|
|
{{ partial "helper/icon" "date" }}
|
|
création
|
|
<time class="article-time--published">
|
|
{{- time.Format "2 Jan, 2006" .Params.Date -}}
|
|
</time>
|
|
</div>
|
|
{{ if .Params.Update }}
|
|
<div>
|
|
{{ partial "helper/icon" "edit" }}
|
|
mise à jour
|
|
<time class="article-time--published">
|
|
{{- time.Format "2 Jan, 2006" .Params.Update -}}
|
|
</time>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ if .Site.Params.article.readingTime }}
|
|
<div>
|
|
{{ partial "helper/icon" "clock" }}
|
|
<time class="article-time--reading">
|
|
{{ T "article.readingTime" .ReadingTime }}
|
|
</time>
|
|
</div>
|
|
{{ end }}
|
|
</footer>
|
|
{{ end }}
|
|
|
|
{{ 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 }}
|
|
</div> |