make icons dir configurable #69
Signed-off-by: weru <fromweru@gmail.com>
| | |
| | | } |
| | | } |
| | | |
| | | function loadSvg(file, parent, path = 'icons/') { |
| | | function loadSvg(file, parent, path = iconsPath) { |
| | | const link = new URL(`${path}${file}.svg`, rootURL).href; |
| | | fetch(link) |
| | | .then((response) => { |
| | |
| | | |
| | | // config defined values |
| | | const codeBlockConfig = JSON.parse('{{ partial "functions/getCodeConfig" . }}'); |
| | | const iconsPath = `{{ partialCached "functions/getIconPath" . }}`; |
| | | |
| | | // defined in i18n / translation files |
| | | const quickLinks = '{{ T "quick_links" }}'; |
| | |
| | | # disable showing line numbers by default. Switch to `true` if you'd rather have them on. |
| | | codeLineNumbers = false |
| | | |
| | | # By default the template will look for icons under the icons directory. In some situations you might wanna change that. edit the line below |
| | | # iconsPath = 'icons/' |
| | | |
| | | # Site logo |
| | | [logo] |
| | | lightMode = "images/compose.svg" |