Skip to content

Instantly share code, notes, and snippets.

@manbearwolf
Last active November 12, 2017 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manbearwolf/604cc6580702cb38db8086916c12928c to your computer and use it in GitHub Desktop.
Save manbearwolf/604cc6580702cb38db8086916c12928c to your computer and use it in GitHub Desktop.
font fix for scssify
<head>
<style>
{% capture inlineCSS %}
{% include main.scss %}
{% endcapture %}
{{ inlineCSS | scssify }}
</style>
</head>
@font-face {
font-family: 'fontawesome';
src: url('/fonts/fontawesome.eot?w1gi2x');
src: url('/fonts/fontawesome.eot?w1gi2x#iefix') format('embedded-opentype'),
url('/fonts/fontawesome.ttf?w1gi2x') format('truetype'),
url('/fonts/fontawesome.woff?w1gi2x') format('woff'),
url('/fonts/fontawesome.svg?w1gi2x#fontawesome') format('svg');
font-weight: normal;
font-style: normal;
}
@manbearwolf
Copy link
Author

manbearwolf commented Nov 11, 2017

take out front matter in main.scss...
includes folder...

@manbearwolf
Copy link
Author

manbearwolf commented Nov 11, 2017

<style type="text/css">
  {% capture include_to_scssify %}
  {% include main.scss %}
  {% endcapture %}
  {{ include_to_scssify | scssify | strip_newlines }}
</style>

@manbearwolf
Copy link
Author

manbearwolf commented Nov 11, 2017

<style type="text/css">
    {% capture inlineCSS %}
    {% include app.scss %}
    {% endcapture %}
    {{ inlineCSS | scssify }}
  </style>

@manbearwolf
Copy link
Author

  <style type="text/css">
    {% capture include_to_scssify %}
    {% include style.scss %}
    {% endcapture %}
    {{ include_to_scssify | scssify }}
  </style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment