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'
toml

hugo.yaml

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

hugo.json

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

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'
toml

params.yaml

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

params.json

1{
2   "hb": {
3      "blog": {
4         "home": {
5            "pinned_posts_position": "list"
6         }
7      }
8   }
9}
json
  • All
  • English
  • 한국어
  • 简体中文
  • Best match
  • Oldest
  • Newest
  • Big Data
  • DevOps
  • JAVA
  • Mac
  • NoSQL
  • RDB
  • Shell
  • Web
  • 주절주절
  • Content
  • 内容
  • Java Collections
  • Docs
  • Examples
  • Notes
  • Releases
  • 发布
  • 文档
  • 示例
  • 笔记
  • Apache Spark
  • AZURE
  • Bash
  • CodeIgniter
  • Command Line Tools
  • CSV
  • Docker
  • Git
  • Github pages
  • Homebrew
  • Humor
  • IDE
  • IntelliJ IDEA
  • JAVA String
  • JAVA17
  • List
  • macOS
  • MySQL
  • PHP
  • Redis
  • Script
  • SDKMAN
  • Set
  • Shell
  • Spring Boot
  • Terminal
  • TRY-CATCH
  • Windows
  • Charts
  • Diagrams
  • Images
  • Installation
  • KaTeX
  • Layouts
  • Math
  • Mermaid
  • Migration
  • 图片
  • 图表
  • 安装
  • 布局
  • 数学
  • 迁移