Update query property for layouts and components
This commit is contained in:
parent
d2072b47f2
commit
ad25845ba9
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
// Properties
|
||||
const {Title, Query} = Astro.props
|
||||
const {Title, Query, QueryText} = Astro.props
|
||||
|
||||
// Components
|
||||
import Head from "@components/global/Head.astro";
|
||||
|
@ -13,6 +13,6 @@ import '@styles/mobile.scss'
|
|||
---
|
||||
|
||||
<Head/>
|
||||
<Header Query={Query}/>
|
||||
<Header QueryText={QueryText}/>
|
||||
<slot/>
|
||||
<Footer/>
|
|
@ -3,13 +3,13 @@
|
|||
import Base from "./Base.astro"
|
||||
|
||||
// Properties
|
||||
const {Type, Title, Query} = Astro.props
|
||||
const {Type, Title, Query, QueryText} = Astro.props
|
||||
|
||||
// Components
|
||||
import SearchMenu from "@components/global/SearchMenu.astro"
|
||||
---
|
||||
|
||||
<Base Title={Title} Query={Query}>
|
||||
<Base Title={Title} QueryText={QueryText}>
|
||||
<SearchMenu Type={Type}/>
|
||||
<div class="search-results">
|
||||
<div class="search-results-start">
|
||||
|
|
Loading…
Reference in a new issue