diff --git a/README.md b/README.md index afd014f7..98ae3ef9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![nyanpasu~](https://a.safe.moe/dNEEh.png) + # Nyaa replacement [![Build Status](https://travis-ci.org/ewhal/nyaa.svg?branch=master)](https://travis-ci.org/ewhal/nyaa) ## Motivation @@ -40,8 +42,11 @@ The provided unit file uses options directly; if you prefer a config file, do th * Make sukebei db schema compatible with current code * Fix up comments display * custom 404 page +* Query caching ## Other features +* Add support for postgres dbs * Report Feature and Moderation System + * blocking upload of torrent hashes * API improvement * Scraping * Accounts and Registration System diff --git a/config/config.go b/config/config.go index addac6ef..d7597ecc 100644 --- a/config/config.go +++ b/config/config.go @@ -19,7 +19,7 @@ type Config struct { DBParams string `json: "db_type"` } -var Defaults = Config{"localhost", 9999, "sqlite3", "./nyaa.db"} +var Defaults = Config{"localhost", 9999, "sqlite3", "./nyaa.db?cache_size=50"} var allowedDatabaseTypes = map[string]bool{ "sqlite3": true, diff --git a/css/style.css b/css/style.css index fb1537f6..6d0df490 100644 --- a/css/style.css +++ b/css/style.css @@ -24,7 +24,15 @@ nav#mainmenu a { div#container { padding-top: 1.25em; - background: white url(/img/renchon.png) no-repeat; + background: white; +} + +div#container.cont-home { + background: white url(/img/renchon.png) no-repeat; +} +div#container.cont-view { + background: white url(/img/renchon.png) no-repeat; + background-size: 61px; } body { diff --git a/img/renchon.png b/img/renchon.png index a4c2ec22..b99ac944 100644 Binary files a/img/renchon.png and b/img/renchon.png differ diff --git a/templates/home.html b/templates/home.html index fa3eb538..8e3ef6f4 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,4 +1,5 @@ {{define "title"}}Home{{end}} +{{define "contclass"}}cont-home{{end}} {{define "content"}}