Repository: incubator-crail-website
Updated Branches:
  refs/heads/master 2e861e0fc -> 1a5d033dc


Files and config to generate web preview figure.

When posting on social media website, we need
a small, nice figure for the front page. This
is now generated using the front.html layout.
This layout is identical to the default layout
except it has a separate hard-coded preview file
path.


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

Branch: refs/heads/master
Commit: 1a5d033dcf825fa7b806b1f8553ae8055e0359ec
Parents: 2e861e0
Author: Animesh Trivedi <animesh.triv...@gmail.com>
Authored: Thu Feb 8 15:03:47 2018 +0100
Committer: Animesh Trivedi <animesh.triv...@gmail.com>
Committed: Thu Feb 8 15:03:47 2018 +0100

----------------------------------------------------------------------
 site/Makefile                    |   4 +--
 site/_graphix/stack.odp          | Bin 20769 -> 20908 bytes
 site/_layouts/front.html         |  57 ++++++++++++++++++++++++++++++++++
 site/img/crail-stack-preview.png | Bin 0 -> 195268 bytes
 site/index.html                  |   2 +-
 5 files changed, 60 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-crail-website/blob/1a5d033d/site/Makefile
----------------------------------------------------------------------
diff --git a/site/Makefile b/site/Makefile
index 8f41bab..80c7794 100644
--- a/site/Makefile
+++ b/site/Makefile
@@ -7,7 +7,7 @@ all: _site/index.html
 
 BUILDARGS :=
 _site/index.html _site/wacas14/index.html:
-       jekyll build $(BUILDARGS)
+       bundle exec jekyll build $(BUILDARGS)
 
 #_includes/pubs.html: bib/pubs.bib bib/publications.tmpl
 #      mkdir -p _includes
@@ -18,7 +18,7 @@ _site/index.html: $(wildcard *.html) _config.yml 
_layouts/default.html
 clean:
        $(RM) -r _site 
 
-HOST := https://zrlio.github.io/crail-project
+HOST := http://crail.incubator.apache.org
 PATHSVR := www/
 deploy: clean all
        rsync --compress --recursive --checksum --itemize-changes --delete -e 
ssh _site/ $(HOST):$(PATHSVR)

http://git-wip-us.apache.org/repos/asf/incubator-crail-website/blob/1a5d033d/site/_graphix/stack.odp
----------------------------------------------------------------------
diff --git a/site/_graphix/stack.odp b/site/_graphix/stack.odp
index 7d0a299..d01eb1e 100644
Binary files a/site/_graphix/stack.odp and b/site/_graphix/stack.odp differ

http://git-wip-us.apache.org/repos/asf/incubator-crail-website/blob/1a5d033d/site/_layouts/front.html
----------------------------------------------------------------------
diff --git a/site/_layouts/front.html b/site/_layouts/front.html
new file mode 100644
index 0000000..3004232
--- /dev/null
+++ b/site/_layouts/front.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <title>{{ site.name }}: {{ page.title }}</title>
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <link href="{{ site.base }}/css/bootstrap.min.css" rel="stylesheet">
+        <link href="{{ site.base }}/css/group.css" rel="stylesheet">
+        <link rel="alternate" type="application/atom+xml" title="Atom"
+            href="{{ site.base }}/blog/blog.xml">
+        <meta property="og:image" content="{{ site.base 
}}/img/crail-stack-preview.png" />
+        <meta property="og:image:secure_url" content="{{ site.base 
}}/img/crail-stack-preview.png" />
+    </head>
+
+    <body>
+        <div class="container">
+          <div class="header">
+            <ul class="nav nav-pills pull-right">
+              {% assign shorturl = page.url | replace:".html",'' %}
+              {% for item in site.navigation %}
+                {% assign itemurl = item.link |replace:".html" ,'' %}
+                <li {% if itemurl == shorturl %}class="active"{% endif %}>
+                  <a href="{{ site.base }}{{ item.link }}">
+                    {{ item.title }}
+                  </a>
+                </li>
+              {% endfor %}
+            </ul>
+            <a href="{{ site.base }}/">
+                <img src="{{ site.base }}/img/crail_logo.png"
+                    srcset="{{ site.base }}/img/crail_logo.png"
+                    alt="Crail" id="logo">
+            </a>
+          </div>
+
+          {% comment %}Liquid is sort of terrible! I think "!= true" is the
+          only way to do negation?{% endcomment %}
+          {% if page.notitle != true %}
+          <h2>{{ page.title }}</h2>   
+          {% endif %}
+
+          {{ content }}
+
+        <br>
+       <br> 
+          <div class="footer">
+            <p>Apache Crail is an effort undergoing <a 
href="https://incubator.apache.org/";>incubation</a> at <a 
href="https://www.apache.org/";>The Apache Software Foundation (ASF)</a>, 
sponsored by the Apache Incubator PMC. Incubation is required of all newly 
accepted projects until a further review indicates that the infrastructure, 
communications, and decision making process have stabilized in a manner 
consistent with other successful ASF projects. While incubation status is not 
necessarily a reflection of the completeness or stability of the code, it does 
indicate that the project has yet to be fully endorsed by the ASF.
+            </p>
+          </div>
+
+        </div> <!-- /container -->
+
+        <!-- Support retina images. -->
+        <script type="text/javascript"
+            src="{{ site.base }}/js/srcset-polyfill.js"></script>
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/incubator-crail-website/blob/1a5d033d/site/img/crail-stack-preview.png
----------------------------------------------------------------------
diff --git a/site/img/crail-stack-preview.png b/site/img/crail-stack-preview.png
new file mode 100644
index 0000000..e1b258c
Binary files /dev/null and b/site/img/crail-stack-preview.png differ

http://git-wip-us.apache.org/repos/asf/incubator-crail-website/blob/1a5d033d/site/index.html
----------------------------------------------------------------------
diff --git a/site/index.html b/site/index.html
index 270eaac..117bb36 100644
--- a/site/index.html
+++ b/site/index.html
@@ -1,5 +1,5 @@
 ---
-layout: default
+layout: front
 title: Overview
 notitle: true
 ---

Reply via email to