Appearance
Updates & changelog
We improve templates over time: bug fixes, browser and dependency updates, accessibility and performance work, sometimes new sections or screens. Your licence includes these updates.
How you hear about an update
- Email: when a new version is released, we email buyers with a short summary of what changed.
- Changelog: every version is listed in
CHANGELOG.mdin the project and on the template's page on the store. - Your account: usetemplates.store/account shows the latest version next to each purchase.
Version numbers (semver)
Versions follow semantic versioning: MAJOR.MINOR.PATCH, for example 1.4.2. Each release is a Git tag (v1.4.2) in the repo.
| Change | Example | What it means for you |
|---|---|---|
| Patch | 1.4.1 → 1.4.2 | Bug fixes only. Safe to apply. |
| Minor | 1.4.2 → 1.5.0 | New features or sections, backwards compatible. Your content keeps working. |
| Major | 1.5.0 → 2.0.0 | Bigger changes (new structure, major dependency upgrades). Read the changelog's upgrade notes before merging. |
The changelog looks like this:
md
# Changelog
## 1.1.0
- Added: FAQ section (disabled by default in sections.config.js)
- Fixed: mobile menu closing on iOS Safari
## 1.0.0
Initial release.Option 1: git pull (GitHub repo)
If you cloned the private repo, updates are a pull away.
You haven't changed anything yet
bash
git pull
npm install # in case dependencies changed
npm run devYou've customised the site (the usual case)
If you followed Put your work in your own private repo, our repo is called upstream:
bash
git status # commit your own work first
git fetch upstream --tags
git log --oneline main..upstream/main # see what's new
git merge upstream/main # bring the update in
npm install
npm run dev # check everything still looks right
git push # save to your own repoWant a specific version only? Merge its tag instead: git merge v1.1.0.
Conflicts are normal and easy
If we changed a file you also edited (often src/data/content.js or a section you restyled), Git marks a conflict. Open the file, keep your text and our fix where they differ, remove the <<<<<<<, ======= and >>>>>>> markers, then:
bash
git add -A
git commitVS Code shows conflicts with Accept Current / Accept Incoming / Accept Both buttons, which makes this quick.
Option 2: re-download the ZIP
- Download the latest ZIP from your account.
- Unzip it into a new folder. Don't unzip over your customised project.
- Read
CHANGELOG.mdto see which files changed. - Copy the fixed files into your project, or copy your
src/data/,src/assets/,index.htmlandsrc/index.cssinto the new version, whichever is less work. - Run
npm installandnpm run devand check the site.
If you started from the ZIP
If you ran git init on your ZIP copy and added our repo as upstream (see If you started from the ZIP), merge an update with:
bash
git fetch upstream --tags
git merge upstream/main --allow-unrelated-histories # first time only
git merge upstream/main # later updatesShould I update?
- Live site works and you're happy: you don't have to. Static sites don't "expire".
- Patch releases with fixes for something you noticed: yes.
- Dependency security notes in the changelog: yes.
- Major releases: only if you want the new features. Read the upgrade notes first, and test with
npm run build && npm run previewbefore you deploy.