https://github.com/indaco/gohugo-tailwindcss-alpinejs-starter
Starter project with Hugo as CMS, Tailwind CSS, Alpine.js and GitHub Actions
https://github.com/indaco/gohugo-tailwindcss-alpinejs-starter
alpinejs hugo starter starter-project tailwindcss
Last synced: over 1 year ago
JSON representation
Starter project with Hugo as CMS, Tailwind CSS, Alpine.js and GitHub Actions
- Host: GitHub
- URL: https://github.com/indaco/gohugo-tailwindcss-alpinejs-starter
- Owner: indaco
- Created: 2021-08-02T07:46:34.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T13:21:45.000Z (about 3 years ago)
- Last Synced: 2025-03-18T18:57:38.434Z (over 1 year ago)
- Topics: alpinejs, hugo, starter, starter-project, tailwindcss
- Language: HTML
- Homepage:
- Size: 213 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hugo Starter with Tailwind CSS and GitHub Actions
Starter project with Hugo as CMS, TailwindCSS and Alpinejs:
- Hugo v0.112.7
- Tailwind CSS v3.3.x + `@tailwindcss/{typography, form, aspect-ratio}` plugins
- Alpinejs v3 + `@alpine-collective/toolkit-scroll` plugin
- Purge unused css classes with PurgeCSS for build, but not in dev
- SEO ready:
- Json-Ld: website, organization, webpage, sitenavigationelement, breadcrumbs
- OpenGraph
- TwitterCard
- GoogleFonts
- GitHub Actions to build and deploy to FTP servers (staging and production)
## Dev-Staging-Production
The branches strategy is the following:
- `master` is for development. Any push on it will not trigger any build and deploy
- `staging` branch for staging
- `stable` branch for production
Simply edit the actions to reflect your setup.
### FTP server and secrets
The automate deploying of the website leverages [FTP Deploy action](https://github.com/marketplace/actions/ftp-deploy)
Create the following secrets on your repo's setting:
#### Staging
- staging_ftp_hostname
- staging_ftp_username
- staging_ftp_password
- staging_server_folder
#### Production
- production_ftp_hostname
- production_ftp_username
- production_ftp_password
- production_server_folder
`*_server_folder` secret is the folder to upload to (on the server), must end with trailing slash. e.g. `public_html/`