diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb index 59132caf39f7e8d12dece9d9cb4bcb9c98de0a93..01499c8da5d93e38fb7fd87600ed886ba953d0e4 100644 --- a/app/models/communication/website/page.rb +++ b/app/models/communication/website/page.rb @@ -82,10 +82,6 @@ class Communication::Website::Page < ApplicationRecord "admin/communication/websites/pages/static" end - def static_layout - nil - end - def git_dependencies(website) dependencies = [self] + website.menus + diff --git a/app/models/communication/website/page/with_type.rb b/app/models/communication/website/page/with_type.rb index 48178c26fd29a2474a5910535e909827d406cb69..e8d5829bf2eb690f8179e92edff97b761a59e16c 100644 --- a/app/models/communication/website/page/with_type.rb +++ b/app/models/communication/website/page/with_type.rb @@ -76,6 +76,11 @@ module Communication::Website::Page::WithType is_regular_page? end + # Some pages need a specific Hugo layout + def static_layout + nil + end + protected def default_parent