mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-12 11:22:27 +00:00
port to gitlab.
This commit is contained in:
29
themes/custom/layouts/post/summary.html
Normal file
29
themes/custom/layouts/post/summary.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<article class="post">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title"><a class="post-link" href="{{ .URL }}">{{ .Title }}</a></h1>
|
||||
<div class="post-meta">
|
||||
<span class="post-time"> <i class="fa fa-calendar" aria-hidden="true"></i> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>
|
||||
{{ with .Params.categories -}}
|
||||
| <i class="fa fa-folder" aria-hidden="true"></i>
|
||||
<div class="post-category">
|
||||
{{ range . }}
|
||||
<a href="{{ "categories" | relLangURL }}/{{ . | urlize }}/"> {{ . }} </a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{ if .Site.Params.moreMeta -}}
|
||||
<span class="more-meta"> | <i class="fa fa-book" aria-hidden="true"></i> {{ T "wordCount" .WordCount }} </span>
|
||||
<span class="more-meta"> | <i class="fa fa-clock-o" aria-hidden="true"></i> {{ T "readingTime" .ReadingTime }} </span>
|
||||
{{- end }}
|
||||
</div>
|
||||
</header>
|
||||
<!-- Content -->
|
||||
<div class="post-content">
|
||||
<div class="post-summary">
|
||||
{{ .Summary }}
|
||||
</div>
|
||||
<div class="read-more">
|
||||
<a href="{{ .URL }}" class="read-more-link">{{ T "readMore" }}...</a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
Reference in New Issue
Block a user