sh1457.github.io Personal Website and Blog
This is the install steps on Windows.
Zola is a rust package. We can get the latest binary from chocolatey
choco install zola
Update with choco
choco update zola
Tailwind is a nodejs package. We can use npm to install it
npm install latest@tailwindcss latest@autoprefixer
Same command updates as well
Creates the default config config.toml
by default
zola init
Builds the site into a folder public
by default
zola build
Builds and serves the site locally
zola serve
Rather than using tailwind as a PostCSS plugin, we are using it as a standalone tool
Creates the default config tailwind.config.js
by default
npx tailwindcss init
We are using a custom css file as input to build at src/tailwind.css
We will be serving the built css file at the
static folder in zola. static/css/tailwind.css
npx tailwindcss --input ./src/tailwind.css --output ./static/css/tailwind.css --watch
We are using this GitHub action github.com/shalzz/zola-deploy-action to
build the site from the master
branch and deploy to the gh-pages
branch.
Github then serves the content from the gh-pages
branch at the respective domain specified in the settings.