Show version dynamically on homepage, move under logo

This commit is contained in:
Adam Wathan 2017-11-01 21:43:38 -04:00
parent 1bb12ccb46
commit 6863db6c7d
2 changed files with 5 additions and 4 deletions

View file

@ -5,6 +5,7 @@ return [
'production' => false,
'collections' => [],
'config' => json_decode(file_get_contents(__DIR__ . '/tailwind.json'), true),
'version' => json_decode(file_get_contents(__DIR__ . '/../package.json'), true)['version'],
'colors' => ['red', 'orange', 'yellow', 'green', 'teal', 'blue', 'indigo', 'purple', 'pink'],
'active' => function ($page, $path) {
$pages = collect(array_wrap($page));
@ -12,5 +13,5 @@ return [
return $pages->contains(function ($page) use ($path) {
return str_contains($page->getPath(), $path);
});
}
},
];