Skip to content

Commit

Permalink
test: show route params
Browse files Browse the repository at this point in the history
  • Loading branch information
hetd54 committed Sep 9, 2024
1 parent 7c33ef8 commit 87fcab6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/_main/_category/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
<div>
<DHero
variant="light"
:title="humanizeHero(data.title)"
:title="humanizeHero($route.params.category)"
:subtitle="categoryMeta.description"
>
<pre>{{ data }}</pre>
<pre>{{ $route.params }}</pre>
<!-- Add a button to the Hero when index.yml includes call for action -->
<template v-if="categoryMeta['call-for-action']" #button>
<nuxt-link
Expand Down

0 comments on commit 87fcab6

Please sign in to comment.