Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jekyll-include_sass

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jekyll-include_sass

  • 1.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Gem Version CI

Jekyll::IncludeSass

Jekyll include_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's Gemfile:
gem 'jekyll-include_sass'
  1. Add the following to your site's _config.yml:
gems:
  - jekyll-include_sass

Usage

Put your style.scss in Jekyll's _includes directory.

for HTML

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

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

for AMP

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

SASS/SCSS Supported

You can include either SASS or SCSS with include_sass depending on extension.

Contributing

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

License

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

FAQs

Package last updated on 07 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc