add second page to homer, with links to city websites
This commit is contained in:
@@ -19,6 +19,11 @@ links:
|
|||||||
url: "https://fontawesome.com/search?q=files&o=r&ic=free&s=solid&ip=classic"
|
url: "https://fontawesome.com/search?q=files&o=r&ic=free&s=solid&ip=classic"
|
||||||
target: "_blank" # optional html a tag target attribute
|
target: "_blank" # optional html a tag target attribute
|
||||||
|
|
||||||
|
# this will link to a second homer page that will load config from additional-page.yml and keep default config values as in config.yml file
|
||||||
|
# see url field and assets/additional-page.yml.dist used in this example:
|
||||||
|
- name: "page 2"
|
||||||
|
icon: "fas fa-file-alt"
|
||||||
|
url: "#page2"
|
||||||
# Services
|
# Services
|
||||||
# First level array represent a group.
|
# First level array represent a group.
|
||||||
# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed).
|
# Leave only a "items" key if not using group (group name, icon & tagstyle are optional, section separation will not be displayed).
|
||||||
|
|||||||
31
ansible-5/roles/homer/files/page2.yml
Normal file
31
ansible-5/roles/homer/files/page2.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
# Additional page configuration
|
||||||
|
|
||||||
|
# Additional configurations are loaded using its file name, minus the extension, as an anchor (https://<mydashboad>#<config>).
|
||||||
|
# `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
|
||||||
|
|
||||||
|
|
||||||
|
subtitle: "this is another dashboard page"
|
||||||
|
|
||||||
|
# This overwrites message config. Setting it to empty to remove message from this page and keep it only in the main one:
|
||||||
|
message: ~
|
||||||
|
|
||||||
|
# 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:
|
||||||
|
links:
|
||||||
|
- name: "Home"
|
||||||
|
icon: "fas fa-home"
|
||||||
|
url: "#"
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: "Local Cities"
|
||||||
|
icon: "fa-solid fa-map"
|
||||||
|
items:
|
||||||
|
- name: "longueil"
|
||||||
|
icon: "fa-solid fa-tree-city"
|
||||||
|
url: "https://longueuil.quebec"
|
||||||
|
target: "_blank" # optional html a tag target attribute
|
||||||
|
|
||||||
|
- name: "Brossard"
|
||||||
|
icon: "fa-solid fa-tree-city"
|
||||||
|
url: "https://brossard.ca"
|
||||||
|
target: "_blank"
|
||||||
@@ -10,8 +10,11 @@
|
|||||||
|
|
||||||
- name: Copy Homer config file
|
- name: Copy Homer config file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: config.yml
|
src: "{{ item }}"
|
||||||
dest: /srv/dev-disk-by-uuid-5bc063a8-cf51-435d-9105-5987792ecf48/docker-compose/homer/assets/config.yml
|
dest: /srv/dev-disk-by-uuid-5bc063a8-cf51-435d-9105-5987792ecf48/docker-compose/homer/assets/{{ item }}
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
loop:
|
||||||
|
- config.yml
|
||||||
|
- page2.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user