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/
|
||||
atri.dad
|
||||
goth.stack
|
||||
.env
|
||||
airbin
|
||||
tmp/
|
||||
|
|
23
README.md
23
README.md
|
@ -1,2 +1,23 @@
|
|||
# goth-stack
|
||||
# GOTH Stack
|
||||
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 {
|
||||
Socials []lib.IconLink
|
||||
Tech []lib.IconLink
|
||||
ContractLink string
|
||||
ResumeURL string
|
||||
SupportLink string
|
||||
// Add more props here
|
||||
}
|
||||
|
||||
func Home(c echo.Context) error {
|
||||
|
@ -56,9 +54,7 @@ func Home(c echo.Context) error {
|
|||
props := HomeProps{
|
||||
Socials: socials,
|
||||
Tech: tech,
|
||||
ContractLink: "mailto:contract@atri.dad",
|
||||
ResumeURL: "https://srv.atri.dad/Atridad_Lahiji_Resume.pdf",
|
||||
SupportLink: "https://donate.stripe.com/8wMeVF25c78L0V2288",
|
||||
// Add more props here
|
||||
}
|
||||
|
||||
templates := []string{
|
||||
|
|
Loading…
Add table
Reference in a new issue