This commit is contained in:
L3D 2021-08-31 22:50:02 +02:00
parent b846d4f330
commit 8bc901d5b0
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 21 additions and 1 deletions

1
.gitignore vendored
View file

@ -18,6 +18,7 @@ tags
.models/
.flowblocks/
temp/
packages/
# ---> Windows
# Windows thumbnail cache files

View file

@ -4,6 +4,7 @@ url = https://c3woc.de/
url_style = absolute
excluded_assets = *.scss
upscale = false
output_path = temp/builds/c3woc.de/
[servers.c3woc]
name = c3woc
@ -26,3 +27,4 @@ url_prefix = /en/
[packages]
lektor-scss = 1.4.1
lektor-image-resize = 0.2.0

17
configs/image-resize.ini Normal file
View file

@ -0,0 +1,17 @@
[tiny]
max_width = 128
[small]
max_width = 420
use_guetzli = True
[medium]
max_width = 960
use_guetzli = True
[large]
max_width = 1600
use_guetzli = True
[woowee]
max_width = 2160

View file

@ -4,7 +4,7 @@
{%- if this.box_image is defined and this.box_image != '' -%}
{%- set image = record.attachments.images.get(this.box_image) -%}
{{- '\n ' -}} <img class="content__inner_third_image content__half_box_image" src="{{ image|url }}"
{{- '\n ' -}} width="{{ image.width / 2 }}"
{{- '\n ' -}} width="{{ image.width / 2 | int }}"
{%- if this.image_alt is defined and this.image_alt != "" -%}
{{- ' ' -}}
alt="{{ this.image_alt }}"