Merge branch 'development' of https://github.com/threefoldfoundation/www_threefold_io into development
This commit is contained in:
46
build.sh
Executable file
46
build.sh
Executable file
@@ -0,0 +1,46 @@
|
||||
echo "Starting build..."
|
||||
|
||||
# TODO: Check if current version is latest to avoid redundant installation
|
||||
if [[ -f "tailwindcss" ]]
|
||||
then
|
||||
echo "Tailwind installed"
|
||||
else
|
||||
# rm tailwindcss
|
||||
# checks os and architecture for correct release
|
||||
# https://stackoverflow.com/a/8597411
|
||||
echo "Installing & building tailwind..."
|
||||
ASSET="tailwindcss"
|
||||
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
ASSET="$ASSET-linux"
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
ASSET="$ASSET-macos"
|
||||
fi
|
||||
if [[ "$(uname -m)" == "x86_64"* ]]; then
|
||||
ASSET="$ASSET-x64"
|
||||
elif [[ "$(uname -m)" == "arm64"* ]]; then
|
||||
ASSET="$ASSET-arm64"
|
||||
fi
|
||||
|
||||
curl -sLO "https://github.com/tailwindlabs/tailwindcss/releases/latest/download/${ASSET}"
|
||||
chmod +x $ASSET
|
||||
mv $ASSET tailwindcss
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# initialized and configures tailwind if not configured
|
||||
echo "Initializing tailwind..."
|
||||
if [[ ! -f "tailwind.config.js" ]]
|
||||
then
|
||||
./tailwindcss init
|
||||
sed -i '' "s| content: \\[\\],| content: \\['./templates/**/*.html'\\],|g" tailwind.config.js
|
||||
fi
|
||||
|
||||
# compiles tailwind css for prod & builds project
|
||||
echo "Compiling tailwindcss and building zola project..."
|
||||
rm -rf public static/css
|
||||
./tailwindcss -i css/index.css -o ./static/css/index.css --minify
|
||||
zola build
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 691 KiB |
@@ -1,21 +0,0 @@
|
||||
---
|
||||
title: Gloria Anne
|
||||
weight: 3
|
||||
description: The relentlessly helpful office administrator in Mazraa.
|
||||
taxonomies:
|
||||
people: [gloria_anne]
|
||||
memberships: [foundation]
|
||||
categories: [foundation]
|
||||
extra:
|
||||
imgPath: gloria_anne.png
|
||||
organizations: [threefold_foundation, mazraa]
|
||||
countries: [Philippines]
|
||||
cities: []
|
||||
private: 0
|
||||
socialLinks: {
|
||||
LinkedIn: https://www.linkedin.com/in/gloria-anne-c/,
|
||||
websites: https://threefold.io/, https://www.mazraa.io/,
|
||||
}
|
||||
---
|
||||
|
||||
A relentlessly helpful office administrator in Mazraa as well as a bookkeeper. ThreeFold gives me feeling of contributing to something larger than myself that I find very significant.
|
||||
@@ -385,7 +385,7 @@
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inline-block px-3">
|
||||
{# <div class="inline-block px-3">
|
||||
<div class="
|
||||
box
|
||||
max-w-xs
|
||||
@@ -402,7 +402,7 @@
|
||||
class="rounded-full mx-auto mt-3" alt="Gloria Anne" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div> #}
|
||||
<div class="inline-block px-3">
|
||||
<div class="
|
||||
box
|
||||
|
||||
Reference in New Issue
Block a user