Skip to content

Commit 1c9bc65

Browse files
committed
Set contact and about page seed data to create rich text page blocks
1 parent 21ac7f0 commit 1c9bc65

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

app/builders/better_together/navigation_builder.rb

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,17 @@ def build_footer # rubocop:todo Metrics/MethodLength, Metrics/AbcSize
126126
published_at: Time.zone.now,
127127
privacy: 'public',
128128
protected: true,
129-
content_en: <<-HTML
130-
<h1 class="page-header mb-3">Contact Us</h1>
131-
<p>This is a default contact page for your platform. Be sure to write a real one!</p>
132-
HTML
129+
page_blocks_attributes: [
130+
{
131+
block_attributes: {
132+
type: 'BetterTogether::Content::RichText',
133+
content_en: <<-HTML
134+
<h1 class="page-header mb-3">Contact Us</h1>
135+
<p>This is a default contact page for your platform. Be sure to write a real one!</p>
136+
HTML
137+
}
138+
}
139+
]
133140
}
134141
]
135142
)
@@ -159,10 +166,17 @@ def build_header # rubocop:todo Metrics/MethodLength
159166
published_at: Time.zone.now,
160167
privacy: 'public',
161168
protected: true,
162-
content_en: <<-HTML
163-
<h1 class="page-header mb-3">About</h1>
164-
<p>This is a default about page. Be sure to write a real one!</p>
165-
HTML
169+
page_blocks_attributes: [
170+
{
171+
block_attributes: {
172+
type: 'BetterTogether::Content::RichText',
173+
content_en: <<-HTML
174+
<h1 class="page-header mb-3">About</h1>
175+
<p>This is a default about page. Be sure to write a real one!</p>
176+
HTML
177+
}
178+
}
179+
]
166180
}
167181
]
168182
)

0 commit comments

Comments
 (0)