fluo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject [1/2] incubator-fluo-website git commit: Added some basic twitter support
Date Tue, 08 Nov 2016 17:16:26 GMT
Repository: incubator-fluo-website
Updated Branches:
  refs/heads/gh-pages ac6b75bf4 -> 77528d838


Added some basic twitter support


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

Branch: refs/heads/gh-pages
Commit: ff477ebb781647ffe67455082bf4d8ab30d236f1
Parents: ac6b75b
Author: Keith Turner <kturner@apache.org>
Authored: Tue Nov 8 09:55:00 2016 -0500
Committer: Keith Turner <kturner@apache.org>
Committed: Tue Nov 8 09:55:00 2016 -0500

----------------------------------------------------------------------
 _config.yml            |  3 +++
 _includes/scripts.html | 17 +++++++++++++++++
 _layouts/post.html     |  3 ++-
 _layouts/release.html  |  3 ++-
 index.html             |  3 ++-
 5 files changed, 26 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fluo-website/blob/ff477ebb/_config.yml
----------------------------------------------------------------------
diff --git a/_config.yml b/_config.yml
index 155f117..7f90e43 100644
--- a/_config.yml
+++ b/_config.yml
@@ -57,6 +57,9 @@ old_api_static: "https://static.javadoc.io/io.fluo"
 whitelist: [jekyll-redirect-from]
 gems: [jekyll-redirect-from]
 
+#Social
+twitter_username: "ApacheFluo"
+
 kramdown:
   input: GFM
   syntax_highlighter: rouge

http://git-wip-us.apache.org/repos/asf/incubator-fluo-website/blob/ff477ebb/_includes/scripts.html
----------------------------------------------------------------------
diff --git a/_includes/scripts.html b/_includes/scripts.html
index bd148a3..29fc24d 100644
--- a/_includes/scripts.html
+++ b/_includes/scripts.html
@@ -11,3 +11,20 @@
   ga('send', 'pageview');
 
 </script>
+
+<script>window.twttr = (function(d, s, id) {
+  var js, fjs = d.getElementsByTagName(s)[0],
+    t = window.twttr || {};
+  if (d.getElementById(id)) return t;
+  js = d.createElement(s);
+  js.id = id;
+  js.src = "https://platform.twitter.com/widgets.js";
+  fjs.parentNode.insertBefore(js, fjs);
+
+  t._e = [];
+  t.ready = function(f) {
+    t._e.push(f);
+  };
+
+  return t;
+}(document, "script", "twitter-wjs"));</script>

http://git-wip-us.apache.org/repos/asf/incubator-fluo-website/blob/ff477ebb/_layouts/post.html
----------------------------------------------------------------------
diff --git a/_layouts/post.html b/_layouts/post.html
index a6a3832..f61a0dc 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -2,8 +2,9 @@
 layout: default
 ---
 <div id="post-header">
-  <h2>{{ page.title }}</h1>
+  <h2>{{ page.title }}</h2>
   <p class="text-muted">{{ page.date | date_to_string }}</p>
+  <p><a class="twitter-share-button" href="https://twitter.com/intent/tweet?text={{
page.title }}&url={{ site.url }}{{ page.url }}&via={{ site.twitter_username }}&related={{
site.twitter_username }}" rel="nofollow" target="_blank" title="Share on Twitter">Twitter</a></p>
 </div>
 <div id="post-content">
   {{ content }}

http://git-wip-us.apache.org/repos/asf/incubator-fluo-website/blob/ff477ebb/_layouts/release.html
----------------------------------------------------------------------
diff --git a/_layouts/release.html b/_layouts/release.html
index 0be3915..b96509a 100644
--- a/_layouts/release.html
+++ b/_layouts/release.html
@@ -2,7 +2,8 @@
 layout: default
 ---
 <div class="post-header">
-  <h2>{{ page.title }}</h1>
+  <h2>{{ page.title }}</h2>
+  <p><a class="twitter-share-button" href="https://twitter.com/intent/tweet?text={{
page.title }}&url={{ site.url }}{{ page.url }}&via={{ site.twitter_username }}&related={{
site.twitter_username }}" rel="nofollow" target="_blank" title="Share on Twitter">Twitter</a></p>
   <p class="text-muted">{{ page.date | date_to_string }}</p>
 </div>
 

http://git-wip-us.apache.org/repos/asf/incubator-fluo-website/blob/ff477ebb/index.html
----------------------------------------------------------------------
diff --git a/index.html b/index.html
index 3fddd4c..1402471 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,8 @@ html_title_override: true
     <div id="welcome-jumbotron" class="jumbotron" style="text-align: center">
       <h3>Apache Fluo&trade; lets users make incremental updates to large data
sets stored in Apache Accumulo</h3>
       <a style="margin-right: 20px" href="{{ site.baseurl }}/release/fluo-{{ site.latest_fluo_release
}}/" class="btn btn-success btn-sm navbar-btn"><i class="fa fa-download fa-lg"></i>
Download</a>
-      <a href="https://github.com/apache/incubator-fluo" target="_blank" class="btn btn-primary
btn-sm navbar-btn"><i class="fa fa-github fa-lg"></i> View on GitHub</a>
+      <a style="margin-right: 20px" href="https://github.com/apache/incubator-fluo" target="_blank"
class="btn btn-primary btn-sm navbar-btn"><i class="fa fa-github fa-lg"></i>View
on Github</a>
+      <a href="https://twitter.com/apachefluo" target="_blank" class="btn btn-primary
btn-sm navbar-btn"><i class="fa fa-twitter fa-lg"></i>Follow</a>
     </div>
     <h3 style="padding-top: 0px">Overview</h3>
     <p>Apache Fluo (incubating) is an open source implementation of <a href="https://research.google.com/pubs/pub36726.html"
target="_blank">Percolator</a> 


Mime
View raw message