soapbox/docs/customization.md

61 wiersze
2.2 KiB
Markdown
Czysty Zwykły widok Historia

2020-05-01 21:22:26 +00:00
# Customizing Soapbox
2020-05-01 21:44:28 +00:00
First [Install Soapbox](https://soapbox.pub/)
2020-05-01 21:22:26 +00:00
Soapbox supports customization of the user interface, to allow per instance branding and other features. Current customization features include:
* Instance name
* Site logo
2020-05-01 21:44:28 +00:00
* Promo panel list items, e.g. blog site link
2020-05-01 21:22:26 +00:00
* Favicon
* About page
* Terms of Service page
2020-05-01 21:44:28 +00:00
## Instance Name
Instance name is edited during the Pleroma installation step or via admin configuration
## Instance Description
Instance description is edited during the Pleroma installation step or via admin configuration
## Captcha on Registration Page
Use of Captcha on registration page is edited during the Pleroma installation step or via admin configuration
2020-05-01 21:44:28 +00:00
## Site Logo and Promo Panel List Items
The site logo and promo panel list items are customized by copying `soapbox.example.json` in the `static/instance` folder to `soapbox.json`.
The site logo, in SVG format, is rendered to be able to allow the site theme colors to appear in the less than 100% opaque sections of the logo.
The logo colors are rendered in a color that provides contrast for the site theme.
2020-05-01 21:44:28 +00:00
Re-create the webpack and restart the soapbox-fe service to effect the changes.
An example of the contents of `soapbox.example.json`:
```
{
"logo": "https://media.gleasonator.com/site_uploads/files/000/000/002/original/logo.svg",
"promoPanel": {
"items": [{
"icon": "area-chart",
"text": "Our Site stats",
"url": "https://fediverse.network/example.com"
}, {
"icon": "comment-o",
"text": "Our Site blog",
"url": "https://blog.example.com"
}]
},
"extensions": {
"patron": false
},
"defaultSettings": {
"autoPlayGif": false,
"theme": "lime"
}
}
```
## Favicon
The favicon is customized by dropping a favicon.png file into the `/static` folder.
Re-create the webpack and restart the soapbox-fe service to effect the changes.
## About Page and Terms of Service Page
The About page is customized by ensuring that the `static/instance/about` folder exists and dropping an `index.html` file into it.
The Terms of Service page is customized by dropping a `tos.html` file into the `static/instance/about` folder.
Re-create the webpack and restart the soapbox-fe service to effect the changes.