Ignore the variables hook in the site file
This commit is contained in:
parent
7f8c19d480
commit
b3ff6c79a6
3 changed files with 7 additions and 12 deletions
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
"addon/module",
|
"addon/module",
|
||||||
"addon/variables",
|
"addon/variables",
|
||||||
|
"variables-hook",
|
||||||
"addon/syntax",
|
"addon/syntax",
|
||||||
"addon/commons",
|
"addon/commons",
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/*
|
/*
|
||||||
Appending custom SCSS variables will override the default ones in `_sass/addon/variables.scsss`
|
Appending custom SCSS variables will override the default ones in `_sass/addon/variables.scsss`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$tab-count: {{ site.tabs | size | plus: 1 }}; // plus 1 for home tab
|
|
|
@ -1,16 +1,12 @@
|
||||||
---
|
---
|
||||||
---
|
---
|
||||||
|
|
||||||
{% comment %} include the variables-hook if it exists {% endcomment %}
|
/*
|
||||||
|
If the number of TAB files has changed, the following variable is required.
|
||||||
{% assign hook = 'variables-hook.scss' %}
|
And it must be defined before `@import`.
|
||||||
{% assign _hook_path = hook | prepend: '/assets/css/' %}
|
*/
|
||||||
{% assign _hook_obj = site.static_files | where: 'path', _hook_path | first %}
|
$tab-count: {{ site.tabs | size | plus: 1 }}; // plus 1 for home tab
|
||||||
|
|
||||||
{% if _hook_obj %}
|
|
||||||
{% include_relative {{ hook }} %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
@import "{{ site.theme }}";
|
@import "{{ site.theme }}";
|
||||||
|
|
||||||
// append your custom style below
|
/* append your custom style below */
|
||||||
|
|
Loading…
Reference in a new issue