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

README.md - github.com/tnwhitwell/hugo-startpage-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8a7a40cc6392270bcfbb9cdb851c521bdb91932f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Startpage theme for hugo

## Instructions
Create data/links.yml in your site directory

This file takes the following format:

```yaml
---
- name: Some card title
  colour: blue # (a valid mdl color name)
  sections: # A section
  - links:
    - title: Google
      url: https://www.google.com
    - title: Bing
      url: https://www.bing.com/
  - links:
    - title: Hacker News
      url: https://news.ycombinator.com/
    - title: Reddit r/devops
      url: https://www.reddit.com/r/devops/
  - links:
    - title: Al Jazeera
      url: https://www.aljazeera.com/
```

## Demo Site (partially using the above links.yml)

https://tnwhitwell.github.io/hugo-startpage-theme/

## 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.