Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mismith0227/hugo_theme_pickles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/li.html')
-rwxr-xr-xlayouts/_default/li.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/layouts/_default/li.html b/layouts/_default/li.html
new file mode 100755
index 0000000..de23d6c
--- /dev/null
+++ b/layouts/_default/li.html
@@ -0,0 +1,23 @@
+<article class="c-article p-list-article">
+ <header>
+ <h2 class="c-title c-article__title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
+ <p class="c-article__meta">
+ {{ partial "timestamp.html" . }}
+ {{ if not (.Param "hideModifiedDate") }}
+ | {{ partial "modified_date.html" . }}
+ {{ end }}
+ {{ if not (.Param "hideWordCount") }}
+ | {{ partial "word_count.html" . }}
+ {{ end }}
+ {{ if not (.Param "hideReadingTime") }}
+ | {{ partial "reading_time.html" . }}
+ {{ end }}
+ </p>
+ </header>
+ <div class="c-article__summary">
+ {{ .Summary | plainify | safeHTML }}
+ </div>
+ {{ if .Truncated }}
+ <a href="{{ .Permalink }}" class="c-article__btn p-list-article__btn">Read more</a>
+ {{ end }}
+</article>