Closed lcummings12 closed 1 month ago
:mag: Preview in Federalist
@nick-mon1
I integrated page-header
into the _default
, communities
, events
, news
, guides
, and resources
templates.
As we discussed last week, removed the redundant *-header components that were needless since they aren't reused, and added the logic directly back into the templates. I kept the guide-header
partial as its used in multiple templates and was originally there.
I updated table with the most recent version of the pages. Thanks!
Summary
Modularize header files in a way similar to the current configuration of
guide-header.html
, implement aheader-stack.html
component, which consists of the title/deck/kicker.Preview
Link to Preview
Solution
The solution implements the
header-stack.html
partial, which handle two new parametersappend_community
andhide_kicker
. Theappend_community
parameter appends "Community" to the title, and thehide_kicker
parameter conditionally hides the kicker text. The community page template was updated to utilize these parameters. These parameters are needed to assure the community template can maintain the unique aspects of its appearance while still adhering to the modular setup of the components.header-stack
renders the common elements of the headers, the title, kicker, and deck. Parameters for hiding specific aspects of the component are included to allow for a flexible setup.The
resources-header
andcommunities-header
are modeled after theguides-header
setup which separates the header from thesingle.html
file. Changes consist solely of refactoring and have no change in appearance.How To Test
Before opening this PR, make sure you’ve done whichever of these applies to you:
main