Giter Site home page Giter Site logo

hugo-mod-bootstrap-scss-v4's Introduction

This repo is replaced by https://github.com/gohugoio/hugo-mod-bootstrap-scss/tree/v4


This is a Hugo module that packages the Bootstrap v4 SCSS source ready to be used in Hugo.

You need the Hugo extended version and Go to use this component.

Use

Add the component to your Hugo site's config:

[module]
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-bootstrap-scss-v4"

The Bootstrap SCSS will be mounted in assets/scss/bootstrap, so you can then import either all:

@import "bootstrap/bootstrap";

Or only what you need:

@import "bootstrap/functions";
@import "bootstrap/variables";
@import "bootstrap/mixins";
@import "bootstrap/root";
@import "bootstrap/reboot";
@import "bootstrap/type";
@import "bootstrap/images";
@import "bootstrap/code";
@import "bootstrap/grid";
@import "bootstrap/tables";
@import "bootstrap/forms";
@import "bootstrap/buttons";
@import "bootstrap/transitions";
@import "bootstrap/dropdown";
@import "bootstrap/button-group";
@import "bootstrap/input-group";
@import "bootstrap/custom-forms";
@import "bootstrap/nav";
@import "bootstrap/navbar";
@import "bootstrap/card";
@import "bootstrap/breadcrumb";
@import "bootstrap/pagination";
@import "bootstrap/badge";
@import "bootstrap/jumbotron";
@import "bootstrap/alert";
@import "bootstrap/progress";
@import "bootstrap/media";
@import "bootstrap/list-group";
@import "bootstrap/close";
@import "bootstrap/toasts";
@import "bootstrap/modal";
@import "bootstrap/tooltip";
@import "bootstrap/popover";
@import "bootstrap/carousel";
@import "bootstrap/spinners";
@import "bootstrap/utilities";
@import "bootstrap/print";

Versions

This repository will be versioned following the minor and patch versions in the v4 series of Bootstrap.

hugo-mod-bootstrap-scss-v4's People

Contributors

bep avatar deining avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hugo-mod-bootstrap-scss-v4's Issues

Best practices for adding Bootstrap versions

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.

Does this make sense?

See the README. I have tested that it works, and it's pretty easy to use, I'll have to say.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.