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

github.com/urjaacharya/redgood.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/section/pinnedPosts.html')
-rw-r--r--layouts/section/pinnedPosts.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/section/pinnedPosts.html b/layouts/section/pinnedPosts.html
new file mode 100644
index 0000000..df67ed7
--- /dev/null
+++ b/layouts/section/pinnedPosts.html
@@ -0,0 +1,9 @@
+{{ define "main" }}
+<h1>{{ .Title }}</h1>
+{{$paginator := .Paginate (where .Site.Pages "Params.pinned" true).ByDate.Reverse 5 }}
+{{ range $paginator.Pages }}
+<h3><a href="{{ .Permalink }}" aria-label="{{ .Title }}">{{ .Title }}</a></h3>
+<time>{{ dateFormat .Site.Params.theme.dateFormat .Date }}</time>
+<p>{{ .Summary | truncate 200 }}</p>
+{{ end }}
+{{ end }} \ No newline at end of file