Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Jekyll include_sass tag which includes and converts SASS/SCSS file. Useful for Google AMP HTML!

License

NotificationsYou must be signed in to change notification settings

toshimaru/jekyll-include_sass

Repository files navigation

Gem VersionCI

Jekyll::IncludeSass

Jekyllinclude_sass tag which includes and converts SASS/SCSS file. This is useful for Google AMP HTML.

Supported CSS in AMP

Like all web pages, AMP pages are styled with CSS, but you can’t reference external stylesheets.

All styles must live in the head of the document.

via.Supported CSS

Installation

  1. Add the following to your site'sGemfile:
gem'jekyll-include_sass'
  1. Add the following to your site's_config.yml:
gems:  -jekyll-include_sass

Usage

Put yourstyle.scss in Jekyll's_includes directory.

for HTML

Add the following inside<head> in your site's template(s):

<styletype="text/css">{% include_sass style.scss %}</style>

for AMP

<styleamp-custom>{% include_sass style.scss %}</style>

SASS/SCSS Supported

You can include either SASS or SCSS withinclude_sass depending on extension.

Contributing

Bug reports and pull requests are welcome on GitHub athttps://github.com/toshimaru/jekyll-include_sass.

License

The gem is available as open source under the terms of theMIT License.

About

Jekyll include_sass tag which includes and converts SASS/SCSS file. Useful for Google AMP HTML!

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp