diff --git a/golang/Makefile b/golang/Makefile index 6cdb403..3227c0d 100644 --- a/golang/Makefile +++ b/golang/Makefile @@ -1,5 +1,5 @@ serv: - DB_DRIVER="postgres" DB_URL="user=crow password=4LlKpnQ2RZPzL13BSpkW4k dbname=crowsnest host=10.99.0.3 port=5432 sslmode=disable" go run cmd/frontend/* + DB_DRIVER="postgres" DB_URL="user=crow password=4LlKpnQ2RZPzL13BSpkW4k dbname=crowsnest host=192.168.0.2 port=5432 sslmode=disable" go run cmd/frontend/* crawl: DB_DRIVER="postgres" DB_URL="user=crow password=4LlKpnQ2RZPzL13BSpkW4k dbname=crowsnest host=192.168.0.2 port=5432 sslmode=disable" go run cmd/crawler/main.go summ: diff --git a/golang/assets/templates/article.html b/golang/assets/templates/article.html index 37cfa2f..d2ad55d 100644 --- a/golang/assets/templates/article.html +++ b/golang/assets/templates/article.html @@ -1,19 +1,19 @@ {{ define "content" }} -
+
{{ range . }} -
+
-
{{ .Title }}
-
- {{ .ShortSource }} - {{ .PublishDate }} +

{{ .Title }}

+

+ {{ .ShortSource }} + {{ .PublishDate }} {{if .AiSummarized}} - ai summary + ai summary {{end}} - +

{{ .Summary }}

- Link + Link
{{ end }} diff --git a/golang/assets/templates/layout.html b/golang/assets/templates/layout.html index 30cde0d..9ed4b42 100644 --- a/golang/assets/templates/layout.html +++ b/golang/assets/templates/layout.html @@ -1,25 +1,49 @@ {{ define "base" }} - + - + -