aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-01-12 22:04:26 -0800
committerBastien Wirtz <bastien.wirtz@gmail.com>2020-01-12 22:04:26 -0800
commit56c69e0d6bd7265afec6cd66a4875ebf6357ea7d (patch)
tree60c3d407e1eb6a0d22c970d9434e86a0c92565ff
parent2e7bedd13e0ce409e5bfa45095a9154463257870 (diff)
downloadhomer-56c69e0d6bd7265afec6cd66a4875ebf6357ea7d.tar.gz
homer-56c69e0d6bd7265afec6cd66a4875ebf6357ea7d.tar.zst
homer-56c69e0d6bd7265afec6cd66a4875ebf6357ea7d.zip
Adding support for custom links target
-rw-r--r--README.md2
-rw-r--r--app.css2
-rw-r--r--app.js2
-rw-r--r--app.scss2
-rw-r--r--config.yml2
-rw-r--r--index.html2
6 files changed, 8 insertions, 4 deletions
diff --git a/README.md b/README.md
index f149549..fe188b7 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,7 @@ links:
37 - name: "ansible" 37 - name: "ansible"
38 icon: "fa-github" 38 icon: "fa-github"
39 url: "https://github.com/xxxxx/ansible/" 39 url: "https://github.com/xxxxx/ansible/"
40 target: '_blank' # optionnal html a tag target attribute
40 - name: "Wiki" 41 - name: "Wiki"
41 icon: "fa-book" 42 icon: "fa-book"
42 url: "https://wiki.xxxxxx.com/" 43 url: "https://wiki.xxxxxx.com/"
@@ -55,6 +56,7 @@ services:
55 subtitle: "Continuous integration server" 56 subtitle: "Continuous integration server"
56 tag: "CI" 57 tag: "CI"
57 url: "#" 58 url: "#"
59 target: '_blank' # optionnal html a tag target attribute
58 - name: "RabbitMQ Management" 60 - name: "RabbitMQ Management"
59 logo: "/assets/tools/rabbitmq.png" 61 logo: "/assets/tools/rabbitmq.png"
60 subtitle: "Manage & monitor RabbitMQ server" 62 subtitle: "Manage & monitor RabbitMQ server"
diff --git a/app.css b/app.css
index 27617de..9b2453a 100644
--- a/app.css
+++ b/app.css
@@ -139,7 +139,7 @@ body {
139 background-color: #4285f4; } 139 background-color: #4285f4; }
140 body #bighead .navbar a { 140 body #bighead .navbar a {
141 color: #ffffff; } 141 color: #ffffff; }
142 body #bighead .navbar a:hover { 142 body #bighead .navbar a:hover, body #bighead .navbar a:focus {
143 color: #ffffff; 143 color: #ffffff;
144 background-color: #5a95f5; } 144 background-color: #5a95f5; }
145 body #main-section { 145 body #main-section {
diff --git a/app.js b/app.js
index 6c2ba90..0cd75b5 100644
--- a/app.js
+++ b/app.js
@@ -87,7 +87,7 @@ Vue.component('service', {
87 props: ['item'], 87 props: ['item'],
88 template: `<div> 88 template: `<div>
89 <div class="card"> 89 <div class="card">
90 <a :href="item.url"> 90 <a :href="item.url" :target="item.target">
91 <div class="card-content"> 91 <div class="card-content">
92 <div class="media"> 92 <div class="media">
93 <div v-if="item.logo" class="media-left"> 93 <div v-if="item.logo" class="media-left">
diff --git a/app.scss b/app.scss
index defd931..ade72f3 100644
--- a/app.scss
+++ b/app.scss
@@ -160,7 +160,7 @@ body {
160 160
161 a { 161 a {
162 color: #ffffff; 162 color: #ffffff;
163 &:hover { 163 &:hover, &:focus {
164 color: #ffffff; 164 color: #ffffff;
165 background-color: lighten( $secondary-color, 5% ); 165 background-color: lighten( $secondary-color, 5% );
166 } 166 }
diff --git a/config.yml b/config.yml
index 7288da6..3d87016 100644
--- a/config.yml
+++ b/config.yml
@@ -20,6 +20,7 @@ links:
20 - name: "ansible" 20 - name: "ansible"
21 icon: "fab fa-github" 21 icon: "fab fa-github"
22 url: "https://github.com/xxxxx/ansible/" 22 url: "https://github.com/xxxxx/ansible/"
23 target: '_blank' # optionnal html a tag target attribute
23 - name: "Wiki" 24 - name: "Wiki"
24 icon: "fas fa-book" 25 icon: "fas fa-book"
25 url: "https://wiki.xxxxxx.com/" 26 url: "https://wiki.xxxxxx.com/"
@@ -36,6 +37,7 @@ services:
36 subtitle: "Continuous integration server" 37 subtitle: "Continuous integration server"
37 tag: "CI" 38 tag: "CI"
38 url: "#" 39 url: "#"
40 target: '_blank' # optionnal html a tag target attribute
39 - name: "RabbitMQ Management" 41 - name: "RabbitMQ Management"
40 logo: "assets/tools/rabbitmq.png" 42 logo: "assets/tools/rabbitmq.png"
41 subtitle: "Manage & monitor RabbitMQ server" 43 subtitle: "Manage & monitor RabbitMQ server"
diff --git a/index.html b/index.html
index 1883223..2d88daa 100644
--- a/index.html
+++ b/index.html
@@ -33,7 +33,7 @@
33 <div class="container"> 33 <div class="container">
34 <div class="navbar-menu"> 34 <div class="navbar-menu">
35 <div class="navbar-start"> 35 <div class="navbar-start">
36 <a v-for="link in config.links" class="navbar-item" :href="link.url"> 36 <a v-for="link in config.links" class="navbar-item" :href="link.url" :target="link.target">
37 <i v-if="link.icon" style="margin-right: 6px;" :class="link.icon"></i> 37 <i v-if="link.icon" style="margin-right: 6px;" :class="link.icon"></i>
38 {{ link.name }} 38 {{ link.name }}
39 </a> 39 </a>