commit fe72d3bdcc6635ab356a015287cbcbf890850315 Author: hiro hiro@torproject.org Date: Wed Oct 21 20:36:14 2020 +0200
Use mobile image --- templates/header.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/templates/header.html b/templates/header.html index a2bad1b..27cda8c 100644 --- a/templates/header.html +++ b/templates/header.html @@ -15,7 +15,8 @@ <div class="row pb-5"> <h2 class="mx-auto display-3 text-white text-capitalize donate-title">{{ this.title }}</h2> <img src="{{ this.header_image | asseturl }}" class="donate-header-image" /> - {% set header_mobile = this.header_image + "-mobile" %} + {% set idx = this.header_image.index(".png") %} + {% set header_mobile = this.header_image[:idx] + "-mobile" + this.header_image[:idx] %} <img src="{{ header_mobile | asseturl }}" class="donate-header-image-mobile" /> </div> </div>
tor-commits@lists.torproject.org