mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2025-12-11 02:09:05 +00:00
change config format
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
[ -d ./themes/yrzam ] && cd ./themes/yrzam
|
||||
|
||||
VARS=$(printenv | \
|
||||
grep -E 'THEME_.*' | \
|
||||
sed -e 's/[= ].*//g' | sed -e 's/^/\$/' | tr '\n' ' '
|
||||
)
|
||||
|
||||
envsubst "$VARS" < "./assets/css/variables.scss.tmpl" > "./assets/css/variables.scss"
|
||||
cp ~/.config/theme.json ../data/theme.json
|
||||
|
||||
Reference in New Issue
Block a user