diff options
Diffstat (limited to 'public/assets')
-rw-r--r-- | public/assets/additionnal-page.yml.dist | 35 | ||||
-rw-r--r-- | public/assets/config.yml.dist | 5 |
2 files changed, 40 insertions, 0 deletions
diff --git a/public/assets/additionnal-page.yml.dist b/public/assets/additionnal-page.yml.dist new file mode 100644 index 0000000..f918dc1 --- /dev/null +++ b/public/assets/additionnal-page.yml.dist | |||
@@ -0,0 +1,35 @@ | |||
1 | --- | ||
2 | # Additionnal page configuration | ||
3 | |||
4 | # Additionnal configurations are loaded using its file name, minus the extension, as an anchor (https://<mydashboad>#<config>). | ||
5 | # `config.yml` is still used as a base configuration, and all values here will overwrite it, so you don't have to re-defined everything | ||
6 | |||
7 | |||
8 | subtitle: "this is another dashboard page" | ||
9 | |||
10 | # This overwrites message config. Setting it to empty to remove message from this page and keep it only in the main one: | ||
11 | message: ~ | ||
12 | |||
13 | # as we want to include a differente link here (so we can get back to home page), we need to replicate all links or they will be revome when overwriting the links field: | ||
14 | links: | ||
15 | - name: "Home" | ||
16 | icon: "fas fa-home" | ||
17 | url: "#" | ||
18 | - name: "Contribute" | ||
19 | icon: "fab fa-github" | ||
20 | url: "https://github.com/bastienwirtz/homer" | ||
21 | target: "_blank" # optional html a tag target attribute | ||
22 | - name: "Wiki" | ||
23 | icon: "fas fa-book" | ||
24 | url: "https://www.wikipedia.org/" | ||
25 | |||
26 | services: | ||
27 | - name: "More applications on another page!" | ||
28 | icon: "fas fa-cloud" | ||
29 | items: | ||
30 | - name: "Awesome app on a second page!" | ||
31 | logo: "assets/tools/sample.png" | ||
32 | subtitle: "Bookmark example" | ||
33 | tag: "app" | ||
34 | url: "https://www.reddit.com/r/selfhosted/" | ||
35 | target: "_blank" | ||
diff --git a/public/assets/config.yml.dist b/public/assets/config.yml.dist index 85478ec..65c5098 100644 --- a/public/assets/config.yml.dist +++ b/public/assets/config.yml.dist | |||
@@ -56,6 +56,11 @@ links: | |||
56 | - name: "Wiki" | 56 | - name: "Wiki" |
57 | icon: "fas fa-book" | 57 | icon: "fas fa-book" |
58 | url: "https://www.wikipedia.org/" | 58 | url: "https://www.wikipedia.org/" |
59 | # this will link to a second homer page that will load config from additionnal-page.yml and keep default config values as in config.yml file | ||
60 | # see url field and assets/additionnal-page.yml.dist used in this example: | ||
61 | - name: "another page!" | ||
62 | icon: "fas fa-file-alt" | ||
63 | url: "#additionnal-page" | ||
59 | 64 | ||
60 | # Services | 65 | # Services |
61 | # First level array represent a group. | 66 | # First level array represent a group. |