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.
diff --git a/site/Makefile b/site/Makefile
index 8f41bab..80c7794 100644
--- a/site/Makefile
+++ b/site/Makefile
@@ -7,7 +7,7 @@
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 @@
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)
diff --git a/site/_graphix/stack.odp b/site/_graphix/stack.odp
index 7d0a299..d01eb1e 100644
--- a/site/_graphix/stack.odp
+++ b/site/_graphix/stack.odp
Binary files differ
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>
diff --git a/site/img/crail-stack-preview.png b/site/img/crail-stack-preview.png
new file mode 100644
index 0000000..e1b258c
--- /dev/null
+++ b/site/img/crail-stack-preview.png
Binary files differ
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
---