Commit 9ee5d0c5 authored by Andreas Knote's avatar Andreas Knote

sass: correctly load _sass files so they are handled by jekyll during...

sass: correctly load _sass files so they are handled by jekyll during site-build and can easily be extended with custom _sass
parent ead7f5a0
Pipeline #22684 passed with stage
in 13 minutes and 5 seconds
......@@ -18,8 +18,16 @@ task :build do
# Add (S)CSS and other resources
puts '[Gathering assets from Node]'
FileUtils.mkdir_p('_sass')
FileUtils.copy_entry 'node_modules/slick-carousel', '_sass/slick-carousel'
FileUtils.mkdir_p('_sass/slick/')
FileUtils.copy_entry(
'node_modules/slick-carousel/slick/slick.scss',
'_sass/slick/slick.scss'
)
FileUtils.copy_entry(
'node_modules/slick-carousel/slick/slick-theme.scss',
'_sass/slick/slick-theme.scss'
)
FileUtils.mkdir_p('assets/css/fonts')
FileUtils.copy_entry(
'node_modules/slick-carousel/slick/fonts/slick.woff',
......
sass:
load_paths:
- _sass
sass_dir: _sass
style: compressed
......@@ -22,7 +22,7 @@
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
<link rel="stylesheet" href="{{ "/assets/css/hci-style.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl }}">
{% if site.favicon %}
<link rel="icon" href="{{ site.favicon }}">
......
@import "constants";
@import "icons";
@import "base";
@import "utilities";
@import "bibsonomy";
\ No newline at end of file
@import "hci-theme/constants";
@import "hci-theme/icons";
@import "hci-theme/base";
@import "hci-theme/utilities";
@import "hci-theme/bibsonomy";
@import "slick/slick.scss";
@import "slick/slick-theme.scss";
---
---
@import "slick-carousel/slick/slick.scss";
@import "slick-carousel/slick/slick-theme.scss";
@import "main";
\ No newline at end of file
---
---
@import "hci-theme";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment