Entire feature link is clickable
This commit is contained in:
parent
c67dc5c812
commit
c4fc92dccb
1 changed files with 14 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
|
||||
<ul class="feature-links">
|
||||
<li v-for="featureLink in this.$page.frontmatter.featureLinks" class="feature-link">
|
||||
<li v-for="featureLink in this.$page.frontmatter.featureLinks" v-on:click="visit(featureLink.href)" class="feature-link">
|
||||
<div>
|
||||
<a :href="featureLink.href" class="feature-link__title">{{ featureLink.title }}</a>
|
||||
<div v-if="featureLink.details" class="feature-link__details">{{ featureLink.details }}</div>
|
||||
|
@ -17,6 +17,19 @@
|
|||
|
||||
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {}
|
||||
},
|
||||
methods: {
|
||||
visit (slug) {
|
||||
window.location.href = slug;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import "../scss/init/colors";
|
||||
|
||||
|
|
Loading…
Reference in a new issue