Skip to content

Commit 4d810ec

Browse files
committed
First commit of this new jekyll theme sustain.
1 parent 2b43b18 commit 4d810ec

38 files changed

+1372
-1
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
*.swp
3+
.idea/
4+
_site/

404.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
layout: layout
3+
title: Page not found!
4+
---
5+
6+
<div class="container">
7+
<div class="page-not-found">
8+
<h3>Uh oh! Page not found!</h3>
9+
</div>
10+
</div>

CNAME

Whitespace-only changes.

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Fábio Madeira
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+47-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,47 @@
1-
# sustain
1+
2+
# Sustain
3+
4+
Personal blog built with [Bootstrap](http://getbootstrap.com/), powered by [Jekyll](http://jekyllrb.com/) and freely
5+
hosted in [Github pages](https://pages.github.com/).
6+
7+
8+
## View the live demo
9+
10+
[Sustain Live Demo](https://biomadeira.github.io/sustain)
11+
12+
13+
## Screenshots
14+
15+
**Home page**
16+
![home page](https://raw.githubusercontent.com/biomadeira/sustain/gh-pages/assets/images/screen1.png)
17+
18+
**Blog page**
19+
![blog page](https://raw.githubusercontent.com/biomadeira/sustain/gh-pages/assets/images/screen2.png)
20+
21+
**Post page**
22+
![post page](https://raw.githubusercontent.com/biomadeira/sustain/gh-pages/assets/images/screen3.png)
23+
24+
**Projects page**
25+
![project page](https://raw.githubusercontent.com/biomadeira/sustain/gh-pages/assets/images/screen4.png)
26+
27+
28+
## How to use it
29+
30+
Simply clone/fork this repository, and then run `jekyll serve` inside the directory.
31+
Edit the site attributes in *_config.yml* and edit the various entries in *_includes/* and *_posts/*.
32+
33+
## Thanks
34+
35+
Profile picture from [pexels](https://www.pexels.com/photo/portrait-black-african-ethnicity-person-9494/).
36+
37+
38+
## Copyright & License
39+
40+
Copyright (C) 2015 - Released under the MIT License.
41+
42+
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:
43+
44+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
45+
46+
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
47+
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.

_config.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# top level stuff you probably don't need to touch
2+
highlighter: pygments
3+
markdown: rdiscount
4+
rdiscount:
5+
extensions: [smart]
6+
permalink: /:title.html
7+
paginate: 5
8+
port: 3000
9+
safe: true
10+
11+
12+
# edit here to achieve your personal greatness
13+
url: http://username.github.io/
14+
baseurl: /sustain/
15+
title: Chris Turner
16+
author: Chris Turner
17+
description: Personal blog and resume
18+
avatar: profile.png
19+
20+
github: username
21+
twitter: chrisstturner
22+
linkedin: username
23+
disqus: username
24+
google_analytics: UA-69391421-1

_includes/analytics.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6+
7+
ga('create', '{{ site.google_analytics }}', 'auto');
8+
ga('send', 'pageview');
9+
10+
</script>

_includes/disqus.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<div class="disqus">
2+
<div id="disqus_thread"></div>
3+
<script type="text/javascript">
4+
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
5+
var disqus_shortname = '{{ site.disqus }}'; // required: replace example with your forum shortname
6+
var disqus_identifier = '{{ page.url }}';
7+
var disqus_url = '{{ site.url }}{{ page.url }}';
8+
9+
/* * * DON'T EDIT BELOW THIS LINE * * */
10+
(function() {
11+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
12+
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
13+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
14+
})();
15+
</script>
16+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
17+
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
18+
</div>

_includes/feed-detail.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<entry>
2+
<title type="text">{{ post.title | xml_escape }}</title>
3+
<link rel="alternate" type="text/html" href="{{ site.url }}{{ post.url }}" />
4+
<id>{{ site.url }}{{ post.id }}</id>
5+
<published>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</published>
6+
<updated>{{ post.date | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
7+
<content type="html"><![CDATA[ {{ post.content }} ]]></content>
8+
</entry>

_includes/footer.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<footer>
2+
<div id="footer">
3+
<div class="container">
4+
<p class="text-muted">© All rights reserved. Powered by <a href="http://jekyllrb.com/">Jekyll</a> and
5+
<a href="http://www.github.com/biomadeira/sustain">sustain</a> with ♥</p>
6+
</div>
7+
</div>
8+
</footer>
9+
<div class="footer"></div>

_includes/header.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<nav class="navbar navbar-default">
2+
<div class="container">
3+
<div class="navbar-header">
4+
<a class="navbar-brand" href="{{ site.baseurl }}"><i class="fa fa-home"></i></a>
5+
</div>
6+
<div id="navbar">
7+
<ul class="nav navbar-nav navbar-right">
8+
<li><a href="{{ site.baseurl }}blog.html">BLOG</a></li>
9+
<li><a href="{{ site.baseurl }}projects.html">PROJECTS</a></li>
10+
<li><a href="http://biomadeira.github.io/vitae">RESUME</a></li>
11+
</ul>
12+
</div>
13+
</div>
14+
</nav>

_includes/projects.html

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<section id="projects">
2+
<div class="container">
3+
<h3>Projects</h3>
4+
<div class="panel panel-default">
5+
<div class="panel-body">
6+
<h4>
7+
<i class="fa fa-github"></i>&nbsp;&nbsp;<strong><a href="#">Project 1</a></strong>
8+
- Ei viderer tacimates pro, quem assum ea nam. Veritus omnesque eam te. Et natum mucius tamquam vel,
9+
ea dolorem volumus deterruisset nec. Graeci mentitum sea an, eu prima elaboraret est.
10+
</h4>
11+
<h4>
12+
<i class="fa fa-github"></i>&nbsp;&nbsp;<strong><a href="#">Project 2</a></strong>
13+
- An eripuit phaedrum qui, nec facer splendide ex, vel ea assum facilisi convenire.
14+
Te his neglegentur consectetuer.
15+
</h4>
16+
<h4>
17+
<i class="fa fa-github"></i>&nbsp;&nbsp;<strong><a href="#">Project 3</a></strong>
18+
- An alii quot tantas eum, doming platonem persecuti mea et, vim perpetua cotidieque delicatissimi in.
19+
</h4>
20+
<h4>
21+
<i class="fa fa-globe"></i>&nbsp;&nbsp;<strong><a href="#">Project 4</a></strong>
22+
- Vim an case vidit sententiae, est at euismod laboramus efficiantur. Ei sit brute lorem,
23+
ea eam timeam viderer aliquid, cu integre omittam moderatius quo.
24+
</h4>
25+
<h4>
26+
<i class="fa fa-globe"></i>&nbsp;&nbsp;<strong><a href="#">Project 5</a></strong>
27+
- Dicta causae meliore ex vel, in vix erant integre petentium. Vix ei nisl scripta recusabo,
28+
eam doming blandit facilisis.
29+
</h4>
30+
<h4>
31+
<i class="fa fa-cog"></i>&nbsp;&nbsp;<strong><a href="#">Project 6</a></strong>
32+
- Inermis recusabo elaboraret mea et, dicat neglegentur vim te. Nec et sanctus scriptorem,
33+
usu ex sapientem gubergren. Tamquam admodum ei usu.
34+
</h4>
35+
<h4>
36+
<i class="fa fa-cog"></i>&nbsp;&nbsp;<strong><a href="#">Project 7</a></strong>
37+
- Essent putant indoctum sed in, reprimique persequeris neglegentur te quo. Nam rebum
38+
tractatos partiendo at, debet ubique oporteat ut his.
39+
</h4>
40+
41+
42+
</div>
43+
</div>
44+
</div>
45+
</section>

_includes/social.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div class="social">
2+
<h4>
3+
<a href="http://github.com/{{ site.github }}"><i class="fa fa-github"></i></a>
4+
<a href="http://twitter.com/{{ site.twitter }}"><i class="fa fa-twitter"></i></a>
5+
<a href="http://linkedin.com/in/{{ site.linkedin }}"><i class="fa fa-linkedin"></i></a>
6+
</h4>
7+
</div>

_layouts/atom.xml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<feed xmlns="http://www.w3.org/2005/Atom">
3+
{% if page.grouptype == 'tag' %}
4+
<title type="text" xml:lang="en">Posts Tagged “{{ page.tag }}” – {{ site.title }}</title>
5+
<link type="application/atom+xml" rel="self" href="{{ site.url }}/tag/{{ page.tag | replace:' ','-' | downcase }}/atom.xml"/>
6+
{% elsif page.grouptype == 'category' %}
7+
<title type="text" xml:lang="en">Posts Categorized “{{ page.category | titlecase }}” – {{ site.title }}</title>
8+
<link type="application/atom+xml" rel="self" href="{{ site.url }}/category/{{ page.category | replace:' ','-' | downcase }}/atom.xml"/>
9+
{% else %}
10+
<title type="text" xml:lang="en">{{ site.title }}</title>
11+
<link type="application/atom+xml" rel="self" href="{{ site.url }}/atom.xml"/>
12+
{% endif %}
13+
<link href="{{ site.url }}/"/>
14+
<id>{{ site.url }}/</id>
15+
<updated>{{ site.time | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
16+
<author>
17+
<name>{{ site.author }}</name>
18+
<email>{{ site.email }}</email>
19+
</author>
20+
<rights type="text">Copyright © {{ site.time | date: "%Y" }} {{ site.author }}. All rights reserved.</rights>
21+
{{ content }}
22+
</feed>

_layouts/home.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: layout
3+
---
4+
5+
{{ content }}

_layouts/layout.html

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<meta name="author" content="{{ site.author }}" />
8+
<meta name="description" content="{{ site.description }}">
9+
<link rel="favicon" href="{{ site.baseurl }}static/img/favicon.ico">
10+
11+
{% if page.title %}
12+
<title>{{ page.title }}</title>
13+
{% else %}
14+
<title>{{ site.title }}</title>
15+
{% endif %}
16+
17+
<!-- Bootstrap -->
18+
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"
19+
integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ=="
20+
crossorigin="anonymous">
21+
22+
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
23+
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
24+
<!--[if lt IE 9]>
25+
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
26+
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
27+
<![endif]-->
28+
29+
<!-- Custom styles for this template -->
30+
<link href="{{ site.baseurl }}static/css/main.css" rel="stylesheet">
31+
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,400,200bold,400old" rel="stylesheet" type="text/css">
32+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
33+
<link href="{{ site.baseurl }}static/css/bootstrap.icon-large.min.css" rel="stylesheet">
34+
35+
<!-- Google Analytics -->
36+
{% include analytics.html %}
37+
</head>
38+
<!-- Main Body-->
39+
<body>
40+
<!-- Wrap all page content here -->
41+
<div id="wrap">
42+
<!-- Navbar header -->
43+
{% include header.html %}
44+
45+
{{ content }}
46+
47+
</div>
48+
<!-- Footer -->
49+
{% include footer.html %}
50+
51+
<a href="https://github.com/you"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png"></a>
52+
53+
<!-- Bootstrap core JavaScript -->
54+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"
55+
integrity="sha256-Sk3nkD6mLTMOF0EOpNtsIry+s1CsaqQC1rVLTAy+0yc= sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ=="
56+
crossorigin="anonymous"></script>
57+
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
58+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
59+
<!-- Include all compiled plugins (below), or include individual files as needed -->
60+
<script src="{{ site.baseurl }}static/js/docs.min.js"></script>
61+
<script src="{{ site.baseurl }}static/js/main.js"></script>
62+
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
63+
<script src="{{ site.baseurl }}static/js/ie10-viewport-bug-workaround.js"></script>
64+
</body>
65+
</html>

_layouts/page.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: layout
3+
---
4+
5+
{{ content }}

_layouts/post.html

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
layout: layout
3+
---
4+
5+
<div class="container">
6+
<div class="blog-post">
7+
<h3>
8+
<strong><a href="{{ page.url }}">{{ page.title }}</a></strong>
9+
</h3>
10+
</div>
11+
<div class="blog-title">
12+
<h4>
13+
{{ page.date | date: "%B %e, %Y" }}
14+
&nbsp;&nbsp;
15+
{% for tag in page.tags %}
16+
<span class="label label-success">{{ tag }}</span>
17+
{% endfor %}
18+
</h4>
19+
</div>
20+
<div class="panel panel-default">
21+
<div class="panel-body">
22+
<h4>
23+
{{ content }}
24+
<hr>
25+
<div class="related-posts">
26+
<h4>Related Posts</h4>
27+
{% for post in site.related_posts limit:3 %}
28+
<div class="row">
29+
<div class="col-sm-4 col-md-4 col-lg-4"><h6 style="text-align: right">
30+
{{ post.date | date: "%B %e, %Y" }}</h6></div>
31+
<div class="col-sm-8 col-md-8 col-lg-8"><h6 style="text-align: left">
32+
<strong><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></strong></h6></div>
33+
</div>
34+
{% endfor %}
35+
</div>
36+
</h4>
37+
</div>
38+
</div>
39+
{% include disqus.html %}
40+
</div>

_posts/2012-11-04-post7.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: post
3+
title: Nice sticky footer down there &darr; &darr;
4+
tags:
5+
- News
6+
- Tags
7+
- Blog
8+
- Post
9+
---
10+
11+
Lorem ipsum dolor sit amet, te semper nostrud eos, ei feugiat dignissim nam, graeco aliquid vix ad. Ut nec erant pericula, ei mollis nominati qui. Vim an case vidit sententiae, est at euismod laboramus efficiantur. Ei sit brute lorem, ea eam timeam viderer aliquid, cu integre omittam moderatius quo.
12+
13+
Per cu prompta minimum. No sit stet aliquam, et duo tale possit minimum. Cu dicta mundi consequat sed. Ut duo sint probatus deserunt. Iriure copiosae te sed. Duo ea unum lorem tempor, per ex novum dicit concludaturque, ei ullum sanctus luptatum eum.

0 commit comments

Comments
 (0)