Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More thingies #14

Merged

Conversation

HiDeoo
Copy link
Collaborator

@HiDeoo HiDeoo commented Feb 22, 2023

Overrides

Any page using the base layout or any other layout using the base layout now has the ability to override HTML attributes for the body and main tags.

This is entirely typed, meaning you also get proper autocomplete for the attributes you can override and errors for invalid attributes.

Screenshot 2023-02-22 at 17 40 09

Base layout props documentation

I tried to comment the props available to the base layout, so that it's easier to understand what's going on.

This commit introduces the concept of layout `overrides` to add custom
attributes to the <body /> and <main /> tags.
This also refactor frontmatter props to use `MarkdownLayoutProps` as
they should.
@julien-deramond julien-deramond merged commit 77f897e into julien-deramond:main-jd-bootstrap-astro Feb 22, 2023
julien-deramond pushed a commit that referenced this pull request Mar 6, 2023
* fix: pass down astro props to base layout

* feat: 404 page ui

This commit introduces the concept of layout `overrides` to add custom
attributes to the <body /> and <main /> tags.

* fix: remove unused exports

* docs: document base layout props

This also refactor frontmatter props to use `MarkdownLayoutProps` as
they should.

* feat: 404 page title

* chore: remove 404 description todo already handled

* feat: docs layout body overrides

* feat: add MastHead component
julien-deramond pushed a commit that referenced this pull request Mar 24, 2023
* fix: pass down astro props to base layout

* feat: 404 page ui

This commit introduces the concept of layout `overrides` to add custom
attributes to the <body /> and <main /> tags.

* fix: remove unused exports

* docs: document base layout props

This also refactor frontmatter props to use `MarkdownLayoutProps` as
they should.

* feat: 404 page title

* chore: remove 404 description todo already handled

* feat: docs layout body overrides

* feat: add MastHead component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants