Skip to content
Snippets Groups Projects
Commit 0feeb82a authored by pabois's avatar pabois
Browse files

home path

parent 2c56c253
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,9 @@ class Communication::Website::Page < ApplicationRecord
def git_path(website)
return unless published
if is_special_page? && SPECIAL_PAGES_WITH_GIT_SPECIAL_PATH.include?(kind)
if kind_home?
"content/_index.html"
elsif is_special_page? && SPECIAL_PAGES_WITH_GIT_SPECIAL_PATH.include?(kind)
"content/#{kind.split('_').last}/_index.html"
else
"content/pages/#{path}/_index.html"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment