Remove footer from fullscreen product layout

Tom Rutgers committed Aug 30, 2018
commit 4cead143a9d1e36826e56e8fe66aeb42eef726c4
Showing 2 changed files with 15 additions and 1 deletions
config.rb +1 -1
@@ @@ -44,7 +44,7 @@ data.products.each do |product|
# product is an array: [filename, {data}]
proxy "/product/#{product[1][:title].parameterize}/index.html", "product.html",
locals: {product: product[1]},
- layout: 'layout',
+ layout: 'product-detail',
ignore: true
end
source/layouts/product-detail.slim +14 -0
@@ @@ -0,0 +1,14 @@
+ doctype html
+ html
+ head
+ = partial 'layouts/meta'
+ = stylesheet_link_tag "all"
+
+ body
+ = partial 'partials/shared/header-primary'
+
+ main.main-content
+
+ = yield
+
+ = javascript_include_tag 'main', async: true
\ No newline at end of file