From c442552e39f89187c2af449b6853b07213900fe4 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 17 Jan 2023 18:30:46 +0100 Subject: [PATCH] better --- app/models/communication/website/page.rb | 4 ---- app/models/communication/website/page/with_type.rb | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb index 59132caf3..01499c8da 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 48178c26f..e8d5829bf 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 -- GitLab