Skip to content

Commit

Permalink
Add og:image:alt for accessibility. (#3066)
Browse files Browse the repository at this point in the history
* dist/index: Add og:image:alt for accessibility.

* src/index, docs/(html|extend): Add og:image:alt everywhere.
  • Loading branch information
aartaka authored Jan 23, 2024
1 parent 4c3245a commit 8e6ff2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<meta property="og:type" content="">
<meta property="og:url" content="">
<meta property="og:image" content="">
<meta property="og:image:alt" content="">

<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
Expand Down
2 changes: 2 additions & 0 deletions docs/extend.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ Facebook).
<meta property="og:type" content="website">
<meta property="og:title" content="">
<meta property="og:image" content="https://www.example.com/path/to/image.jpg">
<!-- Empty for decorative images. -->
<meta property="og:image:alt" content="Example image depicting...">
<meta property="og:description" content="">
<meta property="og:site_name" content="">
<meta property="article:author" content="">
Expand Down
3 changes: 3 additions & 0 deletions docs/html.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ website, article).
<meta property="og:type" content="">
<meta property="og:url" content="">
<meta property="og:image" content="">
<meta property="og:image:alt" content="">
```

In addition to these four attributes there are many more attributes you can use
Expand All @@ -96,6 +97,8 @@ describe the site in more detail.
<meta property="og:type" content="website">
<meta property="og:description" content="The web’s most popular front-end template which helps you build fast, robust, and adaptable web apps or sites.">
<meta property="og:image" content="https://html5boilerplate.com/icon.png">
<!-- Empty for decorative images. -->
<meta property="og:image:alt" content="">
```

### Web App Manifest
Expand Down
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<meta property="og:type" content="">
<meta property="og:url" content="">
<meta property="og:image" content="">
<meta property="og:image:alt" content="">

<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
Expand Down

0 comments on commit 8e6ff2b

Please sign in to comment.