|
@@ -8,16 +8,16 @@ An improved gogs dark theme, original from [Stylish](https://userstyles.org/styl
|
|
|
- Add following HTML code in `/your/gogs/path/custom/templates/inject/head.tmpl`
|
|
- Add following HTML code in `/your/gogs/path/custom/templates/inject/head.tmpl`
|
|
|
|
|
|
|
|
```html
|
|
```html
|
|
|
-<link rel="stylesheet" href="/css/themes/dark-theme.css" />
|
|
|
|
|
-<link rel="stylesheet" href="/css/themes/codemirror-material-darker.css" />
|
|
|
|
|
|
|
+ <link rel="stylesheet" href="/css/themes/dark-theme.css" />
|
|
|
|
|
+ <link rel="stylesheet" href="/css/themes/codemirror-material-darker.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
|
|
- 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
|
|
|
|
|
|
|
|
```nginx
|
|
```nginx
|
|
|
-location =/img/gogs-hero.png {
|
|
|
|
|
- alias /var/www/yoursite/gogs-hero-light.png;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ location =/img/gogs-hero.png {
|
|
|
|
|
+ alias /var/www/yoursite/gogs-hero-light.png;
|
|
|
|
|
+ }
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
- Restart Nginx and Gogs
|
|
- Restart Nginx and Gogs
|
|
@@ -25,3 +25,4 @@ location =/img/gogs-hero.png {
|
|
|
## Todo
|
|
## Todo
|
|
|
|
|
|
|
|
- [x] CodeMirror themes
|
|
- [x] CodeMirror themes
|
|
|
|
|
+- [ ] CodeMirror Markdown theme
|