Install Bootstrap Module

This article shows how to install the Bootstrap module.

Module
github.com/hugomods/bootstrap
GitHub Stars Used By Used By Used By Used By

Requirements§

Some shortcodes like Clearfix require the markup.goldmark.renderer.unsafe to be enabled.

hugo.yaml

1markup:
2  goldmark:
3    renderer:
4      unsafe: true
yaml

hugo.toml

1[markup]
2  [markup.goldmark]
3    [markup.goldmark.renderer]
4      unsafe = true
toml

hugo.json

1{
2   "markup": {
3      "goldmark": {
4         "renderer": {
5            "unsafe": true
6         }
7      }
8   }
9}
json

Installation§

hugo.yaml

1module:
2  imports:
3  - path: github.com/hugomods/bootstrap
yaml

hugo.toml

1[module]
2[[module.imports]]
3    path = 'github.com/hugomods/bootstrap'
toml

hugo.json

1{
2   "module": {
3      "imports": [
4         {
5            "path": "github.com/hugomods/bootstrap"
6         }
7      ]
8   }
9}
json

Additional Styles§

Some additional styles are provided to make some shortcodes look nicer.

To use it via Hugo Pipes, you’ll need to import the SCSS files as follows.

1@import 'mods/bootstrap/scss/index';
scss

Notes§

This module has two namespaces: bs and bootstrap, both of them are valid, the short one is recommended.

  • All
  • English
  • 简体中文
  • Best match
  • Oldest
  • Newest
  • 2023
  • 2024
  • Hugo Modules Authors
  • OpenModels
  • Razon Yang
  • Bootstrap
  • Comment Engine
  • Content
  • Deployment
  • Docker Images
  • Go
  • HTML
  • Hugo
  • Icons
  • Images
  • Mermaid
  • Module
  • Modules
  • PWA
  • Search
  • SEO
  • Shortcode
  • Shortcodes
  • Toggle
  • 搜索
  • Docker
  • Docs
  • Hugo
  • Module
  • Modules
  • News
  • Shortcode
  • Tutorials
  • 教程
  • 模块
  • Abbr
  • Abbreviations
  • Accordion
  • Alert
  • Alternatives
  • Analytics
  • Animation
  • AOS
  • Articles
  • Asciinema
  • AutoPrefixer
  • BaseURL
  • Bilibili
  • Bootstrap
  • Bootstrap Icons
  • Brightness
  • Button
  • Card
  • Clearfix
  • Code
  • Code Block
  • Code Editor
  • CodePen
  • Col
  • Collapse
  • ColorBalance
  • Colorize
  • Config
  • Container
  • Contrast
  • Crop
  • CSS
  • CSS Variables
  • Debug
  • Deployment
  • Development
  • Diagrams
  • DigitalOcean
  • Digitalocean App Platform
  • Display
  • Docker
  • Docker Hub
  • Docsy
  • EmGitHub
  • Encrypt
  • Environment Variables
  • Favicons
  • Feather Icons
  • Features
  • Fill
  • Fit
  • Flowchart
  • Font Awesome Icons
  • Gamma
  • GaussianBlur
  • Giscus
  • GitHub
  • GitHub Container Registry
  • Google AdSense
  • Google Analytics
  • Grayscale
  • Grid
  • HTML
  • Hue
  • HugoPress
  • I18n
  • Icon Grid
  • Image
  • Internationalization
  • Invert
  • JavaScript
  • JS
  • JSFiddle
  • JSON
  • JSRun
  • KaTeX
  • Lead
  • Link
  • Material Design Icons
  • Math
  • Mergify
  • Microsoft Clarity
  • Modal
  • Music
  • NetEase Cloud Music
  • Offline
  • Open Graph
  • Parameters
  • Pixelate
  • Plausible Analytics
  • PostCSS
  • Proxy
  • Ratio
  • Renovate
  • Requirements
  • Resize
  • Row
  • RTLCSS
  • Saturation
  • Schema
  • Scroll
  • Search
  • Sepia
  • Service Worker
  • Sigmoid
  • Simple Icons
  • Single Page
  • Snackbar
  • Tabler Icons
  • Terminal
  • Toggle
  • TOML
  • Translations
  • Twikoo
  • Twitter Cards
  • UnsharpMask
  • Utterances
  • Video
  • Video.js
  • YAML
  • YouKu
  • CSS 变量
  • i18n
  • 代理服务器
  • 单页
  • 参数
  • 国际化
  • 模态框