-
Notifications
You must be signed in to change notification settings - Fork 4
Layouts
Giancarlo Pernudi Segura edited this page Dec 21, 2022
·
2 revisions
There are two layouts. There is the "default" layout and there is the "redirect" layout.
The default layout takes title
as an argument which then sets the page title to $title | Undergraduate Artificial Intelligence Society
. This is the layout to use whenever making any page (unless you want the endpoint to serve as a redirect).
---
import Layout from '@layouts/Default.atro'
---
<Layout title="Creating your First Neural Network">
<!-- insert whatever html you want here -->
</Layout>
<style lang="scss">
/* insert whatever styling you want here */
</style>
The redirect layout takes link
as an argument which creates a page that serves as a redirect to that set link.
/bearsden
uses this layout to redirect to our bearsden page.
---
import Layout from '@layouts/Redirect.astro'
---
<Layout link='https://alberta.campuslabs.ca/engage/organization/uais' />