Updates
A new release of the template comes as a new download. Your site is the HTML folder you changed, so an update means copying the template's own files from the new download over yours, and leaving your files alone. Which is which never changes, and the Changelog lists the files each release touched.
How to access
The new download → HTML folder, next to your site's HTML folder
Which files are yours
| The template's: an update replaces them | Yours: an update never touches them |
|---|---|
css/main.css, css/vendor.css, css/components.css | The pages (*.html) |
js/app.js, js/manifest.js, js/header-seed.js, js/visitor-preferences.js | css/custom.css, css/variables.css, css/fonts.css |
js/features/, js/vendor/ | js/config.js, js/custom.js |
components/ | mail.php, assets/ |
This is why every change of your own belongs in a file on the right: a style in css/custom.css, a script in js/custom.js, never an edit to css/main.css or js/app.js, which the next update would undo. Each page's head says the same in its notes:
html
<!-- Stylesheets: vendor.css, main.css and components.css are the template's, replaced by an update; fonts.css and variables.css are yours -->Updating
▶️ Step 1.
Back up your site's HTML folder.
▶️ Step 2.
Read the new release's entry in the Changelog: it lists the files the release changed.
▶️ Step 3.
From the new download's HTML folder, copy the template's files the entry lists over your own. Replace components/ as a whole folder: its files take new names when they change, and the new js/manifest.js names the new ones.
▶️ Step 4.
When the entry lists a page or one of your files, such as js/config.js with a new setting, do not copy it over yours: open both and carry the change into your copy by hand.
▶️ Step 5.
Load a few pages through your web server, visit from one to another, and open the browser's console: a line that starts with "Velum:" names anything the update found wrong. See Troubleshooting.
Working from the SOURCE toolkit
A site built with the SOURCE toolkit is edited in SOURCE/src, and its build writes the pages and the three stylesheets. Copy the template's scripts and components/ as above, replace SOURCE/build and SOURCE/packages with the new release's, carry the release's changes to SOURCE/src into yours by hand, then run the build: SOURCE toolkit.
Next: SOURCE toolkit.