gohugoio / hugo-mod-bootstrap-scss-v4

Bootstrap SCSS v4 packaged as a Hugo Module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Best practices for adding Bootstrap versions

stephenpiscura opened this issue · comments

This is my first attempt at contributing to a GitHub project so please bear with me. I’m following up on this support issue in the Hugo forum.

I thought about taking this approach:

For v4.0.0:

[module]
[[module.imports]]
path="github.com/twbs/bootstrap"
[[module.imports.mounts]]
source = "tree/v4.0.0/scss"
target = "assets/scss/bootstrap"

For v4.1.0:

[module]
[[module.imports]]
path="github.com/twbs/bootstrap"
[[module.imports.mounts]]
source = "tree/v4.1.0/scss"
target = "assets/scss/bootstrap"

and so on.

Is that an abuse of how import mounts are meant to work?

Sorry for the rookie questions; i’d love to be helpful here if I can.

I would never change the source value (unless it's changing). Do versioning via tags or module paths.

Sorry for the delay, I have created a new repo that replaces this. I have added some notes here:

gohugoio/hugo-mod-bootstrap-scss#1