aboutsummaryrefslogtreecommitdiff
path: root/docs/_layouts
diff options
context:
space:
mode:
authorMatei Zaharia <matei@databricks.com>2015-02-05 11:12:50 -0800
committerMatei Zaharia <matei@databricks.com>2015-02-05 11:12:59 -0800
commitde112a2096a2b84ce2cac112f12b50b5068d6c35 (patch)
treedbd71e32eed98ff1d5d4e337323ff48780d419fb /docs/_layouts
parentc22ccc07c50d4aaead98918dbb7c98dd520cdc6a (diff)
downloadspark-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-xdocs/_layouts/global.html4
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}}">