jekyll-include_sass 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +40 -18
- data/Rakefile +1 -1
- data/jekyll-include_sass.gemspec +1 -1
- data/lib/jekyll/include_sass/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e76f8d6cdce1fa6348771e35940828ef389f0660
|
4
|
+
data.tar.gz: e46bfd5e8b95743ee72a100a6525e6582dac1b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1020bc7e444273bb3c277519636e0a931df9b3efe1eaac06823305fe95bfa8328e67ee51caf18ce24dd2395da75e1792ab08887e79b21c37343773730b25071
|
7
|
+
data.tar.gz: 449b032551ac4d6a27d28fd79711d2ca228d50b0410968dbb20e244fe1a6e51655ba9aded2e8c56edd136dcb28bac16e3f260569ba928792abae78b56d943975
|
data/README.md
CHANGED
@@ -1,41 +1,63 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/jekyll-include_sass.svg)](https://badge.fury.io/rb/jekyll-include_sass)
|
2
|
+
[![Build Status](https://travis-ci.org/toshimaru/jekyll-include_sass.svg)](https://travis-ci.org/toshimaru/jekyll-include_sass)
|
3
|
+
|
1
4
|
# Jekyll::IncludeSass
|
2
5
|
|
3
|
-
|
6
|
+
Jekyll `include_sass` tag which includes and converts SASS/SCSS file. This is useful for Google AMP HTML.
|
4
7
|
|
5
|
-
|
8
|
+
## Supported CSS in AMP
|
6
9
|
|
7
|
-
|
10
|
+
> Like all web pages, AMP pages are styled with CSS, but you can’t reference external stylesheets.
|
8
11
|
|
9
|
-
|
12
|
+
> All styles must live in the head of the document.
|
10
13
|
|
11
|
-
|
12
|
-
gem 'jekyll-include_sass'
|
13
|
-
```
|
14
|
+
via. [Supported CSS](https://www.ampproject.org/docs/guides/responsive/style_pages.html)
|
14
15
|
|
15
|
-
|
16
|
+
## Installation
|
16
17
|
|
17
|
-
|
18
|
+
1. Add the following to your site's `Gemfile`:
|
18
19
|
|
19
|
-
|
20
|
+
```ruby
|
21
|
+
gem 'jekyll-include_sass'
|
22
|
+
```
|
20
23
|
|
21
|
-
|
24
|
+
2. Add the following to your site's `_config.yml`:
|
25
|
+
|
26
|
+
```yml
|
27
|
+
gems:
|
28
|
+
- jekyll-include_sass
|
29
|
+
```
|
22
30
|
|
23
31
|
## Usage
|
24
32
|
|
25
|
-
|
33
|
+
Put your `style.scss` in Jekyll's `_includes` directory.
|
26
34
|
|
27
|
-
|
35
|
+
### HTML Version
|
28
36
|
|
29
|
-
|
37
|
+
Add the following inside `<head>` in your site's template(s):
|
30
38
|
|
31
|
-
|
39
|
+
```html
|
40
|
+
<style type="text/css">
|
41
|
+
{% include_sass style.scss %}
|
42
|
+
</style>
|
43
|
+
```
|
32
44
|
|
33
|
-
|
45
|
+
### AMP Version
|
34
46
|
|
35
|
-
|
47
|
+
```html
|
48
|
+
<style amp-custom>
|
49
|
+
{% include_sass style.scss %}
|
50
|
+
</style>
|
51
|
+
```
|
52
|
+
|
53
|
+
### SASS/SCSS Supported
|
54
|
+
|
55
|
+
You can include either SASS or SCSS with `include_sass` depending on extension.
|
36
56
|
|
57
|
+
## Contributing
|
58
|
+
|
59
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/toshimaru/jekyll-include_sass.
|
37
60
|
|
38
61
|
## License
|
39
62
|
|
40
63
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
data/Rakefile
CHANGED
data/jekyll-include_sass.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["toshimaru"]
|
9
9
|
spec.email = ["me@toshimaru.net"]
|
10
10
|
|
11
|
-
spec.summary = %q{Jekyll include_sass tag which
|
11
|
+
spec.summary = %q{Jekyll include_sass tag which aincludes and converts SASS/SCSS file. Useful for AMP HTML!}
|
12
12
|
spec.description = %q{Jekyll include_sass tag is a shorthand tag for including SASS/SCSS file inside head tag. It's useful when you don't want to reference external CSS, for example, in AMP.}
|
13
13
|
spec.homepage = "https://github.com/toshimaru/jekyll-include_sass"
|
14
14
|
spec.license = "MIT"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-include_sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toshimaru
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -124,5 +124,6 @@ rubyforge_project:
|
|
124
124
|
rubygems_version: 2.4.5.1
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
|
-
summary: Jekyll include_sass tag which
|
127
|
+
summary: Jekyll include_sass tag which aincludes and converts SASS/SCSS file. Useful
|
128
|
+
for AMP HTML!
|
128
129
|
test_files: []
|