Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tnwhitwell/hugo-startpage-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Whitwell <tom@whitwell.xyz>2018-04-23 13:37:53 +0300
committerTom Whitwell <tom@whitwell.xyz>2018-04-23 13:37:53 +0300
commitfdd1c4f3fdb53b8524aae72ece3edd7d3fab2f0e (patch)
tree433c01ff27559600542485793b5cf2c1c4f1de31
parenta1e1f96411848f4250d217bab0ad3e4f17727a27 (diff)
update docs to explain offline caching
-rw-r--r--README.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/README.md b/README.md
index 59e6294..7c3b32c 100644
--- a/README.md
+++ b/README.md
@@ -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.