Compare commits

10 Commits

Author SHA1 Message Date
c38fd7f435 Merge pull request 'staging' (#10) from staging into main
All checks were successful
release-tag / release-image (push) Successful in 2m21s
Reviewed-on: #10
2025-05-11 16:15:26 +00:00
e4d47b46e4 Merge pull request 'staging' (#9) from staging into main
All checks were successful
release-tag / release-image (push) Successful in 2m11s
Reviewed-on: #9
2025-05-11 10:18:49 +00:00
16b5ddfb7b Merge pull request 'Anpassung für dynamische Content-Gits' (#8) from staging into main
Some checks failed
release-tag / release-image (push) Failing after 45s
Reviewed-on: #8
2025-05-10 17:14:28 +00:00
5f089d727e Merge pull request 'staging' (#7) from staging into main
All checks were successful
release-tag / release-image (push) Successful in 1m52s
Reviewed-on: #7
2025-05-10 13:09:28 +00:00
0d98bd064e Merge pull request 'staging' (#6) from staging into main
All checks were successful
release-tag / release-image (push) Successful in 1m49s
Reviewed-on: #6
2025-05-07 20:28:52 +00:00
2a63985564 Merge pull request 'Update Datenschutz und Impressum Telefonnummer' (#5) from staging into main
All checks were successful
release-tag / release-image (push) Successful in 1m50s
Reviewed-on: #5
2025-05-07 16:18:58 +00:00
33c0f9d954 Merge pull request 'staging' (#4) from staging into main
All checks were successful
release-tag / release-image (push) Successful in 1m56s
Reviewed-on: #4
2025-05-06 22:00:17 +00:00
08cb7b689d Merge pull request 'staging' (#3) from staging into main
All checks were successful
release-tag / release-image (push) Successful in 1m50s
Reviewed-on: #3
2025-05-06 18:03:54 +00:00
32d3fc33d6 Merge pull request 'Contentpatch 20250506' (#2) from staging into main
All checks were successful
release-tag / release-image (push) Successful in 1m58s
Reviewed-on: #2
2025-05-06 12:52:51 +00:00
7afa89a66b Merge pull request 'staging' (#1) from staging into main
All checks were successful
release-tag / release-image (push) Successful in 1m55s
Reviewed-on: #1
2025-05-06 10:20:47 +00:00

View File

@@ -117,7 +117,6 @@ func main() {
staticDir := getenv("BLOG_STATIC_DIR", "/app/internal/web/static")
pagesDir := getenv("BLOG_PAGES_DIR", "/pages")
templatesDir := getenv("BLOG_TEMPLATES_DIR", "/templates")
storeEnabled := enabled("STORE_ENABLE", false)
ticksDir := getenv("BLOG_TICKS_DIR", "/ticks")
gitEnable := enabled("GIT_ENABLE", false)
gitRepo := getenv("GIT_REPO", "null")
@@ -132,8 +131,6 @@ func main() {
fmt.Println("Geladener Katalog:", TickCatalog)
cloneRepo(gitRepo, gitBranch, gitDir)
funcs := template.FuncMap{
"now": time.Now, // jetztZeit bereitstellen
}
@@ -141,11 +138,6 @@ func main() {
// Basislayout zuerst parsen
layout := template.Must(template.New("base").Funcs(funcs).ParseFiles(templatesDir + "/base.html"))
var tplStore *template.Template
if storeEnabled {
tplStore = template.Must(template.New("store").Funcs(funcs).ParseFiles(templatesDir + "/store.html"))
}
// LISTSeite: base + list.html
tplList = template.Must(layout.Clone())
template.Must(tplList.Funcs(funcs).ParseFiles(templatesDir + "/list.html"))
@@ -228,17 +220,6 @@ func main() {
mux.Handle("/static/", cacheControl(http.StripPrefix("/static/", http.FileServer(http.Dir(staticDir)))))
mux.HandleFunc("/store", func(w http.ResponseWriter, r *http.Request) {
if storeEnabled {
if err := tplStore.ExecuteTemplate(w, "store", nil); err != nil {
http.Error(w, err.Error(), 500)
}
} else {
http.NotFound(w, r)
}
})
if gitEnable {
xMinute, _ := strconv.Atoi(gitInterval)
xDuration := time.Duration(xMinute) * time.Minute