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

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMd. Emruz Hossain <hossainemruz@gmail.com>2020-07-22 01:14:08 +0300
committerGitHub <noreply@github.com>2020-07-22 01:14:08 +0300
commitfa4d47497403491cff184d226a5b2a07ad5dc081 (patch)
tree9dd7afb7c54f83533361282e4ecd011d59cbecf2 /layouts/partials/sections/recent-posts.html
parent647578e88be55c5cbb2eda157e17242f56ee5630 (diff)
Refactor sidebar logic + Add Table of Contents in reading page (#33)
* Refactor sidebar logic + fix responsiveness * Add TOC * Add Pagination * Update exampleSite * Update README.md
Diffstat (limited to 'layouts/partials/sections/recent-posts.html')
-rw-r--r--layouts/partials/sections/recent-posts.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/sections/recent-posts.html b/layouts/partials/sections/recent-posts.html
new file mode 100644
index 0000000..2d0cc87
--- /dev/null
+++ b/layouts/partials/sections/recent-posts.html
@@ -0,0 +1,12 @@
+<div class="container-fluid anchor pb-5 recent-posts-section" id="{{ replace (lower .section.name) " " "-" }}">
+ {{ if not (.section.hideTitle) }}
+ <h1 class="text-center">{{ .section.name }}</h1>
+ {{ end }}
+ <div class="container">
+ <div class="row" id="recent-post-cards">
+ {{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
+ {{ partial "cards/recent-post.html" . }}
+ {{ end }}
+ </div>
+ </div>
+</div>