Skip to content

Commit

Permalink
ARROW-52: Set up project blog, draft 0.3 release posting
Browse files Browse the repository at this point in the history
This will need additional updates after the 0.3 release to fix dates and URLs, but wanted to get this up for review and comment.

Some things I did here:

* Fixed top navbar on mobile devices
* Set up blogroll and simple blog templates
* Added "Project Links" menu
* Moved committers to a separate page

Author: Wes McKinney <[email protected]>

Closes apache#639 from wesm/ARROW-52 and squashes the following commits:

a104fbd [Wes McKinney] Code review comments and fix typos
5262583 [Wes McKinney] Typo
2236a7c [Wes McKinney] tweak
3f57b51 [Wes McKinney] Typo
4b22731 [Wes McKinney] Finish 0.3 release blog draft
5e34079 [Wes McKinney] Drafting 0.3 release blog post
058c625 [Wes McKinney] Rename post
d22490d [Wes McKinney] Fix mobile navbar. Move committers to separate page. Add project links nav, install page. Blog page placeholder
  • Loading branch information
wesm committed May 5, 2017
1 parent cc06197 commit f63ff08
Show file tree
Hide file tree
Showing 13 changed files with 537 additions and 124 deletions.
2 changes: 2 additions & 0 deletions site/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
# limitations under the License.
#
markdown: kramdown
permalink: /blog/:year/:month/:day/:title/
repository: https://github.com/apache/arrow
destination: build
excerpt_separator: ""

exclude:
- Gemfile
Expand Down
12 changes: 12 additions & 0 deletions site/_includes/blog_contents.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div>
<aside>
<h4>Posts</h4>
<ul>
{% for post in site.posts %}
<li class="{% if page.title == post.title %}current{% endif %}">
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</aside>
</div>
39 changes: 39 additions & 0 deletions site/_includes/blog_entry.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{% 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 %}
<div class="container">
<h2>
{{ post.title }}
<a href="{{ post.url }}" class="permalink" title="Permalink"></a>
</h2>

<div class="panel">
<div class="panel-body">
<div>
<span class="label label-default">Published</span>
<span class="published">
<i class="fa fa-calendar"></i>
{{ post.date | date_to_string }}
</span>
</div>
<div>
<span class="label label-default">By</span>
<a href="{{ homepage }}"><i class="fa fa-user"></i> {{ post.author }}</a>
</div>
</div>
</div>
{{ post.content }}
</div>
1 change: 1 addition & 0 deletions site/_includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<hr/>
<footer class="footer">
<p>Apache Arrow, Arrow, Apache, the Apache feather logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.</p>
<p>&copy; 2017 Apache Software Foundation</p>
Expand Down
31 changes: 26 additions & 5 deletions site/_includes/header.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#arrow-navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ site.baseurl }}/">Apache Arrow&#8482;&nbsp;&nbsp;&nbsp;</a>
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<div class="collapse navbar-collapse" id="arrow-navbar">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"
role="button" aria-haspopup="true"
aria-expanded="false">Project Links<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="{{ site.baseurl }}/install/">Install</a></li>
<li><a href="{{ site.baseurl }}/blog/">Blog</a></li>
<li><a href="https://issues.apache.org/jira/browse/ARROW">Issue Tracker</a></li>
<li><a href="https://github.com/apache/arrow">Source Code</a></li>
<li><a href="http://mail-archives.apache.org/mod_mbox/arrow-dev/">Mailing List</a></li>
<li><a href="https://apachearrowslackin.herokuapp.com">Slack Channel</a></li>
<li><a href="{{ site.baseurl }}/committers/">Committers</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"
role="button" aria-haspopup="true"
Expand All @@ -22,13 +43,13 @@
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"
role="button" aria-haspopup="true"
aria-expanded="false">Code Documentation<span class="caret"></span>
aria-expanded="false">Documentation<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="{{ site.baseurl }}/docs/cpp">C++</a></li>
<li><a href="{{ site.baseurl }}/docs/java">Java</a></li>
<li><a href="{{ site.baseurl }}/docs/python">Python</a></li>
<li><a href="{{ site.baseurl }}/docs/c_glib">C (GLib)</a></li>
<li><a href="{{ site.baseurl }}/docs/cpp">C++ API</a></li>
<li><a href="{{ site.baseurl }}/docs/java">Java API</a></li>
<li><a href="{{ site.baseurl }}/docs/c_glib">C GLib API</a></li>
</ul>
</li>
<!-- <li><a href="{{ site.baseurl }}/blog">Blog</a></li> -->
Expand Down
15 changes: 15 additions & 0 deletions site/_layouts/blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: default
---

<section class="blog">
<div class="grid">

<div class="">
{{ content }}
</div>

<!-- {% include blog_contents.html %} -->
<div class="clear"></div>
</div>
</section>
34 changes: 34 additions & 0 deletions site/_layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{% include top.html %}
{% capture homepage %}http://people.apache.org/~{{ page.author }}{% endcapture %}

<body class="wrap">
<div class="container">
{% include header.html %}

<h2>
{{ page.title }}
<a href="{{ page.url }}" class="permalink" title="Permalink"></a>
</h2>

<div class="panel">
<div class="panel-body">
<div>
<span class="label label-default">Published</span>
<span class="published">
<i class="fa fa-calendar"></i>
{{ page.date | date_to_string }}
</span>
</div>
<div>
<span class="label label-default">By</span>
<a href="{{ homepage }}"><i class="fa fa-user"></i> {{ page.author }}</a>
</div>
</div>
</div>

{{ content }}

{% include footer.html %}
</div>
</body>
</html>
Loading

0 comments on commit f63ff08

Please sign in to comment.