Repository for the CryptPad project website
- fetch dependencies:
npm i - build the site from source:
npm run build - for development use
npm run devto serve thebuilt/directory and refresh the browser automatically
Turn the banner on/off and edit the message in _data/banner.json.
The message is an array with one rendered line per element.
Data is formatted for input from CryptPad Form JSON
Anonimize data according to consent expressed (esp. for the data that is committed to this repo)
- remove organization if Q6 is NO (leave general sector if available)
- always remove the email in Q7
to add a testimonial to a sector page (Education, Nonprofit, Enterprise)
- add
"sector": "Nonprofit"to the entry
- add
Images currently have the most significant impact on loading time.
Ubuntu's repos contain two tools that make lossless image compression very simple:
apt install jpegoptim optipngWith these installed you can run npm run optimize to minimize the size of all images in static/images/ without any loss of quality.