NEXT craftinamerica.org. Base setup for headless wordpress https://www.craftinamerica.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

breadcrumb.vue 883B

123456789101112131415161718192021222324252627282930313233
  1. <template lang="pug">
  2. //- breadcrumb links at top of page, needs link routing
  3. nav.breadcrumb.f-row.start.t-up
  4. router-link(v-if="['event','exhibition'].includes(type)" :to="`/${type}/sorted/by-current-and-upcoming`")
  5. h5.t-up {{ type }}
  6. router-link(v-else-if="type == 'post'" :to="`/blog`")
  7. h5.t-up blog
  8. router-link(v-else :to="`/${type}`")
  9. h5.t-up {{ type }}
  10. h5 &nbsp;➤&nbsp;
  11. router-link(v-if="type == 'post'" :to="`/blog/${post.slug}`")
  12. h5 {{ post.title }}
  13. router-link(v-else :to="`/${type}/${post.slug}`")
  14. h5 {{ post.title }}
  15. </template>
  16. <script>
  17. export default {
  18. props: {
  19. type: { type: String },
  20. post: { type: Object },
  21. },
  22. }
  23. </script>
  24. <style lang="postcss">
  25. // prettier-ignore
  26. @import '../sss/variables.sss'
  27. @import '../sss/theme.sss'
  28. .breadcrumb
  29. h5
  30. font-size: $ms--1
  31. </style>