Skip to content

Commit 5581fd9

Browse files
authored
Update meta description tag to contain the specific title of the page. (#2180)
Every page had a fixed `<meta name="description" content="Keras documentation">` tag. It now contains the title of the page, which is more specific because it has the API name for instance. Google search in particular looks at this tag, and this tag only, for indexing [Documentation](https://developers.google.com/search/docs/crawling-indexing/special-tags#meta-tags). The hope is that it will improve search results. This also makes it consistent with other meta tags like `<meta property="og:title" content="...">`.
1 parent 4a0cbbf commit 5581fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

theme/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<meta charset="utf-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
8-
<meta name="description" content="Keras documentation">
8+
<meta name="description" content="Keras documentation: {{title}}">
99
<meta name="author" content="Keras Team">
1010
<link rel="shortcut icon" href="https://keras.io/img/favicon.ico">
1111
{% if relative_url %}

0 commit comments

Comments
 (0)