Moves editable_file out of snippet
Torey Heinz
committed May 08, 2018
commit 25564deb5e28653e29d5d245405691c9caf02599
Showing 2
changed files with
2 additions
and 1 deletions
app/views/pages/layouts/application.liquid
+1
-0
| @@ | @@ -6,6 +6,7 @@ listed: false |
| published: false | |
| is_layout: true | |
| --- | |
| + | {% editable_file 'banner', block: 'main' %}{% endeditable_file %} |
| <!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({% editable_file 'banner', resize: '1200x400#n', optimize: 90 %}{% endeditable_file %})"> |
| + | <header class="service" style="background-image: url({{ page.editable_elements.main.banner.url | resize: '1200x400#n', optimize: 90 }})"> |
| <div class="content row column text-center"> | |
| <h1>{{ page.title }}</h1> | |
| </div> | |