diff options
author | Murali <murali@mmrath.com> | 2019-06-01 10:22:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 10:22:01 +0300 |
commit | ac4c4d34e360250ceca2eb70462afdc4df6919ad (patch) | |
tree | 08d05317232c2ee4ad738674470cca44a1f067f9 /layouts/partials/content/recent-posts.html | |
parent | 4a7fb5a8e2eb1bb2b1230917b17e92fa47a16a45 (diff) |
Medium clone (#23)
* Medium like look and feel
* discuss comment count
* minor changes
* misc changes
* layout changes for recents
* theme changes
* theme changes
* font size
* add headings
* font change
* minor change to title
* theme change
* remove justify
* font size normalization
* font again
* themeing changes
* upgrade bootstrap
Diffstat (limited to 'layouts/partials/content/recent-posts.html')
-rw-r--r-- | layouts/partials/content/recent-posts.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/partials/content/recent-posts.html b/layouts/partials/content/recent-posts.html new file mode 100644 index 0000000..0cc90e0 --- /dev/null +++ b/layouts/partials/content/recent-posts.html @@ -0,0 +1,15 @@ +<div class="container"> + <section> + <div class="section-title"> + <span>Posts</span> + </div> + <div class="row px-2"> + {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ range $paginator.Pages.ByDate.Reverse }} + {{ partial "post/card" . }} + {{ end }} + {{ partial "content/pagination" . }} + <!-- begin post --> + </div> + </section> +</div>
\ No newline at end of file |