#155 simplify footer
This commit is contained in:
parent
1ac6ced974
commit
627c6546ad
|
@ -5,42 +5,18 @@
|
|||
<a :href="author.link" target="_blank" rel="noopener">
|
||||
{{ author.name }}
|
||||
</a>
|
||||
<template v-if="author.pronouns">
|
||||
(<nuxt-link :to="author.pronounsLink">{{ author.pronouns }}</nuxt-link>)
|
||||
–
|
||||
</template>
|
||||
<template v-if="!author.pronouns && author.areas && Object.keys(author.areas).length">
|
||||
–
|
||||
</template>
|
||||
<template v-for="(link, area, index) in author.areas">
|
||||
<nuxt-link v-if="author.profile" :to="`/@${author.profile}`" class="badge badge-light border">
|
||||
@{{author.profile}}
|
||||
</nuxt-link>
|
||||
<br v-if="author.areas && Object.keys(author.areas).length"/>
|
||||
<small v-for="(link, area, index) in author.areas">
|
||||
<Spaceless>
|
||||
<nuxt-link v-if="link && link.indexOf('/') === 0" :to="link">{{ area.replace(/_/g, ' ') }}</nuxt-link>
|
||||
<a v-else-if="link" :href="link" target="_blank" rel="noopener">{{ area.replace(/_/g, ' ') }}</a>
|
||||
<span v-else>{{ area.replace(/_/g, ' ') }}</span>
|
||||
<span v-if="index < Object.keys(author.areas).length - 1">, </span>
|
||||
</Spaceless>
|
||||
</template>
|
||||
<br/>
|
||||
<nuxt-link v-if="author.profile" :to="`/@${author.profile}`" class="badge badge-light border">
|
||||
<Icon v="id-card"/>
|
||||
@{{author.profile}}
|
||||
</nuxt-link>
|
||||
<a v-if="author.website" :href="author.website" target="_blank" rel="noopener" class="badge badge-light border">
|
||||
<Icon v="globe"/>
|
||||
Blog
|
||||
</a>
|
||||
<a v-if="author.twitter" :href="'https://twitter.com/' + author.twitter" target="_blank" rel="noopener" class="badge badge-light border">
|
||||
<Icon v="twitter" set="b"/>
|
||||
Twitter
|
||||
</a>
|
||||
<a v-if="author.mail" :href="'mailto:' + author.mail" target="_blank" rel="noopener" class="badge badge-light border">
|
||||
<Icon v="envelope"/>
|
||||
Email
|
||||
</a>
|
||||
<a v-if="author.orcid" :href="'https://orcid.org/' + author.orcid" target="_blank" rel="noopener" class="badge badge-light border">
|
||||
<Icon v="file"/>
|
||||
ORCID
|
||||
</a>
|
||||
</small>
|
||||
</li>
|
||||
</ul>
|
||||
</template>
|
||||
|
|
Reference in New Issue