mirror of
https://github.com/jgthms/bulma
synced 2026-03-18 11:24:29 -07:00
Update variables include template
This commit is contained in:
@@ -3,16 +3,17 @@ module.exports = plugin;
|
||||
const utils = require('./utils');
|
||||
|
||||
function plugin() {
|
||||
let variables = {
|
||||
by_name: {},
|
||||
list: [],
|
||||
};
|
||||
|
||||
return (files, metalsmith, done) => {
|
||||
setImmediate(done);
|
||||
|
||||
Object.keys(files).forEach(file_path => {
|
||||
const {file_name, lines} = utils.getLines(files, file_path);
|
||||
let variables = {
|
||||
by_name: {},
|
||||
list: [],
|
||||
file_path,
|
||||
};
|
||||
|
||||
lines.forEach(line => {
|
||||
const variable = utils.parseLine(line);
|
||||
|
||||
Reference in New Issue
Block a user