astro/docs
Caleb Jasik 2fd004dcd9
Add a titleClosure to the HeadSEO.astro component (#1140)
* Testing out adding a `titleClosure` to the `HeadSEO.astro` component

I think the api needs a bit of improvement, but the basic idea is you can pass this in to a published astro component for specifying how you want it to format your title!

* Refactor to make it pretty

* Rename the `titleClosure()` prop to `formatTitle()` to be more clear

* Use title, with site title as the fallback (#1143)

See og:title guidance (https://developers.facebook.com/docs/sharing/webmasters/)

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-08-23 15:08:20 -05:00
..
public Astro v0.19 release blog post (#1135) 2021-08-17 23:58:59 -07:00
reference Fix typos in the docs. (#1165) 2021-08-19 17:56:58 -06:00
src Add a titleClosure to the HeadSEO.astro component (#1140) 2021-08-23 15:08:20 -05:00
.prettierignore merge in docs site (#705) 2021-07-15 14:13:35 -04:00
.prettierrc [ci] yarn format 2021-07-20 04:07:49 +00:00
astro.config.mjs [ci] yarn format 2021-07-31 05:41:22 +00:00
CHANGELOG.md Version Packages (#1150) 2021-08-18 09:24:09 -07:00
package.json add dev script, switch documentation from advising start to dev script (#1141) 2021-08-18 22:07:08 -07:00
README.md add dev script, switch documentation from advising start to dev script (#1141) 2021-08-18 22:07:08 -07:00
snowpack.config.mjs [ci] yarn format 2021-07-20 04:07:49 +00:00
vercel.json Docs site cleanup (#948) 2021-07-30 22:39:15 -07:00

Astro Docs Astro logo

Contributing

Pull Requests

Every pull request needs to be reviewed by another contributor to the documentation to help with the overall quality of the documentation.

Running this project

  • Clone/Fork the project
  • This project uses yarn to manage dependencies. Make sure that you have yarn v1 installed.
  • Run yarn install to install latest dependencies.
  • Run yarn dev to start the dev server.
  • Run yarn build to build the final site for production.

The environment variable SNOWPACK_PUBLIC_GITHUB_TOKEN must be set to a personal access token with public_repo permissions to prevent rate-limiting.