bug: make hero author consistent with "Blog & news" link (#63)

Co-authored-by: João Peixoto <joaodiogopeixoto@gmail.com>
This commit is contained in:
Jessica Schilling
2021-03-03 12:18:24 -07:00
committed by GitHub
parent ad7d02d778
commit 31b48cd6f4
2 changed files with 14 additions and 5 deletions
@@ -11,10 +11,7 @@
itemprop="name"
class="flex flex-row"
>
<span
class="hover:text-blueGreen hover:underline cursor-pointer"
@click="handleAuthorClick(piece)"
>
<span :class="computedClassName" @click="handleAuthorClick(piece)">
{{ piece }}
</span>
<span>{{
@@ -35,6 +32,12 @@ export default {
name: 'PostAuthor',
components: {},
mixins: [Author],
props: {
light: {
type: Boolean,
default: null,
},
},
computed: {
...mapState('appState', ['activeAuthor']),
resolvedAuthorName() {
@@ -47,6 +50,12 @@ export default {
return resolvedName.split(/[,&]/g)
},
computedClassName() {
return [
'hover:underline cursor-pointer',
this.light ? 'text-blueGreenLight' : 'hover:text-blueGreen',
]
},
},
methods: {
handleAuthorClick(piece) {
@@ -10,7 +10,7 @@
v-if="author && author.name"
:to="{ path: $localePath, query: { author: author.name } }"
>
<PostAuthor v-bind="author" />
<PostAuthor v-bind="author" light />
</router-link>
<time
class="text-gray"