forked from brooksbingham/theme-elegance
refactor: add the tailwind in the head directly
parent
bdec9cb049
commit
cd3ac1ec0b
|
@ -62,6 +62,25 @@
|
||||||
{block name='javascript_head'}
|
{block name='javascript_head'}
|
||||||
{include file="_partials/javascript.tpl" javascript=$javascript.head vars=$js_custom_vars}
|
{include file="_partials/javascript.tpl" javascript=$javascript.head vars=$js_custom_vars}
|
||||||
{/block}
|
{/block}
|
||||||
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
|
<script>
|
||||||
|
tailwind.config = {
|
||||||
|
theme: {
|
||||||
|
container: {
|
||||||
|
padding: '1rem'
|
||||||
|
},
|
||||||
|
fontFamily: {
|
||||||
|
sans: ['Cairo'],
|
||||||
|
serif: ['Cairo']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
{** TODO: Remove this before going live *}
|
||||||
|
<script>document.write('<script src="http://'
|
||||||
|
+ location.host.split(':')[0]
|
||||||
|
+ ':35729/livereload.js"></'
|
||||||
|
+ 'script>')</script>
|
||||||
|
|
||||||
{block name='hook_header'}
|
{block name='hook_header'}
|
||||||
{$HOOK_HEADER nofilter}
|
{$HOOK_HEADER nofilter}
|
||||||
|
|
Loading…
Reference in New Issue