Forráskód Böngészése

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 éve
szülő
commit
7175b0d21f
1 módosított fájl, 9 hozzáadás és 0 törlés
  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>