Skip to content

Commit

Permalink
Port from Wordpress to Jekyll
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun committed Jul 4, 2016
1 parent 369ec52 commit fc04eaf
Show file tree
Hide file tree
Showing 32 changed files with 1,267 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
_site
.sass-cache
1 change: 1 addition & 0 deletions Gemfile
@@ -0,0 +1 @@
gem 'github-pages', group: :jekyll_plugins
129 changes: 129 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,129 @@
GEM
specs:
RedCloth (4.2.9)
activesupport (4.2.5.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.3.8)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
colorator (0.1)
ethon (0.8.1)
ffi (>= 1.3.0)
execjs (2.6.0)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
ffi (1.9.10)
gemoji (2.1.0)
github-pages (52)
RedCloth (= 4.2.9)
github-pages-health-check (= 1.0.1)
jekyll (= 3.0.3)
jekyll-coffeescript (= 1.0.1)
jekyll-feed (= 0.4.0)
jekyll-gist (= 1.4.0)
jekyll-mentions (= 1.0.1)
jekyll-paginate (= 1.1.0)
jekyll-redirect-from (= 0.9.1)
jekyll-sass-converter (= 1.3.0)
jekyll-seo-tag (= 1.3.1)
jekyll-sitemap (= 0.10.0)
jekyll-textile-converter (= 0.1.0)
jemoji (= 0.5.1)
kramdown (= 1.9.0)
liquid (= 3.0.6)
mercenary (~> 0.3)
rdiscount (= 2.1.8)
redcarpet (= 3.3.3)
rouge (= 1.10.1)
terminal-table (~> 1.4)
github-pages-health-check (1.0.1)
addressable (~> 2.3)
net-dns (~> 0.8)
octokit (~> 4.0)
public_suffix (~> 1.4)
typhoeus (~> 0.7)
html-pipeline (2.3.0)
activesupport (>= 2, < 5)
nokogiri (>= 1.4)
i18n (0.7.0)
jekyll (3.0.3)
colorator (~> 0.1)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 3.0)
mercenary (~> 0.3.3)
rouge (~> 1.7)
safe_yaml (~> 1.0)
jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2)
jekyll-feed (0.4.0)
jekyll-gist (1.4.0)
octokit (~> 4.2)
jekyll-mentions (1.0.1)
html-pipeline (~> 2.3)
jekyll (~> 3.0)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.9.1)
jekyll (>= 2.0)
jekyll-sass-converter (1.3.0)
sass (~> 3.2)
jekyll-seo-tag (1.3.1)
jekyll (~> 3.0)
jekyll-sitemap (0.10.0)
jekyll-textile-converter (0.1.0)
RedCloth (~> 4.0)
jekyll-watch (1.3.1)
listen (~> 3.0)
jemoji (0.5.1)
gemoji (~> 2.0)
html-pipeline (~> 2.2)
jekyll (>= 2.0)
json (1.8.3)
kramdown (1.9.0)
liquid (3.0.6)
listen (3.0.6)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9.7)
mercenary (0.3.5)
mini_portile2 (2.0.0)
minitest (5.8.4)
multipart-post (2.0.0)
net-dns (0.8.0)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
octokit (4.2.0)
sawyer (~> 0.6.0, >= 0.5.3)
public_suffix (1.5.3)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
rdiscount (2.1.8)
redcarpet (3.3.3)
rouge (1.10.1)
safe_yaml (1.0.4)
sass (3.4.21)
sawyer (0.6.0)
addressable (~> 2.3.5)
faraday (~> 0.8, < 0.10)
terminal-table (1.5.2)
thread_safe (0.3.5)
typhoeus (0.8.0)
ethon (>= 0.8.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
github-pages

BUNDLED WITH
1.10.6
22 changes: 22 additions & 0 deletions LICENSE
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2014 NUS Modifications

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

3 changes: 2 additions & 1 deletion README.md 100644 → 100755
@@ -1 +1,2 @@
# grab.github.io
Grab Engineering Blog
===========
17 changes: 17 additions & 0 deletions _config.yml
@@ -0,0 +1,17 @@
# Site settings
title: Grab Engineering
email: engineering.blog@grab.com
description: > # this means to ignore newlines until "baseurl:"
Hey there! We hope you have enjoyed using Grab so far. Keep
up with our latest updates on our blog. Subscribe using the RSS button!
url: https://grab.github.io # the base hostname & protocol for your site
facebook_username: grab.engineering
twitter_username: GrabSG
github_username: grab

# Build settings
markdown: kramdown
highlighter: pygments
permalink: /:title
paginate: 5
encoding: UTF-8
45 changes: 45 additions & 0 deletions _includes/footer.html
@@ -0,0 +1,45 @@
<footer class="site-footer">
<div class="wrapper">
<h2 class="footer-heading">
<a href="{{ site.url }}" target="_blank">{{ site.title }}</a>
</h2>
<div class="row">
<div class="col-md-6">
<ul class="contact-list">
<li>Reach us at <a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
</ul>
<ul class="social-media-list">
{% if site.facebook_username %}
<li>
<a href="https://facebook.com/{{ site.facebook_username }}" target="_blank">
<i class="fa fa-facebook-square fa-2x"></i>
</a>
</li>
{% endif %}
{% if site.github_username %}
<li>
<a href="https://github.com/{{ site.github_username }}" target="_blank">
<i class="fa fa-github fa-2x"></i>
</a>
</li>
{% endif %}
{% if site.twitter_username %}
<li>
<a href="https://twitter.com/{{ site.twitter_username }}" target="_blank">
<i class="fa fa-twitter fa-2x"></i>
</a>
</li>
{% endif %}
<li>
<a href="{{ "/feed.xml" | prepend: site.baseurl }}" target="_blank">
<i class="fa fa-rss fa-2x"></i>
</a>
</li>
</ul>
</div>
<div class="col-md-6">
<p class="text">{{ site.description }}</p>
</div>
</div>
</div>
</footer>
36 changes: 36 additions & 0 deletions _includes/head.html
@@ -0,0 +1,36 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>

<!-- Favicons -->
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">

<!-- CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,900' rel='stylesheet' type='text/css'>
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">

<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="RSS for Official {{ site.title }} Engineering Blog" href="/feed.xml">

<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', '', 'auto');
ga('send', 'pageview');
</script>
</head>
8 changes: 8 additions & 0 deletions _includes/header.html
@@ -0,0 +1,8 @@
<header class="site-header">
<div class="wrapper">
<div class="site-title-wrapper">
<a class="site-title" href="{{ site.baseurl }}/"></a>
<h4 class="site-subtitle">The Blog</h4>
</div>
</div>
</header>
13 changes: 13 additions & 0 deletions _layouts/default.html
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
{% include header.html %}
<div class="page-content">
<div class="wrapper">
{{ content }}
</div>
</div>
{% include footer.html %}
</body>
</html>
11 changes: 11 additions & 0 deletions _layouts/page.html
@@ -0,0 +1,11 @@
---
layout: default
---
<div class="post">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
</header>
<article class="post-content">
{{ content }}
</article>
</div>
17 changes: 17 additions & 0 deletions _layouts/post-page.html
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
<header class="site-header">
<div class="site-title-wrapper mini">
<a class="site-title" href="{{ site.baseurl }}/"></a>
</div>
</header>
<div class="page-content">
<div class="wrapper">
{{ content }}
</div>
</div>
{% include footer.html %}
</body>
</html>
16 changes: 16 additions & 0 deletions _layouts/post.html
@@ -0,0 +1,16 @@
---
layout: post-page
---
<div class="post">
<header class="post-header">
<div class="text-center">
<img class="post-author-thumbnail-large img-circle" src="{{ page.author_thumbnail }}">
</div>
<br>
<h1 class="post-title text-center">{{ page.title }}</h1>
<p class="post-meta text-center">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} by {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
</header>
<article class="post-content">
{{ content }}
</article>
</div>

0 comments on commit fc04eaf

Please sign in to comment.