minor fixes

This commit is contained in:
timurgordon
2022-08-24 15:40:37 +03:00
parent 5b9ee11694
commit bdc8ae9a0f
4 changed files with 6 additions and 4357 deletions

View File

@@ -1,10 +1,6 @@
echo "Starting build..."
# TODO: Check if current version is latest to avoid redundant installation
if [[ -f "tailwindcss" ]]
then
rm tailwindcss
fi
# checks os and architecture for correct release
# https://stackoverflow.com/a/8597411

View File

@@ -7,16 +7,16 @@ fi
# initialized and configures tailwind if not configured
if [ ! -f "tailwind.config.js" ]
then
tailwindcss init
./tailwindcss init
sed -i '' "s| content: \\[\\],| content: \\['./templates/**/*.html'\\],|g" tailwind.config.js
fi
# compiles tailwind css & launches locally
rm -rf public static/css
tailwindcss -i css/index.css -o ./static/css/index.css --watch & zola serve &
./tailwindcss -i css/index.css -o ./static/css/index.css --watch & zola serve &
# compiles tailwind css for prod & builds project
tailwindcss -i css/index.css -o ./static/css/index.css --minify
./tailwindcss -i css/index.css -o ./static/css/index.css --minify
zola build
# kills zola and tw bg processes on interrupt

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,3 @@
{{ featured }}
{% if featured.taxonomies.people %}
{% set author_path = 'people/' ~ featured.taxonomies.people[0] ~ '/index.md' %}
{% set author = get_page(path=author_path) %}