Skip to content

Commit 561dbdf

Browse files
committed
Direct links from jobs to improve conversions
1 parent b66b044 commit 561dbdf

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

components/Job.vue

+16-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
<div>
33
<div v-if="summary" class="ml-2 mr-2">
44
<h6>
5-
{{ job.title }}
6-
<nuxt-link :to="'/job/' + job.id" class="float-right">
7-
Read more <v-icon name="angle-double-right" />
8-
</nuxt-link>
5+
<span v-html="joblinksumm" />
96
</h6>
107
<p class="text-truncate mt-2">
118
{{ job.snippet }}
@@ -92,6 +89,21 @@ export default {
9289
this.job.url +
9390
'">More info &gt;</a>'
9491
)
92+
},
93+
joblinksumm() {
94+
// AdView expects links in a particular format, which invoke its own onmouse down, and so we have to put the
95+
// raw HTML in there via v-html.
96+
return (
97+
'<a target="_blank" class="" ' +
98+
'onmousedown="' +
99+
this.job.onmousedown +
100+
'" ' +
101+
'href="' +
102+
this.job.url +
103+
'">' +
104+
this.job.title +
105+
'</a>'
106+
)
95107
}
96108
},
97109
methods: {

0 commit comments

Comments
 (0)