Ignore the variables hook in the site file

This commit is contained in:
Cotes Chung 2021-07-17 11:48:47 +08:00
parent 7f8c19d480
commit b3ff6c79a6
3 changed files with 7 additions and 12 deletions

View file

@ -12,6 +12,7 @@
"addon/module",
"addon/variables",
"variables-hook",
"addon/syntax",
"addon/commons",

View file

@ -1,5 +1,3 @@
/*
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

View file

@ -1,16 +1,12 @@
---
---
{% comment %} include the variables-hook if it exists {% endcomment %}
{% assign hook = 'variables-hook.scss' %}
{% assign _hook_path = hook | prepend: '/assets/css/' %}
{% assign _hook_obj = site.static_files | where: 'path', _hook_path | first %}
{% if _hook_obj %}
{% include_relative {{ hook }} %}
{% endif %}
/*
If the number of TAB files has changed, the following variable is required.
And it must be defined before `@import`.
*/
$tab-count: {{ site.tabs | size | plus: 1 }}; // plus 1 for home tab
@import "{{ site.theme }}";
// append your custom style below
/* append your custom style below */