diff --git a/main.go b/main.go index 7271810..bdf6463 100644 --- a/main.go +++ b/main.go @@ -49,13 +49,13 @@ func main() { dir, relDir := getPhotoPaths(cfg) mux.Handle(dir, http.StripPrefix(dir, http.FileServer(http.Dir(relDir)))) } - slog.Info(fmt.Sprintf("Starting go-resume server, listening on port %d", port)) - err = http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", port), mux) + slog.Info(fmt.Sprintf("Starting go-resume server, listening on port %d", *port)) + err = http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", *port), mux) slog.Error(err.Error()) } func home(w http.ResponseWriter, r *http.Request) { - slog.Info(fmt.Sprintf("Client: %s Request: &s ", r.Header.Get("X-Forwarded-For"), r.URL.Path)) + slog.Info(fmt.Sprintf("Client: %s Request: %s ", r.Header.Get("X-Forwarded-For"), r.URL.Path)) acceptedPages := []string{basePath, basePath + "light", basePath + "dark"} if !slices.Contains(acceptedPages, r.URL.Path) { http.NotFound(w, r) diff --git a/static/css/base.css b/static/css/base.css index 4a51ded..0a16986 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -85,5 +85,9 @@ body { display: none; } .item { page-break-inside: avoid; } + .education { + page-break-before: always; } html { - color-adjust: exact; } } + color-adjust: exact; } + footer { + display: none; } } diff --git a/static/css/base.scss b/static/css/base.scss index dccac85..eea9914 100644 --- a/static/css/base.scss +++ b/static/css/base.scss @@ -110,7 +110,13 @@ body { .item { page-break-inside: avoid; } + .education { + page-break-before: always; + } html { color-adjust: exact; } + footer { + display: none; + } } diff --git a/static/css/light-style.css b/static/css/light-style.css index 82e10e8..7995ef6 100644 --- a/static/css/light-style.css +++ b/static/css/light-style.css @@ -90,8 +90,12 @@ body { display: none; } .item { page-break-inside: avoid; } + .education { + page-break-before: always; } html { - color-adjust: exact; } } + color-adjust: exact; } + footer { + display: none; } } .tag:not(body).is-success { background-color: var(--section-title-color); } diff --git a/templates/index.html b/templates/index.html index 8dd7967..c9eb78a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,7 +25,7 @@