andersdamsgaard.com

my photography webpage
git clone git://src.adamsgaard.dk/andersdamsgaard.com # fast
git clone https://src.adamsgaard.dk/andersdamsgaard.com.git # slow
Log | Files | Refs | Submodules | README | LICENSE Back to index

commit 14f492833e6a951bc6ddb9c40033b2c71e6293e0
parent 14dcfd00a6589d594de7c5aaabb21c2024a38a1a
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  2 Nov 2018 16:21:48 +0100

Fix image scaling on small screens

Diffstat:
Mthemes/tale-mod/layouts/_default/single.html | 6++++--
Mthemes/tale-mod/layouts/_default/summary.html | 6+-----
2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/themes/tale-mod/layouts/_default/single.html b/themes/tale-mod/layouts/_default/single.html @@ -23,14 +23,16 @@ {{ $scratch.Set "counter" 0 }} {{ range . }} - {{ $scratch.Set "image" (.Resize "700x q90") }} + {{/* $scratch.Set "image" (.Resize "700x q90") */}} + {{ $scratch.Set "image" (.Fit "700x700 q90") }} {{ $image := $scratch.Get "image" }} {{/* $image.Sharpen 0.5 */}} <figure style="padding: 0.0rem; margin: 2rem 0; background-color: #ffffff"> <img src='{{ $image.RelPermalink }}' title='{{ $scratch.Get "basename" }} {{ printf "%02d" ( $scratch.Get "counter" ) }}' - width="{{ $image.Width }}" height="{{ $image.Height }}"> + > + <!-- width="{{ $image.Width }}" height="{{ $image.Height }}"> --> <!-- <figcaption> --> <!-- <small> --> <!-- <center> --> diff --git a/themes/tale-mod/layouts/_default/summary.html b/themes/tale-mod/layouts/_default/summary.html @@ -32,15 +32,11 @@ {{ end }} <!-- </div> --> <!-- <div class="w3-col s12 m8 l8"> --> - <!-- <p> --> - {{/* .Summary */}} <!-- </p> --> <!-- </div> --> <!-- </div> --> + <!-- <a href='{{ .Permalink }}'><nobr>Go to series →</nobr></a> --> - <!-- <footer> --> - <!-- <a href='{{ .Permalink }}'><nobr>See more →</nobr></a> --> - <!-- </footer> --> {{- else }} <br> {{ .Summary }}