An improved gogs dark theme

Jerry Liao ce26cfa0d8 Update codemirror-material-darker.css 2 年之前
LICENSE 909ba15978 Initial commit 2 年之前
README.md 4336872e61 Update 'README.md' 2 年之前
codemirror-material-darker.css ce26cfa0d8 Update codemirror-material-darker.css 2 年之前
dark-theme.css 24e335c4e8 Add dark-theme.css 2 年之前
gogs-hero-light.png f3a26f2b22 Add gogs-hero-light.png 2 年之前

README.md

gogs-dark-theme

An improved gogs dark theme, original from Stylish

Instructions

  • Put dark-theme.css under /your/gogs/path/custom/public/themes foler
  • Add following HTML code in /your/gogs/path/custom/templates/inject/head.tmpl

    <link rel="stylesheet" href="/css/themes/dark-theme.css">
    
  • If you're using Nginx to proxy Gogs, upload gogs-hero-light.png to the site folder and add the following lines in your site config

    location =/img/gogs-hero.png {
     alias /var/www/yoursite/gogs-hero-light.png;
    }
    
  • Restart Nginx and Gogs

Todo

  • CodeMirror themes