Fix: Content title fields
This commit is contained in:
parent
47ccad9661
commit
8747900aa1
@ -5,7 +5,8 @@
|
|||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<h2>{{ title }}</h2>
|
<h2>{{ title }}</h2>
|
||||||
<span v-if="typeof author !== 'undefined' || author !== null" class="text-muted">
|
<span v-if="typeof author !== 'undefined' || author !== null" class="text-muted">
|
||||||
Published on {{ publishDate }}, by {{ author }}
|
<span v-if="publishDate">Published on {{ publishDate }}</span>
|
||||||
|
<span v-if="author">— {{ author }}</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 text-right">
|
<div class="col-md-4 text-right">
|
||||||
@ -21,11 +22,6 @@
|
|||||||
export default {
|
export default {
|
||||||
props: ['title', 'publishDate', 'author'],
|
props: ['title', 'publishDate', 'author'],
|
||||||
name: 'ContentTitle',
|
name: 'ContentTitle',
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
|
|
||||||
};
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user