Update
This commit is contained in:
parent
b846d4f330
commit
8bc901d5b0
4 changed files with 21 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -18,6 +18,7 @@ tags
|
|||
.models/
|
||||
.flowblocks/
|
||||
temp/
|
||||
packages/
|
||||
|
||||
# ---> Windows
|
||||
# Windows thumbnail cache files
|
||||
|
|
|
@ -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
17
configs/image-resize.ini
Normal 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
|
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in a new issue