kiwix / kiwix-tools

Command line Kiwix tools: kiwix-serve, kiwix-manage, ...
https://download.kiwix.org/release/kiwix-tools/
GNU General Public License v3.0
433 stars 85 forks source link

Edit index.html or styles #496

Closed ivannyFosters closed 2 years ago

ivannyFosters commented 2 years ago

Hi,

Where can i find the 'index.html' file to edit the current styles of the document? I want to change the background, links, top taskbar, etc. image

Thanks,

kelson42 commented 2 years ago

In latest release, neither the topbar nor the welcome page can be changed (without recompiling kiwix-serve). But in current master (dev. version), there is a new --customIndex allowing to specify your custom welcome page template. The documentation is here https://github.com/kiwix/libkiwix/blob/master/README.md#custom-index-page. The topbar remains non-customisable.

ivannyFosters commented 2 years ago

Hi, really thanks for your answer.

I tried to modify service file as: ExecStart=/bin/sh -c '/usr/local/bin/kiwix-serve --port 49849 /opt/data/kiwix/*.zim --customIndexPath /var/www/html/index.html'

Doesnt work or --customInde. Where must i edit that parameter to add my custom template?

I dont understand that part.

Thanks, regards.