You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/09/02 03:54:36 UTC

[2/4] docs commit: Formatting

Formatting


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/49275f88
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/49275f88
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/49275f88

Branch: refs/heads/cordova-website
Commit: 49275f888a2546658b29c729f942e7e46179b5bb
Parents: fdf25e7
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Tue Sep 1 16:31:16 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Tue Sep 1 18:54:00 2015 -0700

----------------------------------------------------------------------
 gulpfile.js               | 3 +--
 www/_includes/footer.html | 1 +
 www/_layouts/post.html    | 8 +++++++-
 www/blog/index.html       | 8 +++++++-
 www/static/js/twitter.js  | 3 +++
 5 files changed, 19 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/49275f88/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index e4700e3..d482639 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -33,7 +33,6 @@ var WATCH_INTERVAL    = 1000; // in milliseconds
 var ROOT_DIR   = ".";
 var SOURCE_DIR = path.join(ROOT_DIR, "www");
 var DEV_DIR    = path.join(ROOT_DIR, "build-dev");
-var LINT_DIR    = path.join(DEV_DIR, "blog");
 var PROD_DIR   = path.join(ROOT_DIR, "build-prod");
 var BASE_URL   = "/use-the-force-luke";
 
@@ -251,7 +250,7 @@ gulp.task("link-bugs", function (done) {
 });
 
 gulp.task('lint', function() {
-    return gulp.src(path.join(LINT_DIR, "**", "*.html"))
+    return gulp.src(path.join("./", "**", "*.html"))
         .pipe(htmllint());
 });
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/49275f88/www/_includes/footer.html
----------------------------------------------------------------------
diff --git a/www/_includes/footer.html b/www/_includes/footer.html
index c16b225..2f82200 100644
--- a/www/_includes/footer.html
+++ b/www/_includes/footer.html
@@ -74,6 +74,7 @@
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/docs.js"></script>
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/main.js"></script>
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/index.js"></script>
+<script type="text/javascript" src="{{ site.baseurl }}/static/js/twitter.js"></script>
 <script>
     !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
 </script>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/49275f88/www/_layouts/post.html
----------------------------------------------------------------------
diff --git a/www/_layouts/post.html b/www/_layouts/post.html
index 848eeeb..5ab4b06 100644
--- a/www/_layouts/post.html
+++ b/www/_layouts/post.html
@@ -15,7 +15,13 @@ layout: blog
             <div class="post">
                 <header>
                     <div class="title">{{ page.title }}</div>
-                    <div class="author">By: <a href="{{ page.author.url }}">{{ page.author.name }}</a></div>
+                    <div class="author">By: 
+                        {% if page.author.url %}
+                          <a href="{{ page.author.url }}">{{ page.author.name }}</a>
+                        {% else %}
+                          {{ page.author.name }}
+                        {% endif %} 
+                    </div>
                     <div class="date">{{ page.date | date_to_string }}</div>
                 </header>
                 <section>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/49275f88/www/blog/index.html
----------------------------------------------------------------------
diff --git a/www/blog/index.html b/www/blog/index.html
index c83a20d..a4f11a4 100644
--- a/www/blog/index.html
+++ b/www/blog/index.html
@@ -33,7 +33,13 @@ window.onload = function(){
                     <div>
                       <span class="date">{{ post.date | date_to_string }}</span>
                       <span> - by </span>
-                      <span class="author"><a href="{{ post.author.url }}">{{ post.author.name }}</a></span>
+                      <span class="author">
+                        {% if post.author.url %}
+                          <a href="{{ post.author.url }}">{{ post.author.name }}</a>
+                        {% else %}
+                          {{ post.author.name }}
+                        {% endif %}  
+                      </span>
                       <a class="comment" href="{{ site.baseurl }}{{ post.url }}#disqus_thread">Comments</a>
                     </div>
                   </div>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/49275f88/www/static/js/twitter.js
----------------------------------------------------------------------
diff --git a/www/static/js/twitter.js b/www/static/js/twitter.js
new file mode 100644
index 0000000..533382b
--- /dev/null
+++ b/www/static/js/twitter.js
@@ -0,0 +1,3 @@
+<script>
+    !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
+</script>
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org