update home template

This commit is contained in:
2025-08-05 16:03:49 +03:00
parent 38acb206dd
commit b27ea08637
268 changed files with 6303 additions and 109133 deletions

View File

@@ -1,13 +1,28 @@
#!/bin/bash
echo "🔍 Checking for Tailwind CSS..."
if ! [ -d "node_modules" ]; then
echo "📦 Installing Tailwind CSS and dependencies..."
npm install
# builds if executable isn't found
if [[ ! -f "tailwindcss" ]]; then
sh build.sh
fi
echo "Starting Tailwind CSS watcher & Zola live server..."
# initializes and configures tailwind if not configured
if [[ ! -f "tailwind.config.js" ]]; then
./tailwindcss init
sed -i '' "s| content: \\[\\],| content: \\['./templates/**/*.html'\\],|g" tailwind.config.js
fi
npx tailwindcss -i ./static/css/main.css -o ./static/css/output.css --watch & zola serve
# compiles Tailwind CSS & launches locally
rm -rf public static/css
./tailwindcss -i css/index.css -o ./static/css/index.css --watch & zola serve &
echo "🚀 Development server running!"
# wait for the local preview to start
sleep 5
# open the local preview in the default web browser
open "http://127.0.0.1:1111"
# compiles Tailwind CSS for production & builds project
./tailwindcss -i css/index.css -o ./static/css/index.css --minify
zola build
# kill zola and Tailwind CSS background processes on interrupt
trap 'kill $(jobs -p); exit 1' INT
wait