added tag search to blog
This commit is contained in:
parent
bb7e3329f3
commit
ebf28f8386
4 changed files with 27 additions and 3 deletions
|
|
@ -4,7 +4,8 @@ const props = defineProps({
|
|||
heading: String,
|
||||
description: String,
|
||||
subheading: String,
|
||||
id: Number
|
||||
id: Number,
|
||||
tags: String
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
@ -13,7 +14,8 @@ const props = defineProps({
|
|||
|
||||
<div class="text-content">
|
||||
<h2 class="heading"> {{props.heading}}</h2>
|
||||
<p class="subheading">{{props.subheading}} - #{{ props.id }}</p>
|
||||
<p v-if="tags===''" class="subheading">{{props.subheading}} - #{{ props.id }}</p>
|
||||
<p v-else class="subheading">{{props.subheading}} - #{{ props.id }} - {{ props.tags }}</p>
|
||||
<p>{{props.description}}</p>
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue