https://github.com/dirien/hello-jamstack
Test for different JAMStack provider
https://github.com/dirien/hello-jamstack
Last synced: 3 months ago
JSON representation
Test for different JAMStack provider
- Host: GitHub
- URL: https://github.com/dirien/hello-jamstack
- Owner: dirien
- License: apache-2.0
- Created: 2021-05-13T12:47:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-19T17:15:46.000Z (almost 4 years ago)
- Last Synced: 2026-03-31T19:55:46.892Z (3 months ago)
- Language: HTML
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Publish a Hugo site to Azure Static Web Apps with bicep
##Create a Hugo App
Create a Hugo app using the Hugo Command Line Interface (CLI):
Follow the installation guide for Hugo on your OS.
Open a terminal
Run the Hugo CLI to create a new app.
hugo new site hello-hugo
Navigate to the newly created app.
cd hello-hugo
Initialize a Git repo.
git init
Next, add a theme to the site by installing a theme as go module
go get github.com/vaga/hugo-theme-m10c
Add following snippet to the `config.yaml`
module:
imports:
path: "github.com/vaga/hugo-theme-m10c"
Commit the changes.
git add -A
git commit -m "initial commit"
## Push your application to GitHub
You need a repository on GitHub to connect to Azure Static Web Apps. The following steps show you how to create a repository for your site.
Create a blank GitHub repo (don't create a README) from https://github.com/new named hello-jamstack.
Add the GitHub repository as a remote to your local repo. Make sure to add your GitHub username in place of the placeholder in the following command.
git remote add origin https://github.com//hello-jamstack
Push your local repo up to GitHub.
git push --set-upstream origin main
## Deploy
* [Azure](docs/azure.md)
* [Digital Ocean](docs/do.md)