Skip to content

Instantly share code, notes, and snippets.

View TomPham97's full-sized avatar
🖤
Obsessed with dark mode

Tom Pham TomPham97

🖤
Obsessed with dark mode
View GitHub Profile
@kgrz
kgrz / inline_css.rb
Last active March 16, 2024 15:34
Jekyll Plugin to embed CSS inline in a HTML file. Useful for embedding Above the Fold CSS content if it's in a different file.
# Usage:
# This adds a tag by the name `inline_css`. It takes one argument which is the
# path to a CSS file without any quotes:
#
# {% inline_css public/css/atf.css %}
#
# This would then read the file in the given directory relative to the root of
# the Jekyll installation and then embed that CSS at that location.
#
# Installation: