Skip to content

Homepage Settings

Giacomo Salici edited this page Jul 23, 2023 · 3 revisions

Structure

The homepage can be divided into several parts:

1. Header

Can hided in the homepage with the showHeaderOnHomepage site param. Can be customize from the global site params.

2. Hero

Title and description be edit in the front-matter of the _index.md file in content folder.

title: "Hi there, this is Salinger theme."
description: "A clean, minimalistic, mobile-first, blazing-fast, powerfull theme for Hugo framework made with Tailwind and DaisyUI. Please consider starring this project on Github."

3. Social links

Editable from site config. See Front Matter wiki page.

4. List of sections

The theme displays automatically all the articles grouped by sections (subfolders under content folder). By default, only featured post are displayed. This behaviur post can be changed in the site parameters.

showOnlyFeaturedPost = true

Each post, to be featured, has to have the featured param as true in the front-matter.

Section title can be set in the _index.md file of each sections.

5. Content

The content in the _index.md file in content folder will be displayed here.

6. Footer

Can hided in the homepage with the showFooterOnHomepage site param. Can be customize from the global site params.

Clone this wiki locally