Setup

How to add content and modules.

Modules

Edit config file

/config/_default/module.yaml

Required modules

imports:

# Core theme
- path: github.com/hugolify/hugolify-theme/v2

# Styling layer
- path: github.com/hugolify/hugolify-theme-bootstrap

# Headless CMS
- path: github.com/hugolify/hugolify-admin

Since v2, hugolify-theme is the agnostic core. It provides templates, functions, layouts and vendors JS. It requires a styling module to supply variables, vendors, and framework-specific styles. The default is hugolify-theme-bootstrap. See Design customization for alternatives.

In v1, Bootstrap CSS and JS were bundled directly inside hugolify-theme.

Add modules

Adds modules according to your needs.

Example 1

In this example, I have a website with a blog and portfolio to show my projects.

imports:

# Content
- path: github.com/hugolify/hugolify-theme-projects
- path: github.com/hugolify/hugolify-theme-posts-categories
- path: github.com/hugolify/hugolify-theme-posts

# Core theme
- path: github.com/hugolify/hugolify-theme/v2

# Styling layer
- path: github.com/hugolify/hugolify-theme-bootstrap

# CMS
- path: github.com/hugolify/hugolify-admin

Example 2

In this example, I have a website for to propose services and I would like to show my press publications.

imports:

# Content
- path: github.com/hugolify/hugolify-theme-services
- path: github.com/hugolify/hugolify-theme-publications

# Core theme
- path: github.com/hugolify/hugolify-theme/v2

# Styling layer
- path: github.com/hugolify/hugolify-theme-bootstrap

# CMS
- path: github.com/hugolify/hugolify-admin

Content

Use your Headless CMS to add content in your website or add it directly in the content directory.

/content/