Skip to content

Commit

Permalink
docs(api/conventions): fix typos (remix-run#3077)
Browse files Browse the repository at this point in the history
* Fix typo, switch order of name & content

* Update contributors.yml
  • Loading branch information
JulesBlm authored and aaronpowell committed May 10, 2022
1 parent dcf9114 commit 15d6a05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
- jssisodiya
- jstafman
- juhanakristian
- JulesBlm
- justinnoel
- juwiragiye
- jveldridge
Expand Down
4 changes: 2 additions & 2 deletions docs/api/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ The `meta` object can also hold a `title` reference which maps to the [HTML `<ti

As a convenience, `charset: "utf-8"` will render a `<meta charset="utf-8">`.

As a last option, you can also pass an object of attribute/value pairs as the value. This can be used as an escape-hetch for meta tags like the [`http-equiv` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) which uses `http-equiv` instead of `name`.
As a last option, you can also pass an object of attribute/value pairs as the value. This can be used as an escape-hatch for meta tags like the [`http-equiv` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) which uses `http-equiv` instead of `name`.

Examples:

Expand All @@ -1038,7 +1038,7 @@ export const meta: MetaFunction = () => ({
"og:image": "https://josiesshakeshack.com/logo.jpg", // <meta property="og:image" content="https://josiesshakeshack.com/logo.jpg">
title: "Josie's Shake Shack", // <title>Josie's Shake Shack</title>

// content => name
// name => content
description: "Delicious shakes", // <meta name="description" content="Delicious shakes">
viewport: "width=device-width,initial-scale=1", // <meta name="viewport" content="width=device-width,initial-scale=1">

Expand Down

0 comments on commit 15d6a05

Please sign in to comment.