Fix
This commit is contained in:
parent
f8ce4e3b48
commit
c51a57d3a2
3 changed files with 29 additions and 12 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
atri.dad
|
goth.stack
|
||||||
.env
|
.env
|
||||||
airbin
|
airbin
|
||||||
tmp/
|
tmp/
|
||||||
|
|
23
README.md
23
README.md
|
@ -1,2 +1,23 @@
|
||||||
# goth-stack
|
# GOTH Stack
|
||||||
Go + Templates + HTMX
|
Go + Templates + HTMX
|
||||||
|
|
||||||
|
## Stack:
|
||||||
|
- Backend: Golang + Echo
|
||||||
|
- Rendering: Golang templates
|
||||||
|
- Style: TailwindCSS + DaisyUI
|
||||||
|
- Content format: Markdown
|
||||||
|
|
||||||
|
## Requirements:
|
||||||
|
- Bun (only to build styles)
|
||||||
|
- Golang 1.21.6 or newer
|
||||||
|
|
||||||
|
## Instructions:
|
||||||
|
1. Run go get
|
||||||
|
2. Duplicate the .env.example file and call it .env
|
||||||
|
3. Fill out the .env values
|
||||||
|
4. Run ```go install github.com/cosmtrek/air@latest``` to download Air for live reload
|
||||||
|
5. Run ```air``` to start the dev server
|
||||||
|
|
||||||
|
## Tests
|
||||||
|
Without Coverage: `go test atri.dad/lib`
|
||||||
|
With Coverage: `go test atri.dad/lib -cover`
|
|
@ -11,9 +11,7 @@ import (
|
||||||
type HomeProps struct {
|
type HomeProps struct {
|
||||||
Socials []lib.IconLink
|
Socials []lib.IconLink
|
||||||
Tech []lib.IconLink
|
Tech []lib.IconLink
|
||||||
ContractLink string
|
// Add more props here
|
||||||
ResumeURL string
|
|
||||||
SupportLink string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func Home(c echo.Context) error {
|
func Home(c echo.Context) error {
|
||||||
|
@ -56,9 +54,7 @@ func Home(c echo.Context) error {
|
||||||
props := HomeProps{
|
props := HomeProps{
|
||||||
Socials: socials,
|
Socials: socials,
|
||||||
Tech: tech,
|
Tech: tech,
|
||||||
ContractLink: "mailto:contract@atri.dad",
|
// Add more props here
|
||||||
ResumeURL: "https://srv.atri.dad/Atridad_Lahiji_Resume.pdf",
|
|
||||||
SupportLink: "https://donate.stripe.com/8wMeVF25c78L0V2288",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
templates := []string{
|
templates := []string{
|
||||||
|
|
Loading…
Add table
Reference in a new issue