1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-11-22 02:10:10 +00:00

Updated Appearance (markdown)

Harvey Tindall 2021-06-01 00:44:13 +01:00
parent bc282463e4
commit 4bd583e93d

@ -10,7 +10,7 @@ Custom CSS can be achieved by modifying `css/dark.css` in the source code, and t
One can specify a path to a folder containing customized HTML files with the `files/html_templates` setting. Any files that match the names of jfa-go's internal templates will be loaded instead. The files use go's built in templating language, so familiarize yourself with it first ([a good resource](https://blog.gopheracademy.com/advent-2017/using-go-templates/)) so you know what different parts do. You can find the internal templates [here](https://github.com/hrfee/jfa-go/tree/main/html). One can specify a path to a folder containing customized HTML files with the `files/html_templates` setting. Any files that match the names of jfa-go's internal templates will be loaded instead. The files use go's built in templating language, so familiarize yourself with it first ([a good resource](https://blog.gopheracademy.com/advent-2017/using-go-templates/)) so you know what different parts do. You can find the internal templates [here](https://github.com/hrfee/jfa-go/tree/main/html).
Additionally, All text on the page, including password requirement strings (e.g "Must have at least n characters") can be customized. The `files/lang_files` setting should be the path to a custom language directory that follows the same structure as the internal [lang](https://github.com/hrfee/jfa-go/tree/main/lang) directory. Copy one of the internal language files from `lang/<admin|form|common|setup>` into it and change at least the `"meta": { name: "" }` field (This is the name that will appear in settings). If you use the same name, it will replace the internal language file. Restart jfa-go and you should see a new option in Settings > General > Language. Additionally, All text on the page, including password requirement strings (e.g "Must have at least n characters") can be customized. The `files/lang_files` setting should be the path to a custom language directory that follows the same structure as the internal [lang](https://github.com/hrfee/jfa-go/tree/main/lang) directory. Copy one of the internal language files from `lang/<admin|form|pwreset|telegram|common|setup>` into it and change at least the `"meta": { name: "" }` field (This is the name that will appear in settings). If you use the same name, it will replace the internal language file. Restart jfa-go and you should see a new option in Settings > General > Language.
Good luck! Good luck!