Install From Scratch

Getting started from scratch with HB cards theme to build your fast, responsive and modular static websites.

We offers an example site for getting started with this theme.

Requirements§

  • Go
  • Hugo extended version
  • Node.js 16 or later

Read more on prerequisites.

Clone the Repository§

1git clone --depth 1 https://github.com/hbstack/theme-cards
sh

Copy the Example Site§

1cp -r theme-cards/exampleSite mysite
sh

Change Working Directory§

1cd mysite
sh

Tweak go.mod§

Replace Module Path§

The module path is the identifier of your site, which typically is your repo URL, take github.com/user/repo as an example, you’ll need to replace the module github.com/hbstack/theme-cards/exampleSite with module github.com/user/repo.

1sed -i '1s/.*/module github.com\/user\/repo/' go.mod
sh

Delete the replace Directive§

To build the site successfully, you’ll need to delete the internal used replace directive: replace github.com/hbstack/theme-cards => ../.

1sed -i '/^replace/d' go.mod
sh

Install Dependencies§

1npm ci
sh

Hugo Module Proxy (Optional)§

A Hugo module proxy is required when the default proxy isn’t accessible from your location, i.e. China.

Preview Locally§

1npm run dev
sh

What’s Next?§

  1. Tweak Configurations, such as baseURL, giscus.* and so on.
  2. Remove testing content.
  3. Read the documentations.
  4. Find more modules.
  • 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
  • 图片
  • 图表
  • 安装
  • 布局
  • 数学
  • 迁移