Adding a Custom Hero Section
By default, Aspect theme does not display a hero section on the homepage. However, you can easily add one by creating a custom page with the slug home-hero
. This feature allows you to create hero section with your own title, description, and image.
How It Works
When you create a page with the slug home-hero
, Aspect theme will automatically use:
- Page title β Hero section title
- Page excerpt β Hero section description
- Featured image β Hero section background image
Without a home-hero
page, your homepage will display without any hero section, showing your posts instead.
Creating the Hero Page
Follow these steps to add a custom hero section to your homepage:
Step 1: Create a New Page
- Go to Pages in your Ghost admin
- Click New page
- Set the page title to your desired hero title (e.g., βWelcome to My Photography Portfolioβ)
- Add your hero description in the page excerpt
- Upload your hero image as the featured image
Step 2: Set the Page Slug
- In the page editor, click the Settings button
- Change the Page URL to
home-hero
Step 3: Publish the Page
- Click Publish to save your changes
- Visit your homepage to see your new hero section appear