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-02-17 13:22:42 +00:00
parent 82c4b65607
commit 1f5fb76cb0

@ -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. Copy one of the internal language files in the `lang/form` or `<folder with jfa-go>/build/data/lang/form` directory, and change at least the `"meta": { name: "" }` field (This is the name that will appear in settings). You can also edit an existing file to overwrite it. 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|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!