Cacheable banner image
Torey Heinz
committed May 08, 2018
commit e9a9360d055b7c0920dc047bef51f2bac1da3ede
Showing 2
changed files with
2 additions
and 2 deletions
app/views/pages/layouts/application.liquid
+1
-1
| @@ | @@ -6,7 +6,7 @@ listed: false |
| published: false | |
| is_layout: true | |
| --- | |
| - | {% editable_file 'banner', block: 'main' %}{% endeditable_file %} |
| + | {% capture 'banner_file' %}{% editable_file 'banner', block: 'main' %}{% endeditable_file %}{% endcapture %} |
| <!doctype html> | |
| <html class="no-js" lang="en"> | |
| <head> | |
app/views/snippets/page_header.liquid
+1
-1
| @@ | @@ -1,4 +1,4 @@ |
| - | <header class="service" style="background-image: url({{ page.editable_elements.main.banner.url | resize: '1200x400#n', optimize: 90 }})"> |
| + | <header class="service" style="background-image: url({{ banner_file | resize: '1200x400#n', optimize: 90 }})"> |
| <div class="content row column text-center"> | |
| <h1>{{ page.title }}</h1> | |
| </div> | |