Skip to content

Commit

Permalink
add bs and tobii to modules
Browse files Browse the repository at this point in the history
  • Loading branch information
sebousan committed Feb 6, 2023
1 parent 4b455d8 commit e12113b
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion assets/js/blocks/gallery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import scrollspy from '../utils/scrollspy';
import Tobii from '@midzer/tobii'
import Tobii from '../vendors/tobii'

const galleries = document.querySelectorAll('.block-gallery');
let lightboxLoaded = false;
Expand Down
1 change: 0 additions & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Vendors
// import './vendors/bootstrap';
// import './vendors/cookie';

// Blocks
Expand Down
11 changes: 0 additions & 11 deletions assets/js/vendors/bootstrap.js

This file was deleted.

2 changes: 1 addition & 1 deletion assets/sass/main-theme.sass
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@import "abstracts/variables.default"

// Bootstrap
@import "bootstrap/scss/bootstrap.scss"
@import "vendors/bootstrap/bootstrap"

// Mixins
@import "abstracts/mixins"
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/vendors/_tobii.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "@midzer/tobii/src/scss/tobii.scss"
@import "vendors/tobii/tobii.scss"

.tobii
&__btn
Expand Down
14 changes: 14 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
module:
mounts:
# Workaround for https://github.com/gohugoio/hugo/issues/6945
source: "assets/scss/bootstrap/_vendor"
target: "assets/scss/vendors/bootstrap/vendor"
imports:
- path: github.com/twbs/bootstrap
mounts:
- source: scss
target: assets/sass/vendors/bootstrap
- path: github.com/twbs/icons
mounts:
- source: font/fonts
target: static/fonts/bootstrap-icons
- path: github.com/midzer/tobii
mounts:
- source: src/scss
target: assets/sass/vendors/tobii
- source: src/js
target: assets/js/vendors/tobii

params:
logo:
Expand Down
6 changes: 6 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
module github.com/hugolify/hugolify-theme

go 1.19

require (
github.com/midzer/tobii v2.5.0+incompatible // indirect
github.com/twbs/bootstrap v5.2.3+incompatible // indirect
github.com/twbs/icons v1.10.3 // indirect
)
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,5 @@
"hugo-theme",
"bootstrap"
],
"license": "MIT",
"dependencies": {
"@midzer/tobii": "^2.5.0",
"@popperjs/core": "^2.11.2",
"bootstrap": "^5.2.3",
"bootstrap-icons": "^1.10.3"
}
"license": "MIT"
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion static/assets/images/map-marker.svg

This file was deleted.

0 comments on commit e12113b

Please sign in to comment.