Skip to content

Commit c4f909f

Browse files
committed
Merge pull request sergiokopplin#120 from jehartzog/inline-sass
Inlining of SASS, gitignore SASS cache and gulp watch _sass
2 parents df0eeb7 + aff05b3 commit c4f909f

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
node_modules
33
_site
4+
.sass-cache

assets/styles/style.scss renamed to _includes/style.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
---
2-
---
31

42
@import "base/variables";
53
@import "base/normalize";

_layouts/default.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
<link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html','' }}">
2020
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.url }}{{ "/feed.xml" }}" />
2121

22-
<link rel="stylesheet" href="{{ site.url }}/assets/styles/style.css">
22+
<style>
23+
{% capture scss_sheet %}{% include style.scss %}{% endcapture %}
24+
{{ scss_sheet | scssify }}
25+
</style>
26+
2327
</head>
2428
<body>
2529

tasks/watch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ var gulp = require('gulp');
22

33
gulp.task('watch', function() {
44
gulp.watch('assets/images/**/*.{jpg,png,gif}', ['imagemin']);
5-
gulp.watch(['_drafts/*', 'assets/styles/**/*', '_includes/*', '_layouts/*', '_posts/*', '*.{html,md}', '_config.yml'], ['jekyll-rebuild']);
5+
gulp.watch(['_drafts/*', '_sass/**/*', '_includes/*', '_layouts/*', '_posts/*', '*.{html,md}', '_config.yml'], ['jekyll-rebuild']);
66
});

0 commit comments

Comments
 (0)