An improved gogs dark theme

jerryliao d76338e4e6 Update codemirror-material-darker.css 1 tahun lalu
LICENSE 6f0929f8f9 Initial commit 1 tahun lalu
README.md 3a903b398c Update 'README.md' 1 tahun lalu
codemirror-material-darker.css d76338e4e6 Update codemirror-material-darker.css 1 tahun lalu
dark-theme.css 8ce5d2f977 Add dark-theme.css 1 tahun lalu
gogs-hero-light.png 99dadf7a19 Add gogs-hero-light.png 1 tahun lalu

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