diff --git a/template/temp.html b/template/temp.html
new file mode 100644
index 0000000..1d94010
--- /dev/null
+++ b/template/temp.html
@@ -0,0 +1,6 @@
+{{ template "header.html" }}
+
+
Landing page is still under construction.
+
Try pages in the sidebar, at the top left, or search something.
+
+{{ template "footer.html" }}
diff --git a/views/routes.go b/views/routes.go
index b5a40c7..83a9ecb 100644
--- a/views/routes.go
+++ b/views/routes.go
@@ -28,18 +28,19 @@ func artwork_page(c *gin.Context) {
})
}
-// func index_page(c *gin.Context) {
-// recommended, _ := handler.GetRecommendedIllust(c)
-// ranking, _ := handler.GetRankingIllust(c, "day")
-// spotlight := handler.GetSpotlightArticle(c)
-// newest, _ := handler.GetNewestIllust(c)
-// c.HTML(http.StatusOK, "index.html", gin.H{
-// "Recommended": recommended,
-// "Rankings": ranking,
-// "Spotlights": spotlight,
-// "Newest": newest,
-// })
-// }
+func index_page(c *gin.Context) {
+ // recommended, _ := handler.GetRecommendedIllust(c)
+ // ranking, _ := handler.GetRankingIllust(c, "day")
+ // spotlight := handler.GetSpotlightArticle(c)
+ // newest, _ := handler.GetNewestIllust(c)
+ // c.HTML(http.StatusOK, "index.html", gin.H{
+ // "Recommended": recommended,
+ // "Rankings": ranking,
+ // "Spotlights": spotlight,
+ // "Newest": newest,
+ // })
+ c.HTML(http.StatusOK, "temp.html", gin.H{})
+}
func user_page(c *gin.Context) {
id := c.Param("id")
@@ -181,7 +182,7 @@ func SetupRoutes(r *gin.Engine) {
PC = NewPixivClient(5000)
PC.SetSessionID(configs.Configs.PHPSESSID)
PC.SetUserAgent(configs.Configs.UserAgent)
- // r.GET("/", index_page)
+ r.GET("/", index_page)
r.GET("artworks/:id", artwork_page)
r.GET("users/:id", user_page)
r.GET("newest", newestArtworksPage)