Skip to content

Instantly share code, notes, and snippets.

@zooks
Created April 21, 2017 23:58
Show Gist options
  • Save zooks/058e0fc8c0d6e26b44e861f4ca3799e5 to your computer and use it in GitHub Desktop.
Save zooks/058e0fc8c0d6e26b44e861f4ca3799e5 to your computer and use it in GitHub Desktop.
Inline CSS with MODX Revolution
<link rel="canonical" href="[[~[[*id]]? &scheme=`full`]]" />
[[!MinifyXCustom?
&minifyJs=`1`
&minifyCss=`1`
&jsFilename=`mysite`
&cssFilename=`mysite`
&jsPlaceholder=`mysite.javascript`
&cssPlaceholder=`inline.css`
&cssSources=`
assets/css/style.css,
assets/js/fancybox/jquery.fancybox.css,
assets/css/font-awesome.min.css`
&jsSources=`
assets/js/jquery.min.js,
assets/js/jquery.slicknav.min.js,
assets/js/fancybox/jquery.fancybox.pack.js,
assets/js/animate.js`
&jsOffSources=``
]]
<style>
[[+inline.css.link]]
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment