Compare commits

...

4 Commits

Author SHA1 Message Date
b524043127
layouts/partials/featured.html: Orientation 6
All checks were successful
continuous-integration/drone/push Build is passing
This handles images that have EXIF orientation "RightTop" aka 6,
which we need to rotate 270 degrees clockwise to make normal.

See: https://www.impulseadventure.com/photo/exif-orientation.html
2020-12-28 12:34:05 +02:00
0f275cbee6
assets/css/style.min.css: Regenerate static assets 2020-12-28 12:32:18 +02:00
66a3f02d69
source/scss/bootstrap.scss: Remove unused imports
This reduces the size of the shipped style.min.css by ~55KiB. I can
probably remove more once I look closer at what we are using.
2020-12-28 12:31:20 +02:00
f5b4eb4499
source/scss/bootstrap.scss: Fix header version
Not critical, but can be annoying when you are looking at the CSS
and it shows an older version than you expect.
2020-12-28 12:12:39 +02:00
3 changed files with 24 additions and 20 deletions

File diff suppressed because one or more lines are too long

View File

@ -38,6 +38,10 @@
{{/* Rotate image before cropping because Hugo's "Smart" cropping crops differently if we do it at the same time as .Fill with a rotation) and use 2x dimensions to keep the thumbnail crisp */}} {{/* Rotate image before cropping because Hugo's "Smart" cropping crops differently if we do it at the same time as .Fill with a rotation) and use 2x dimensions to keep the thumbnail crisp */}}
{{ $RotatedImage := $image.Resize "480x600 r90" }} {{ $RotatedImage := $image.Resize "480x600 r90" }}
<img src={{ ($RotatedImage.Fill "480x600").RelPermalink }} width="240" height="300" /> <img src={{ ($RotatedImage.Fill "480x600").RelPermalink }} width="240" height="300" />
{{ else if eq $orientation 6 }}
{{ $RotatedImage := $image.Resize "480x600 r270" }}
<img src={{ ($RotatedImage.Fill "480x600").RelPermalink }} width="240" height="300" />
{{ else }} {{ else }}
<img src={{ ($image.Fill "480x600").RelPermalink }} width="240" height="300" /> <img src={{ ($image.Fill "480x600").RelPermalink }} width="240" height="300" />
{{ end }} {{ end }}

View File

@ -1,5 +1,5 @@
/*! /*!
* Bootstrap v5.0.0-alpha3 (https://getbootstrap.com/) * Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors * Copyright 2011-2020 The Bootstrap Authors
* Copyright 2011-2020 Twitter, Inc. * Copyright 2011-2020 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
@ -20,28 +20,28 @@
@import "../../node_modules/bootstrap/scss/containers"; @import "../../node_modules/bootstrap/scss/containers";
@import "../../node_modules/bootstrap/scss/grid"; @import "../../node_modules/bootstrap/scss/grid";
@import "../../node_modules/bootstrap/scss/tables"; @import "../../node_modules/bootstrap/scss/tables";
@import "../../node_modules/bootstrap/scss/forms"; //@import "../../node_modules/bootstrap/scss/forms";
@import "../../node_modules/bootstrap/scss/buttons"; @import "../../node_modules/bootstrap/scss/buttons";
@import "../../node_modules/bootstrap/scss/transitions"; //@import "../../node_modules/bootstrap/scss/transitions";
@import "../../node_modules/bootstrap/scss/dropdown"; //@import "../../node_modules/bootstrap/scss/dropdown";
@import "../../node_modules/bootstrap/scss/button-group"; //@import "../../node_modules/bootstrap/scss/button-group";
@import "../../node_modules/bootstrap/scss/nav"; @import "../../node_modules/bootstrap/scss/nav";
@import "../../node_modules/bootstrap/scss/navbar"; @import "../../node_modules/bootstrap/scss/navbar";
@import "../../node_modules/bootstrap/scss/card"; @import "../../node_modules/bootstrap/scss/card";
@import "../../node_modules/bootstrap/scss/accordion"; //@import "../../node_modules/bootstrap/scss/accordion";
@import "../../node_modules/bootstrap/scss/breadcrumb"; //@import "../../node_modules/bootstrap/scss/breadcrumb";
@import "../../node_modules/bootstrap/scss/pagination"; @import "../../node_modules/bootstrap/scss/pagination";
@import "../../node_modules/bootstrap/scss/badge"; //@import "../../node_modules/bootstrap/scss/badge";
@import "../../node_modules/bootstrap/scss/alert"; //@import "../../node_modules/bootstrap/scss/alert";
@import "../../node_modules/bootstrap/scss/progress"; //@import "../../node_modules/bootstrap/scss/progress";
@import "../../node_modules/bootstrap/scss/list-group"; //@import "../../node_modules/bootstrap/scss/list-group";
@import "../../node_modules/bootstrap/scss/close"; //@import "../../node_modules/bootstrap/scss/close";
@import "../../node_modules/bootstrap/scss/toasts"; //@import "../../node_modules/bootstrap/scss/toasts";
@import "../../node_modules/bootstrap/scss/modal"; //@import "../../node_modules/bootstrap/scss/modal";
@import "../../node_modules/bootstrap/scss/tooltip"; //@import "../../node_modules/bootstrap/scss/tooltip";
@import "../../node_modules/bootstrap/scss/popover"; //@import "../../node_modules/bootstrap/scss/popover";
@import "../../node_modules/bootstrap/scss/carousel"; //@import "../../node_modules/bootstrap/scss/carousel";
@import "../../node_modules/bootstrap/scss/spinners"; //@import "../../node_modules/bootstrap/scss/spinners";
// Helpers // Helpers
@import "../../node_modules/bootstrap/scss/helpers"; @import "../../node_modules/bootstrap/scss/helpers";