diff options
author | Tom Whitwell <tom@whitwell.xyz> | 2018-04-23 13:37:53 +0300 |
---|---|---|
committer | Tom Whitwell <tom@whitwell.xyz> | 2018-04-23 13:37:53 +0300 |
commit | fdd1c4f3fdb53b8524aae72ece3edd7d3fab2f0e (patch) | |
tree | 433c01ff27559600542485793b5cf2c1c4f1de31 | |
parent | a1e1f96411848f4250d217bab0ad3e4f17727a27 (diff) |
update docs to explain offline caching
-rw-r--r-- | README.md | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -1,6 +1,6 @@ # Startpage theme for hugo -## Instructions: +## Instructions Create data/links.yml in your site directory This file takes the following format: @@ -24,3 +24,19 @@ This file takes the following format: - title: Al Jazeera url: https://www.aljazeera.com/ ``` + +## Offline Use + +The theme specifies and includes an appcache manifest for offline use. + +For content changes to be applied, this manifest must be updated on each build. + +Suggested way to get this updated is by running: + +```bash +hugo +CURRENT_REVISION=$(git rev-parse --short HEAD) +sed -i "s/COMMIT_SHA/${CURRENT_REVISION}/" public/startpage.appcache +``` + +This will ensure that the manifest is updated on each build so the cache is rebuilt by the browser after building. |