diff options
author | Matei Zaharia <matei@databricks.com> | 2015-02-05 11:12:50 -0800 |
---|---|---|
committer | Matei Zaharia <matei@databricks.com> | 2015-02-05 11:12:59 -0800 |
commit | de112a2096a2b84ce2cac112f12b50b5068d6c35 (patch) | |
tree | dbd71e32eed98ff1d5d4e337323ff48780d419fb /docs/_layouts | |
parent | c22ccc07c50d4aaead98918dbb7c98dd520cdc6a (diff) | |
download | spark-de112a2096a2b84ce2cac112f12b50b5068d6c35.tar.gz spark-de112a2096a2b84ce2cac112f12b50b5068d6c35.tar.bz2 spark-de112a2096a2b84ce2cac112f12b50b5068d6c35.zip |
[SPARK-5608] Improve SEO of Spark documentation pages
- Add meta description tags on some of the most important doc pages
- Shorten the titles of some pages to have more relevant keywords; for
example there's no reason to have "Spark SQL Programming Guide - Spark
1.2.0 documentation", we can just say "Spark SQL - Spark 1.2.0
documentation".
Author: Matei Zaharia <matei@databricks.com>
Closes #4381 from mateiz/docs-seo and squashes the following commits:
4940563 [Matei Zaharia] [SPARK-5608] Improve SEO of Spark documentation pages
(cherry picked from commit 4d74f0601a2465b0d2273a8bcc716b304584831f)
Signed-off-by: Matei Zaharia <matei@databricks.com>
Diffstat (limited to 'docs/_layouts')
-rwxr-xr-x | docs/_layouts/global.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/_layouts/global.html b/docs/_layouts/global.html index 8841f7675d..efc4c61293 100755 --- a/docs/_layouts/global.html +++ b/docs/_layouts/global.html @@ -7,7 +7,9 @@ <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>{{ page.title }} - Spark {{site.SPARK_VERSION_SHORT}} Documentation</title> - <meta name="description" content=""> + {% if page.description %} + <meta name="description" content="{{page.description | replace: 'SPARK_VERSION_SHORT', site.SPARK_VERSION_SHORT}}"> + {% endif %} {% if page.redirect %} <meta http-equiv="refresh" content="0; url={{page.redirect}}"> |