Переглянути джерело

More Posts button (#680)

* Add More Posts button

* Update recent-posts.html

* Update recent-posts.html

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
Bernat Borràs Civil 2 роки тому
батько
коміт
7175b0d21f
1 змінених файлів з 9 додано та 0 видалено
  1. 9 0
      layouts/partials/sections/recent-posts.html

+ 9 - 0
layouts/partials/sections/recent-posts.html

@@ -24,4 +24,13 @@
       {{ end }}
     </div>
   </div>
+  {{ if (.section.showMoreButton) }}
+  <div class="container" style="
+  display: flex;
+  align-items: center;
+  justify-content: center;">
+    <a href="/posts/" title="Show More" class="float-right btn btn-outline-info btn-sm" >
+    {{ i18n "show_more"}}</a>
+  </div>
+  {{ end }}
 </div>