added language tag for posts

This commit is contained in:
Mo Zargham 2019-12-27 15:02:51 -05:00
parent 9be1de9666
commit 3234c2e861
2 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,9 @@ export default {
.category-tag {
display: inline-flex;
align-items: center;
&.language {
float: right;
}
> .base-icon {
margin-right: $space-xx-small;

View File

@ -45,6 +45,11 @@
:icon="category.icon"
:name="$t(`contribution.category.name.${category.slug}`)"
/>
<!-- Post language -->
<ds-tag v-if="post.language" class="category-tag language">
<base-icon name="globe" />
{{post.language ? post.language.toUpperCase(): null}}
</ds-tag>
</div>
<ds-space margin-bottom="small" />
<!-- Tags -->