mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-30 04:02:46 +01:00
65 lines
2.4 KiB
HTML
65 lines
2.4 KiB
HTML
<article class="single summary" itemscope itemtype="http://schema.org/Article">
|
|
{{- /* Featured image */ -}}
|
|
{{- with .Params.featuredImage -}}
|
|
<div class="featured-image-preview">
|
|
{{- $image := $.Params.featuredImagePreview | default . -}}
|
|
{{- partial "function/image.html" (dict "src" $image "alt" "featured image") -}}
|
|
</div>
|
|
{{- end -}}
|
|
|
|
{{- /* Title */ -}}
|
|
<h1 class="single-title" itemprop="name headline">
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
</h1>
|
|
|
|
{{- /* Meta */ -}}
|
|
<div class="post-meta">
|
|
{{- $author := .Params.author | default .Site.Author.name -}}
|
|
{{- $authorLink := .Params.authorLink | default .Site.Author.link | default (relLangURL "/") -}}
|
|
<span class="post-author">
|
|
<a class="author" href="{{ $authorLink }}" rel="author" target="_blank">
|
|
<i class="fas fa-user-circle fa-fw"></i>{{ $author }}
|
|
</a>
|
|
</span>
|
|
|
|
{{- $publish_date := .PublishDate.Format (.Site.Params.dateFormatToUse | default "2006-01-02") -}}
|
|
<span class="post-publish">
|
|
{{ T "publish" }} <time datetime={{ $publish_date }}>{{ $publish_date }}</time>
|
|
</span>
|
|
|
|
{{- with .Params.categories -}}
|
|
<span class="post-category">
|
|
{{- T "included" -}}
|
|
{{- range . -}}
|
|
|
|
<span>
|
|
<a href="{{ `/categories/` | relLangURL }}{{ urlize .}}">
|
|
<i class="far fa-folder fa-fw"></i>{{ . | humanize }}
|
|
</a>
|
|
</span>
|
|
{{- end -}}
|
|
</span>
|
|
{{- end -}}
|
|
</div>
|
|
|
|
{{- /* Summary content */ -}}
|
|
<div class="content">
|
|
{{- partial "function/content.html" .Summary -}}
|
|
</div>
|
|
|
|
{{- /* Footer */ -}}
|
|
<div class="post-footer">
|
|
<a href="{{ .Permalink }}">{{ T "readMore" }}</a>
|
|
{{- with .Params.tags -}}
|
|
<div class="post-tags">
|
|
{{- range . -}}
|
|
<span>
|
|
<a href="{{ `/tags/` | relLangURL }}{{ urlize .}}">
|
|
<i class="fas fa-tag fa-fw"></i>{{ . }}
|
|
</a>
|
|
</span>
|
|
{{- end -}}
|
|
</div>
|
|
{{- end -}}
|
|
</div>
|
|
</article>
|