π§±Sections Customization
Last updated
Last updated
The Reporter has 24 posts section variants for home page. Each section is pre-made partial, that can be inserted anywhere. They looks like this:
Each section has 2 options (props):
tagName
- required props in which you pass the name of the tag you would like to display in this section
themeSection
- optional props in which you can pass the additional color-variant for the section. If you don't pass it, section's background-color will be standard (the same as website's background-color). themeSection
has 2 options:
"light-gray"
"black"
{{>layout/featured-type1 tagName='news' }}
{{>layout/featured-type2 tagName='news' }}
{{>layout/featured-type3 tagName='news' }}
{{>layout/featured-type4 tagName='news' }}
{{>layout/featured-type5 tagName='news' }}
{{>layout/type1 tagName='news' }}
{{>layout/type2 tagName='news' }}
{{>layout/type3 tagName='news' }}
{{>layout/type4 tagName='news' }}
{{>layout/type5 tagName='news' }}
{{>layout/type6 tagName='news' }}
{{>layout/type7 tagName='news' }}
{{>layout/type8 tagName='news' }}
{{>layout/type9 tagName='news' }}
{{>layout/type10 tagName='news' }}
{{>layout/type11 tagName='news' }}
{{>layout/type12 tagName='news' }}
{{>layout/type13 tagName='news' }}
{{>layout/type14 tagName='news' }}
{{>layout/type15 tagName='news' }}
{{>layout/type16 tagName='news' }}
{{>layout/type17 tagName='news' }}
{{>layout/type18 tagName='news' }}
{{>layout/type19 tagName='news' }}
Open index.hbs
file, it looks like this:
Here you'll see commented examples of banners and layouts that The Reporter has
Now, select the section variant, change tagName props value to your preferred tag slug and insert it inside {{!-- INSERT LAYOUTS HERE --}} {{!-- ------------------- --}}
like this:
Add more sections that you want, the order in which you insert sections coincides with the order in which sections are displayed on the home page:
When you're done with the customization, we need to zip our theme to upload its customized version in Ghost. To do this, insert npm run zip
command into the terminal, that we already opened, and press Enter.
Then, check that Homepage tags setting inside Ghost Admin Panel has nothing inside it!
Now, find new the-reporter.zip
file and upload it in your Ghost Admin Panel.
Thats it! Now you have customized home page layout!