2019-12-05 06:46:19 -05:00
|
|
|
<template>
|
|
|
|
<footer class="post-full-footer">
|
|
|
|
<section class="author-card">
|
|
|
|
<g-image v-if="authorData.image" class="author-profile-image" :src="authorData.image" :alt="authorData.name" />
|
|
|
|
<span v-else class="avatar-wrapper">
|
|
|
|
<Avatar />
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<section class="author-card-content">
|
|
|
|
<h4 class="author-card-name">
|
2019-12-18 08:54:22 -05:00
|
|
|
<a :href="'/author/' + authorData.slug">
|
2019-12-05 06:46:19 -05:00
|
|
|
{{ authorData.name }}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
<p v-if="authorData.tagline">{{ authorData.tagline }}</p>
|
2019-12-18 08:54:22 -05:00
|
|
|
<p v-else>Read <a :href="'/author/' + authorData.slug">more posts</a> by this author.</p>
|
2019-12-05 06:46:19 -05:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<div class="post-full-footer-right">
|
2019-12-18 08:54:22 -05:00
|
|
|
<a class="author-card-button" :href="'/author/' + authorData.slug">Read More</a>
|
2019-12-05 06:46:19 -05:00
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Avatar from './icons/Avatar';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
author: Array
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Avatar
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
authorData() {
|
|
|
|
return this.author[0]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|