Skip to content

Commit 4214b46

Browse files
committed
Add
1 parent 5fbb4a1 commit 4214b46

File tree

84 files changed

+4398
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+4398
-0
lines changed

_includes/footer.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- footer start -->
2+
3+
<footer class="site-footer">
4+
<a class="subscribe" href="{{ "/feed.xml" | prepend: site.baseurl }}"> <span class="tooltip"> <i class="fa fa-rss"></i> Subscribe!</span></a>
5+
<div class="inner">
6+
<section class="copyright">All content copyright <a href="mailto:{{ site.email}}">{{ site.name }}</a> &copy; {{ site.time | date: '%Y' }} &bull; All rights reserved.</section>
7+
<section class="poweredby">Made with <a href="http://jekyllrb.com"> Jekyll</a></section>
8+
</div>
9+
</footer>
10+
11+
<!-- footer end -->

_includes/google_analytics.html

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

_includes/head.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<!-- (1) Optimize for mobile versions: http://goo.gl/EOpFl -->
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
<!-- (1) force latest IE rendering engine: bit.ly/1c8EiC9 -->
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
8+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
9+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 200 }}{% else %}{{ site.description }}{% endif %}" />
10+
11+
<meta name="HandheldFriendly" content="True" />
12+
<meta name="MobileOptimized" content="320" />
13+
<meta name="apple-mobile-web-app-capable" content="yes">
14+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
15+
{% if site.twitter_handle %}
16+
<meta name="twitter:card" content="summary" />
17+
<meta name="twitter:site" content="{{ site.twitter_handle }}" />
18+
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
19+
<meta name="twitter:image" content="{{ site.logo | prepend: site.baseurl | prepend: site.url }}" />
20+
{% if page.excerpt %}
21+
<meta name="twitter:description" content="{{ page.excerpt | strip_html | strip_newlines | truncate: 200 }}" />
22+
{% elsif site.description %}
23+
<meta name="twitter:description" content="{{ site.description | strip_html | strip_newlines | truncate: 200 }}" />
24+
{% endif %}
25+
{% endif %}
26+
27+
<meta property="og:site_name" content="{{ site.title }}" />
28+
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"/>
29+
{% if page.excerpt %}
30+
<meta property="og:description" content="{{ page.excerpt | strip_html | strip_newlines | truncate: 200 }}" />
31+
{% elsif site.description %}
32+
<meta property="og:description" content="{{ site.description | strip_html | strip_newlines | truncate: 200 }}" />
33+
{% endif %}
34+
<meta property="og:image" content="{% if page.image %}{{ page.image | prepend: site.baseurl | prepend: site.url }}{% else %}{{ site.logo | prepend: site.baseurl | prepend: site.url }}{% endif %}" />
35+
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" >
36+
<meta property="og:type" content="blog" />
37+
{% if page.date %}<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">{% endif %}
38+
39+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"/>
40+
<link rel="shortcut icon" href="{{ "/assets/images/favicon.png" | prepend: site.baseurl }}" type="image/png"/>
41+
<link rel="stylesheet" href="//brick.a.ssl.fastly.net/Linux+Libertine:400,400i,700,700i/Open+Sans:400,400i,700,700i">
42+
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
43+
44+
<link rel="stylesheet" type="text/css" media="screen" href="{{ "/css/main.css" | prepend: site.baseurl }}" />
45+
<link rel="stylesheet" type="text/css" media="print" href="{{ "/css/print.css" | prepend: site.baseurl }}" />
46+
</head>

_includes/header.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- header start -->
2+
3+
{% if site.float_logo %}
4+
<a href="{{ site.url }}{{ site.baseurl }}" class="logo-readium"><span class="logo" style="background-image: url({{ site.logo }})"></span></a>
5+
{% endif %}
6+
<!-- header end -->

_includes/javascripts.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
2+
<script type="text/javascript" src="{{ "/assets/js/jquery.fitvids.js" | prepend: site.baseurl }}"></script>
3+
<script type="text/javascript" src="{{ "/assets/js/index.js" | prepend: site.baseurl }}"></script>
4+
<script type="text/javascript" src="{{ "/assets/js/readingTime.min.js" | prepend: site.baseurl }}"></script>
5+
<script>
6+
(function ($) {
7+
"use strict";
8+
$(document).ready(function(){
9+
10+
var $window = $(window),
11+
$image = $('.post-image-image, .teaserimage-image');
12+
13+
$window.on('scroll', function() {
14+
var top = $window.scrollTop();
15+
16+
if (top < 0 || top > 1500) { return; }
17+
$image
18+
.css('transform', 'translate3d(0px, '+top/3+'px, 0px)')
19+
.css('opacity', 1-Math.max(top/700, 0));
20+
});
21+
$window.trigger('scroll');
22+
23+
var height = $('.article-image').height();
24+
$('.post-content').css('padding-top', height + 'px');
25+
26+
$('a[href*=#]:not([href=#])').click(function() {
27+
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
28+
&& location.hostname == this.hostname) {
29+
var target = $(this.hash);
30+
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
31+
if (target.length) {
32+
$('html,body').animate({ scrollTop: target.offset().top }, 500);
33+
return false;
34+
}
35+
}
36+
});
37+
38+
});
39+
}(jQuery));
40+
</script>
41+
{% if site.google_analytics %}
42+
{% include google_analytics.html %}
43+
{% endif %}

_layouts/default.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
{% include header.html %}
9+
10+
<!-- content start -->
11+
12+
<div class="page-content">
13+
<div class="wrapper">
14+
{{ content }}
15+
</div>
16+
</div>
17+
18+
<!-- content end -->
19+
20+
{% include footer.html %}
21+
{% include javascripts.html %}
22+
23+
</body>
24+
25+
</html>

_layouts/page.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
---
3+
<!DOCTYPE html>
4+
<html>
5+
{% include head.html %}
6+
<body itemscope itemtype="http://schema.org/Article">
7+
{% include header.html %}
8+
<main class="content" role="main">
9+
<article class="post">
10+
{% if page.image %}
11+
<div class="article-image">
12+
<div class="post-image-image" style="background-image: url({% if page.image %}{{ page.image }}{% endif %})">
13+
Article Image
14+
</div>
15+
<div class="post-meta">
16+
<h1 class="post-title">{{ page.title }}</h1>
17+
<div class="cf post-meta-text">
18+
<div class="author-image" style="background-image: url({{ site.author_image | prepend: site.baseurl }})">Blog Logo</div>
19+
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{ site.author }}</h4>
20+
</div>
21+
<div style="text-align:center">
22+
<a href="#topofpage" class="topofpage"><i class="fa fa-angle-down"></i></a>
23+
</div>
24+
</div>
25+
</div>
26+
{% else %}
27+
<div class="noarticleimage">
28+
<div class="post-meta">
29+
<h1 class="post-title">{{ page.title }}</h1>
30+
<div class="cf post-meta-text">
31+
<div class="author-image" style="background-image: url({{ page.author_image }})">Blog Logo</div>
32+
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{ page.author }}</h4>
33+
</div>
34+
</div>
35+
</div>
36+
<br>
37+
<br>
38+
<br>
39+
{% endif %}
40+
<section class="post-content">
41+
<a name="topofpage"></a>
42+
{{content}}
43+
</section>
44+
</article>
45+
</main>
46+
<div class="bottom-closer">
47+
<div class="background-closer-image" {%if site.cover %} style="background-image: url({{ site.cover | prepend: site.baseurl }})"{% endif %}>
48+
Image
49+
</div>
50+
<div class="inner">
51+
<h1 class="blog-title">{{ site.title }}</h1>
52+
<h2 class="blog-description">{{ site.description }}</h2>
53+
<a href={{ "/" | prepend: site.baseurl }} class="btn">Back to Overview</a>
54+
</div>
55+
</div>
56+
{% include javascripts.html %}
57+
</body>
58+
</html>

_layouts/post.html

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
---
3+
<!DOCTYPE html>
4+
<html>
5+
{% include head.html %}
6+
<body itemscope itemtype="http://schema.org/Article">
7+
{% include header.html %}
8+
<main class="content" role="main">
9+
<article class="post">
10+
{% if page.image %}
11+
<div class="article-image">
12+
<div class="post-image-image" style="background-image: url({% if page.image %}{{ page.image | prepend: site.baseurl }}{% endif %})">
13+
Article Image
14+
</div>
15+
<div class="post-image-image2" style="background-image: url({% if page.image2 %}{{ page.image2 | prepend: site.baseurl }}{% endif %})">
16+
Article Image
17+
</div>
18+
<div class="post-meta">
19+
<h1 class="post-title">{{ page.title }}</h1>
20+
<div class="cf post-meta-text">
21+
<div class="author-image" style="background-image: url({{ site.author_image | prepend: site.baseurl }})">Blog Logo</div>
22+
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{ site.author }}</h4>
23+
on
24+
<time datetime="{{ page.date | date: "%F %R" }}">{{ page.date | date_to_string }}</time>
25+
<!-- , tagged on {{#foreach tags}}<span class="post-tag-{{slug}}">{{#if @first}}{{else}}, {{/if}}<a href="/tag/{{slug}}">{{name}}</a></span>{{/foreach}} -->
26+
</div>
27+
<div style="text-align:center">
28+
<a href="#topofpage" class="topofpage"><i class="fa fa-angle-down"></i></a>
29+
</div>
30+
</div>
31+
</div>
32+
{% else %}
33+
<div class="noarticleimage">
34+
<div class="post-meta">
35+
<h1 class="post-title">{{ page.title }}</h1>
36+
<div class="cf post-meta-text">
37+
<div class="author-image" style="background-image: url({{ site.author_image | prepend: site.baseurl }})">Blog Logo</div>
38+
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{ page.author }}</h4>
39+
on
40+
<time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date_to_string }}</time>
41+
<!-- , tagged on {{#foreach tags}}<span class="post-tag-{{slug}}">{{#if @first}}{{else}}, {{/if}}<a href="/tag/{{slug}}">{{name}}</a></span>{{/foreach}} -->
42+
</div>
43+
</div>
44+
</div>
45+
<br>
46+
<br>
47+
<br>
48+
{% endif %}
49+
<section class="post-content">
50+
<div class="post-reading">
51+
<span class="post-reading-time"></span> read
52+
</div>
53+
<a name="topofpage"></a>
54+
{{content}}
55+
</section>
56+
<footer class="post-footer">
57+
<section class="share">
58+
{% for social in site.social %}
59+
{% if social.share_url != null %}
60+
<a class="icon-{{ social.icon }}" href="{{ social.share_url }}{% if social.share_title %}{{ social.share_title }}{{page.title | cgi_escape}}{% endif %}{{ social.share_link }}{{site.url}}{{site.baseurl}}{{page.id}}"
61+
onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;">
62+
<i class="fa fa-{{ social.icon }}"></i><span class="hidden">{{ social.icon }}</span>
63+
</a>
64+
{% endif %}
65+
{% endfor %}
66+
</section>
67+
</footer>
68+
<div class="bottom-teaser cf">
69+
<div class="isLeft">
70+
<h5 class="index-headline featured"><span>Written by</span></h5>
71+
<section class="author">
72+
<div class="author-image" style="background-image: url({{site.author_image | prepend: site.baseurl}})">Blog Logo</div>
73+
<h4>{{ site.author }}</h4>
74+
<p class="bio">{{author.bio}}</p>
75+
<hr>
76+
<p class="published">Published <time datetime="{{ page.date | date: "%F %R" }}">{{ page.date | date_to_string }}</time></p>
77+
</section>
78+
</div>
79+
{{/post}}
80+
<div class="isRight">
81+
<h5 class="index-headline featured"><span>Supported by</span></h5>
82+
<footer class="site-footer">
83+
<section class="poweredby">Proudly published with <a href="http://jekyllrb.com"> Jekyll</a></section>
84+
<a class="subscribe" href="{{ "/feed.xml" | prepend: site.baseurl }}"> <span class="tooltip"> <i class="fa fa-rss"></i> You should subscribe to my feed.</span></a>
85+
<div class="inner">
86+
<section class="copyright">All content copyright <a href="{{@blog.url}}/">{{site.author}}</a> &copy; {{ site.time | date: '%Y' }}<br>All rights reserved.</section>
87+
</div>
88+
</footer>
89+
</div>
90+
</div>
91+
{%if site.disqus %}
92+
<div id="disqus_thread"></div>
93+
<script type="text/javascript">
94+
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
95+
var disqus_shortname = '{{site.disqus}}'; // required: replace example with your forum shortname
96+
97+
/* * * DON'T EDIT BELOW THIS LINE * * */
98+
(function() {
99+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
100+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
101+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
102+
})();
103+
</script>
104+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
105+
{% endif %}
106+
</article>
107+
</main>
108+
<div class="bottom-closer">
109+
<div class="background-closer-image" {%if site.cover %} style="background-image: url({{ site.cover | prepend: site.baseurl }})"{% endif %}>
110+
Image
111+
</div>
112+
<div class="inner">
113+
<h1 class="blog-title">{{ site.title }}</h1>
114+
<h2 class="blog-description">{{ site.description }}</h2>
115+
<a href={{ "/" | prepend: site.baseurl }} class="btn">Back to Overview</a>
116+
</div>
117+
</div>
118+
{% include javascripts.html %}
119+
</body>
120+
</html>

0 commit comments

Comments
 (0)