diff --git a/components/CollectionDetail.vue b/components/CollectionDetail.vue new file mode 100644 index 0000000..a609ccf --- /dev/null +++ b/components/CollectionDetail.vue @@ -0,0 +1,18 @@ + + + diff --git a/components/ContentBuilder.vue b/components/ContentBuilder.vue index ca3b99e..3ad73aa 100644 --- a/components/ContentBuilder.vue +++ b/components/ContentBuilder.vue @@ -1,14 +1,16 @@ @@ -19,7 +21,7 @@ import type SharedHero from "../types/component/sharedHero"; import type { ComponentTypes } from "../types/component/baseComponent"; defineProps({ - hero: Object as PropType, + hero: { type: Object as PropType, required: false, default: null }, content: Array, }); diff --git a/components/Header.vue b/components/Header.vue index 674ad96..1b89705 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -9,7 +9,7 @@ primary-link v-for="link in navbar.navbar_items" :key="link.id" - :to="`/${link.URL}/${link.default_active_child}`" + :to="`/${link.URL}/${link.default_active_child ?? ''}`" :class="link.URL == params?.[0] ? 'active' : ''" > {{ link.name }} @@ -26,7 +26,7 @@ v-for="sublink in navbar_sub_items" :key="sublink.id" :to="`/${params?.[0]}/${sublink.URL}`" - :class="sublink.URL == params?.[1] ? 'active' : ''" + :class="sublink.URL == params?.[1] && !params[2] ? 'active' : ''" > {{ sublink.name }} diff --git a/components/shared/Hero.vue b/components/shared/Hero.vue index 6c201c0..1920ede 100644 --- a/components/shared/Hero.vue +++ b/components/shared/Hero.vue @@ -1,13 +1,13 @@