add ability to include custom stylesheet (#85)
* add da-dk language * add ability to include custom stylesheet
This commit is contained in:
parent
cbf9d8adee
commit
394357c298
3 changed files with 10 additions and 2 deletions
|
@ -111,10 +111,15 @@ MARKDOWN=false
|
||||||
# HTML is not escaped. Don't put untrusted data here.
|
# HTML is not escaped. Don't put untrusted data here.
|
||||||
# CUSTOM_HTML_LOGIN=<p style="margin-top: 1em;">Some custom text for the Login page</p>
|
# CUSTOM_HTML_LOGIN=<p style="margin-top: 1em;">Some custom text for the Login page</p>
|
||||||
# CUSTOM_HTML_WISHLISTS=
|
# CUSTOM_HTML_WISHLISTS=
|
||||||
|
|
||||||
|
# Custom CSS stylesheet
|
||||||
|
# If you wish to include a custom stylesheet you can add the filename in the variable here.
|
||||||
|
# Remember to add the stylesheet to the filesystem at `static/css/custom.css`. In docker, mount `/usr/src/app/src/static/css/custom.css`.
|
||||||
|
# CUSTOM_CSS=custom.css
|
||||||
```
|
```
|
||||||
|
|
||||||
## Default Profile Pictures
|
## Default Profile Pictures
|
||||||
To replace the default snowman profile pictures, replace the files in `static/img/default-pfps`. In docker, mount `/usr/src/app/static/img/default-pfps`.
|
To replace the default snowman profile pictures, replace the files in `static/img/default-pfps`. In docker, mount `/usr/src/app/src/static/img/default-pfps`.
|
||||||
|
|
||||||
## Startup
|
## Startup
|
||||||
```sh
|
```sh
|
||||||
|
|
|
@ -20,7 +20,8 @@ module.exports = {
|
||||||
customHtml: {
|
customHtml: {
|
||||||
wishlists: process.env.CUSTOM_HTML_WISHLISTS,
|
wishlists: process.env.CUSTOM_HTML_WISHLISTS,
|
||||||
login: process.env.CUSTOM_HTML_LOGIN
|
login: process.env.CUSTOM_HTML_LOGIN
|
||||||
}
|
},
|
||||||
|
customCSS: process.env.CUSTOM_CSS || null
|
||||||
}
|
}
|
||||||
|
|
||||||
if (module.exports.guestPassword) module.exports.wishlist.public = false
|
if (module.exports.guestPassword) module.exports.wishlist.public = false
|
||||||
|
|
|
@ -15,6 +15,8 @@ html(lang='en')
|
||||||
link(rel='stylesheet', href=`${_CC.config.base}libraries/fontawesome/css/all.css`)
|
link(rel='stylesheet', href=`${_CC.config.base}libraries/fontawesome/css/all.css`)
|
||||||
link(rel='stylesheet', href=`${_CC.config.base}libraries/animate.min.css`)
|
link(rel='stylesheet', href=`${_CC.config.base}libraries/animate.min.css`)
|
||||||
link(rel='stylesheet', href=`${_CC.config.base}css/main.css`)
|
link(rel='stylesheet', href=`${_CC.config.base}css/main.css`)
|
||||||
|
if _CC.config.customCSS
|
||||||
|
link(rel='stylesheet', href=`${_CC.config.base}css/${_CC.config.customCSS}`)
|
||||||
body
|
body
|
||||||
.print
|
.print
|
||||||
.content
|
.content
|
||||||
|
|
Loading…
Reference in a new issue