Maintenance
Static sites are fairly low maintenance but still requires some regular tasks:
Upgrade underlying tools
E.g. web framework (next / gatsby), npm, MUI, font-awesome etc.
# check outdated packages
$ npm outdated
# upgrade packages
$ npm update
Check links
Check from the source code
- check for broken internal links.
- check for broken external links.
- check for internal pages without incoming links.
- count words, avoid thin contents.
Check from the live site
Install broken-link-checker
$ npm install broken-link-checker -g
Run the tool (replace link with your website)
$ blc https://www.hackingnote.com -roe > _tmp/broken_links &
Google Search Console
- make sure sitemap link is correct and the content is up-to-date.
- check crawl errors.
- check page experiences, core web vitals, mobile usability.
Google Analytics
- analyze the traffic.
Chrome
- check console to make sure there's no errors.
- check Lighthouse for general and performance improvements.
Google AdSense
- review and optimize Google AdSense settings.