moved shit around, started working on more features

main
Johannes Bülow 2024-12-20 13:30:56 +01:00
parent 26a9dc1e03
commit ac51638665
Signed by: jmb
GPG Key ID: B56971CF7B8F83A6
159 changed files with 502 additions and 35 deletions

46
.air.toml Normal file
View File

@ -0,0 +1,46 @@
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
args_bin = []
bin = "./www"
cmd = "make webserver"
delay = 1000
exclude_dir = ["hugo", "tmp", "vendor"]
exclude_file = []
exclude_regex = ["_test.go", ".*_templ.go"]
exclude_unchanged = false
follow_symlink = false
full_bin = "PORT=8080 HOST=127.0.0.1 DEBUG=true ./www"
include_dir = []
include_ext = ["go", "tpl", "tmpl", "html", "templ", "toml"]
include_file = []
kill_delay = "0s"
log = "build-errors.log"
poll = false
poll_interval = 0
post_cmd = []
pre_cmd = []
rerun = false
rerun_delay = 500
send_interrupt = false
stop_on_error = false
[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"
[log]
main_only = false
time = false
[misc]
clean_on_exit = false
[screen]
clear_on_rebuild = false
keep_scroll = true

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
public/
resources/
app
www

View File

@ -4,13 +4,14 @@ CTNAME:=git.jmbit.de/jmb/www-jmbit-de
all: hugo webserver
dev:
hugo server -D
cd hugo && hugo server -D
hugo:
hugo
cd hugo && hugo
webserver:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app .
templ generate .
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o www .
container:
podman build -t $(CTNAME):latest -t $(CTNAME):$(HEAD) .
@ -19,5 +20,7 @@ run:
podman run --rm -p8080:80 $(CTNAME)
clean:
rm -rf public
rm -rf hugo/public
rm -f www
.PHONY: all dev hugo webserver container run clean

2
go.mod
View File

@ -1,3 +1,5 @@
module git.jmbit.de/jmb/www-jmbit-de
go 1.21.5
require github.com/a-h/templ v0.2.793 // indirect

2
go.sum
View File

@ -0,0 +1,2 @@
github.com/a-h/templ v0.2.793 h1:Io+/ocnfGWYO4VHdR0zBbf39PQlnzVCVVD+wEEs6/qY=
github.com/a-h/templ v0.2.793/go.mod h1:lq48JXoUvuQrU0VThrK31yFwdRjTCnIE5bcPCM9IP1w=

8
hugo/hugo.go Normal file
View File

@ -0,0 +1,8 @@
package hugo
import (
"embed"
)
//go:embed public/*
var PublicFS embed.FS

View File

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

View File

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

View File

Before

Width:  |  Height:  |  Size: 228 KiB

After

Width:  |  Height:  |  Size: 228 KiB

View File

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

View File

Before

Width:  |  Height:  |  Size: 190 KiB

After

Width:  |  Height:  |  Size: 190 KiB

View File

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 189 KiB

View File

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

Before

Width:  |  Height:  |  Size: 227 KiB

After

Width:  |  Height:  |  Size: 227 KiB

View File

Before

Width:  |  Height:  |  Size: 308 KiB

After

Width:  |  Height:  |  Size: 308 KiB

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

Before

Width:  |  Height:  |  Size: 416 KiB

After

Width:  |  Height:  |  Size: 416 KiB

View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

Before

Width:  |  Height:  |  Size: 291 KiB

After

Width:  |  Height:  |  Size: 291 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

Before

Width:  |  Height:  |  Size: 220 KiB

After

Width:  |  Height:  |  Size: 220 KiB

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Some files were not shown because too many files have changed in this diff Show More