diff --git a/api/serve.go b/api/serve.go index df30e76..758a8d9 100644 --- a/api/serve.go +++ b/api/serve.go @@ -111,7 +111,7 @@ func MakeServer(argv *args.Arguments, dbConn *sql.DB) *http.Server { mux.HandleFunc("GET /{name}", func(w http.ResponseWriter, r *http.Request) { requestContext := makeRequestContext() name := r.PathValue("name") - LogRequestContinuation(requestContext, r, w)(TemplateContinuation(name+".html", nil, true), FailurePassingContinuation)(LogExecutionTimeContinuation, LogExecutionTimeContinuation)(IdContinuation, IdContinuation) + LogRequestContinuation(requestContext, r, w)(VerifySessionContinuation, FailurePassingContinuation)(IdContinuation, IdContinuation)(TemplateContinuation(name+".html", nil, true), FailurePassingContinuation)(LogExecutionTimeContinuation, LogExecutionTimeContinuation)(IdContinuation, IdContinuation) }) return &http.Server{ diff --git a/args/args.go b/args/args.go index 64dee35..fe06f28 100644 --- a/args/args.go +++ b/args/args.go @@ -29,8 +29,8 @@ func GetArgs() (*Arguments, error) { databasePath := flag.String("database-path", "./hatecomputers.db", "Path to the SQLite database") templatePath := flag.String("template-path", "./templates", "Path to the template directory") staticPath := flag.String("static-path", "./static", "Path to the static directory") - scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron") + scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron") server := flag.Bool("server", false, "Run the server") migrate := flag.Bool("migrate", false, "Run the migrations") diff --git a/static/img/blinkies/autism.gif b/static/img/blinkies/autism.gif new file mode 100644 index 0000000..1290ff4 Binary files /dev/null and b/static/img/blinkies/autism.gif differ diff --git a/static/img/blinkies/connection.gif b/static/img/blinkies/connection.gif new file mode 100644 index 0000000..fa17e1a Binary files /dev/null and b/static/img/blinkies/connection.gif differ diff --git a/static/img/blinkies/construction.gif b/static/img/blinkies/construction.gif new file mode 100644 index 0000000..332399f Binary files /dev/null and b/static/img/blinkies/construction.gif differ diff --git a/static/img/blinkies/fuckcomputers.gif b/static/img/blinkies/fuckcomputers.gif new file mode 100644 index 0000000..c743acb Binary files /dev/null and b/static/img/blinkies/fuckcomputers.gif differ diff --git a/static/img/blinkies/hatecomputers-club.gif b/static/img/blinkies/hatecomputers-club.gif new file mode 100644 index 0000000..aa90c8d Binary files /dev/null and b/static/img/blinkies/hatecomputers-club.gif differ diff --git a/static/img/blinkies/loveuguys.gif b/static/img/blinkies/loveuguys.gif new file mode 100644 index 0000000..89cd0aa Binary files /dev/null and b/static/img/blinkies/loveuguys.gif differ diff --git a/templates/base.html b/templates/base.html index 1846493..094d018 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,14 +19,24 @@
-
+

hatecomputers.club

- + light mode. + | + home. + | + about. + | + guestbook. + | + webring. | {{ if .User }} - logout, {{ .User.DisplayName }}. + dns. + | + logout, {{ .User.DisplayName }}. {{ else }} - login. + login. {{ end }}

@@ -34,7 +44,29 @@
{{ template "content" . }}
-

hi

+ +
+ +
diff --git a/templates/home.html b/templates/home.html index 1938a03..de52bef 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,3 +1,3 @@ {{ define "content" }} - -{{ end }} \ No newline at end of file +

under construction!

+{{ end }}