From 4be289b876ebea58b5d3c5f0c58c5f66ac37e2e7 Mon Sep 17 00:00:00 2001 From: VnPower Date: Mon, 19 Jun 2023 13:25:49 +0700 Subject: [PATCH] stuff --- main.go | 3 +- template/layout.jet.html | 111 ++++++++++++++++----------------------- template/newest.jet.html | 14 ++--- views/routes.go | 2 +- 4 files changed, 55 insertions(+), 75 deletions(-) diff --git a/main.go b/main.go index a5bcbd9..3985563 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "net" "pixivfe/configs" "pixivfe/handler" @@ -23,7 +24,7 @@ func setupRouter() *fiber.App { server := fiber.New(fiber.Config{ AppName: "PixivFE", - DisableStartupMessage: true, + DisableStartupMessage: false, Views: engine, Prefork: true, JSONEncoder: json.Marshal, diff --git a/template/layout.jet.html b/template/layout.jet.html index bc3f85b..12f5055 100644 --- a/template/layout.jet.html +++ b/template/layout.jet.html @@ -1,6 +1,7 @@ - + + {{ if isset(Title) }} {{ Title }} - PixivFE {{ else }} @@ -14,78 +15,56 @@ - + - + {{ embed() }} - + + diff --git a/template/newest.jet.html b/template/newest.jet.html index cac1610..74b8d5b 100644 --- a/template/newest.jet.html +++ b/template/newest.jet.html @@ -1,9 +1,9 @@
-

Newest works from all users

-
- Filter - Safe - R-18 -
-
{{ include "small-tn" Items }}
+

Newest works from all users

+
+ Filter + Safe + R-18 +
+
{{ include "small-tn" Items }}
diff --git a/views/routes.go b/views/routes.go index 083001a..310312f 100644 --- a/views/routes.go +++ b/views/routes.go @@ -52,7 +52,7 @@ func index_page(c *fiber.Ctx) error { // "Spotlights": spotlight, // "Newest": newest, // }) - return c.Render("temp", fiber.Map{"Title": "Test"}) + return c.Render("temp", fiber.Map{"Title": "Landing"}) } func user_page(c *fiber.Ctx) error {