Skip to content

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.

Default 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).

Example

---
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>

Redirect Layout

The redirect layout takes link as an argument which creates a page that serves as a redirect to that set link.

Example

/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' />
Clone this wiki locally