Migrate from HB Starter Theme

This guide shows how to migrate to the HB cards theme from the HB starter theme.

You can migrate to cards theme from the starter theme effortlessly within two steps.

Import the Cards Theme Module

hugo.toml

1[module]
2[[module.imports]]
3    path = 'github.com/hbstack/theme-cards'

hugo.yaml

1module:
2  imports:
3  - path: github.com/hbstack/theme-cards

hugo.json

1{
2   "module": {
3      "imports": [
4         {
5            "path": "github.com/hbstack/theme-cards"
6         }
7      ]
8   }
9}

Tweak Parameters

To make the carousel to take whole row on homepage, you’ll need to tweak the position of pinned posts.

params.toml

1[hb]
2  [hb.blog]
3    [hb.blog.home]
4      pinned_posts_position = 'list'

params.yaml

1hb:
2  blog:
3    home:
4      pinned_posts_position: list

params.json

1{
2   "hb": {
3      "blog": {
4         "home": {
5            "pinned_posts_position": "list"
6         }
7      }
8   }
9}