diff --git a/jumpapp/classes/Site.php b/jumpapp/classes/Site.php index 8112f9e..289bb99 100644 --- a/jumpapp/classes/Site.php +++ b/jumpapp/classes/Site.php @@ -37,6 +37,7 @@ class Site { $this->newtab = isset($sitearray['newtab']) ? $sitearray['newtab'] : (isset($this->defaults['newtab']) ? $this->defaults['newtab'] : false); $this->iconname = $sitearray['icon'] ?? null; $this->tags = $sitearray['tags'] ?? $this->tags; + $this->description = isset($sitearray['description']) ? $sitearray['description'] : $sitearray['name']; } /** diff --git a/jumpapp/sites/sites.json b/jumpapp/sites/sites.json index 775fbc4..e75b2fe 100644 --- a/jumpapp/sites/sites.json +++ b/jumpapp/sites/sites.json @@ -8,6 +8,7 @@ { "name": "Github", "url" : "https://github.com/daledavies/jump", + "description": "This is a test", "nofollow": false, "newtab": true }, @@ -18,6 +19,7 @@ { "name": "Bitwarden", "url" : "https://bitwarden.example.com", + "description": "This is another test", "icon": "bitwarden.png", "tags": ["stuff"] }, diff --git a/jumpapp/templates/sites.mustache b/jumpapp/templates/sites.mustache index 6dc4f09..95ed095 100644 --- a/jumpapp/templates/sites.mustache +++ b/jumpapp/templates/sites.mustache @@ -1,6 +1,6 @@ {{# hassites}}