edryd.org

some of my neat stuff
git clone git://edryd.org/edryd.org
Log | Files | Refs | LICENSE

commit 7fdbc024a45579b1c50ee094f11cbb19c1ffa97e
parent cce9f2197864fb0d6f3a27a0642040257dd7555e
Author: Ed van Bruggen <edvb@uw.edu>
Date:   Mon, 21 Jun 2021 21:41:26 -0700

Always show next and previous post buttons

Diffstat:
Mlayouts/_default/single.html | 40+++++++++++++++++++---------------------
1 file changed, 19 insertions(+), 21 deletions(-)

diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -35,28 +35,26 @@ </h5> {{ end }} - {{ if not (eq .Section "projects") }} - <div class="row text-center justify-content-between pt-4"> - <div class="col-md-4"> - {{ with .PrevInSection }} - <span class="block text-inc text-bold">Previous:</span> - <a class="btn btn-block text-med" href="{{ .Permalink }}"> - <i class="fa fa-arrow-left mr-1"></i> - {{ .Title | title }} - </a> - {{ end }} - </div> - <div class="col-md-4"> - {{ with .NextInSection }} - <span class="block text-inc text-bold">Next:</span> - <a class="btn btn-block text-med" href="{{ .Permalink }}"> - {{ .Title | title }} - <i class="fa fa-arrow-right ml-1"></i> - </a> - {{ end }} - </div> + <div class="row text-center justify-content-between pt-4"> + <div class="col-md-4"> + {{ with .PrevInSection }} + <span class="block text-inc text-bold">Previous:</span> + <a class="btn btn-block text-med" href="{{ .Permalink }}"> + <i class="fa fa-arrow-left mr-1"></i> + {{ .Title | title }} + </a> + {{ end }} </div> - {{ end }} + <div class="col-md-4"> + {{ with .NextInSection }} + <span class="block text-inc text-bold">Next:</span> + <a class="btn btn-block text-med" href="{{ .Permalink }}"> + {{ .Title | title }} + <i class="fa fa-arrow-right ml-1"></i> + </a> + {{ end }} + </div> + </div> </div> </section>