You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bahir.apache.org by lr...@apache.org on 2016/06/10 20:23:36 UTC

bahir-website git commit: [BAHIR-11] Enable google analytics to Bahir website

Repository: bahir-website
Updated Branches:
  refs/heads/master a44916b20 -> e0ab340d2


[BAHIR-11] Enable google analytics to Bahir website


Project: http://git-wip-us.apache.org/repos/asf/bahir-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/bahir-website/commit/e0ab340d
Tree: http://git-wip-us.apache.org/repos/asf/bahir-website/tree/e0ab340d
Diff: http://git-wip-us.apache.org/repos/asf/bahir-website/diff/e0ab340d

Branch: refs/heads/master
Commit: e0ab340d210c3d9d20a8d6c472c056b4bbe2ed19
Parents: a44916b
Author: Luciano Resende <lr...@apache.org>
Authored: Fri Jun 10 09:19:27 2016 -0700
Committer: Luciano Resende <lr...@apache.org>
Committed: Fri Jun 10 13:20:58 2016 -0700

----------------------------------------------------------------------
 site/_config.yml            | 22 +++++++++++++++++-----
 site/_data/navigation.yml   |  2 ++
 site/_includes/JB/analytics |  2 +-
 site/index.md               |  4 ++--
 site/privacy-policy.md      | 38 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 60 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bahir-website/blob/e0ab340d/site/_config.yml
----------------------------------------------------------------------
diff --git a/site/_config.yml b/site/_config.yml
index d59c641..f5c0e13 100644
--- a/site/_config.yml
+++ b/site/_config.yml
@@ -13,6 +13,16 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
+title: Apache Bahir
+email: dev@bahir.apache.org
+description: > # this means to ignore newlines until "baseurl:"
+  Apache Bahir provides extensions to distributed analytic platforms such as Apache Spark.
+baseurl: "" # the subpath of your site, e.g. /blog
+url: "http://bahir.apache.org" # the base hostname & protocol for your site
+#twitter_username: ApacheBahir
+github_username:  apache
+
+# Build settings
 markdown: kramdown
 permalink: /news/:year/:month/:day/:title/
 excerpt_separator: ""
@@ -22,8 +32,10 @@ destination: _site
 exclude: [README.md,Gemfile*]
 keep_files: [".git", ".svn", "apidocs"]
 
-# The base path where the website is deployed
-baseurl:
-
-# End _config.yml
-
+# if 'analytics_on' is true, analytics section will be rendered on the HTML pages
+JB:
+  analytics:
+    provider: google_universal
+    google_universal:
+       domain: bahir.apache.org
+       tracking_id: UA-79140859-1
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/bahir-website/blob/e0ab340d/site/_data/navigation.yml
----------------------------------------------------------------------
diff --git a/site/_data/navigation.yml b/site/_data/navigation.yml
index 5672ffe..8aa4588 100644
--- a/site/_data/navigation.yml
+++ b/site/_data/navigation.yml
@@ -58,3 +58,5 @@ topnav:
     url: http://www.apache.org/foundation/sponsorship
   - title: Thanks
     url: http://www.apache.org/foundation/thanks.html
+  - title: Privacy Policy
+    url: /privacy-policy

http://git-wip-us.apache.org/repos/asf/bahir-website/blob/e0ab340d/site/_includes/JB/analytics
----------------------------------------------------------------------
diff --git a/site/_includes/JB/analytics b/site/_includes/JB/analytics
index 48d87c2..3e54d5f 100644
--- a/site/_includes/JB/analytics
+++ b/site/_includes/JB/analytics
@@ -1,4 +1,4 @@
-{% if site.safe and site.JB.analytics.provider and page.JB.analytics != false %}
+{% if site.JB.analytics.provider and page.JB.analytics != false %}
 
 {% case site.JB.analytics.provider %}
 {% when "google_classic" %}

http://git-wip-us.apache.org/repos/asf/bahir-website/blob/e0ab340d/site/index.md
----------------------------------------------------------------------
diff --git a/site/index.md b/site/index.md
index 7ddf81c..be22644 100644
--- a/site/index.md
+++ b/site/index.md
@@ -38,6 +38,6 @@ Initially {{ site.data.project.name }} will contain streaming connectors that we
  
 The {{ site.data.project.name }} community welcomes the proposal of new extensions.
 
-<br>
+<br/>
 
-<br>
+<br/>

http://git-wip-us.apache.org/repos/asf/bahir-website/blob/e0ab340d/site/privacy-policy.md
----------------------------------------------------------------------
diff --git a/site/privacy-policy.md b/site/privacy-policy.md
new file mode 100644
index 0000000..48457ed
--- /dev/null
+++ b/site/privacy-policy.md
@@ -0,0 +1,38 @@
+---
+layout: page
+title: Privacy Policy
+description: Apache Bahir website privacy policy
+group: nav-right
+---
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
+
+Information about your use of this website is collected using server access logs and a tracking cookie. The collected information consists of the following:
+
+    The IP address from which you access the website;
+    The type of browser and operating system you use to access our site;
+    The date and time you access our site;
+    The pages you visit; and
+    The addresses of pages from where you followed a link to our site.
+
+Part of this information is gathered using a tracking cookie set by the [Google Analytics](http://www.google.com/analytics/) service and handled by Google as described in their [privacy policy](http://www.google.com/privacy.html). See your browser documentation for instructions on how to disable the cookie if you prefer not to share this data with Google.
+
+We use the gathered information to help us make our site more useful to visitors and to better understand how and when our site is used. We do not track or collect personally identifiable information or associate gathered data with any personally identifying information from other sources.
+
+By using this website, you consent to the collection of this data in the manner and for the purpose described above.
\ No newline at end of file