Entire feature link is clickable

This commit is contained in:
ポール ウェッブ 2018-05-29 17:07:46 -05:00
parent c67dc5c812
commit c4fc92dccb

View file

@ -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";