Last active
August 29, 2015 14:09
-
-
Save sudevschiz/d7e1fa6b9d6e52164522 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
--- | |
<!DOCTYPE html> | |
<html> | |
{% include head.html %} | |
<body itemscope itemtype="http://schema.org/Article"> | |
<script> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : '364481490395389', | |
xfbml : true, | |
version : 'v2.2' | |
}); | |
}; | |
(function(d, s, id){ | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) {return;} | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_US/sdk.js"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk')); | |
</script> | |
{% include header.html %} | |
<main class="content" role="main"> | |
<article class="post"> | |
{% if page.image %} | |
<div class="article-image"> | |
<div class="post-image-image" style="background-image: url({% if page.image %}{{ page.image }}{% endif %})"> | |
Article Image | |
</div> | |
<div class="post-meta"> | |
<h1 class="post-title">{{ page.title }}</h1> | |
<div class="cf post-meta-text"> | |
<div class="author-image" style="background-image: url({{ site.author_image }})">Blog Logo</div> | |
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{ site.author }}</h4> | |
on | |
<time datetime="{{ page.date | date: "%F %R" }}">{{ page.date | date_to_string }}</time> | |
<!-- , tagged on {{#foreach tags}}<span class="post-tag-{{slug}}">{{#if @first}}{{else}}, {{/if}}<a href="/tag/{{slug}}">{{name}}</a></span>{{/foreach}} --> | |
</div> | |
<div style="text-align:center"> | |
<a href="#topofpage" class="topofpage"><i class="fa fa-angle-down"></i></a> | |
</div> | |
</div> | |
</div> | |
<script> | |
(function ($) { | |
"use strict"; | |
$(document).ready(function(){ | |
var $window = $(window), | |
$image = $('.post-image-image'); | |
$window.on('scroll', function() { | |
var top = $window.scrollTop(); | |
if (top < 0 || top > 1500) { return; } | |
$image | |
.css('transform', 'translate3d(0px, '+top/3+'px, 0px)') | |
.css('opacity', 1-Math.max(top/700, 0)); | |
}); | |
$window.trigger('scroll'); | |
var height = $('.article-image').height(); | |
$('.post-content').css('padding-top', height + 'px'); | |
$(function() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 500); | |
return false; | |
} | |
} | |
}); | |
}); | |
}); | |
}(jQuery)); | |
</script> | |
{% else %} | |
<div class="noarticleimage"> | |
<div class="post-meta"> | |
<h1 class="post-title">{{ page.title }}</h1> | |
<div class="cf post-meta-text"> | |
<div class="author-image" style="background-image: url({{ site.author_image }})">Blog Logo</div> | |
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{ page.author }}</h4> | |
on | |
<time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date_to_string }}</time> | |
<!-- , tagged on {{#foreach tags}}<span class="post-tag-{{slug}}">{{#if @first}}{{else}}, {{/if}}<a href="/tag/{{slug}}">{{name}}</a></span>{{/foreach}} --> | |
</div> | |
</div> | |
</div> | |
<br> | |
<br> | |
<br> | |
{% endif %} | |
<section class="post-content"> | |
<div class="post-reading"> | |
</div> | |
<a name="topofpage"></a> | |
{{content}} | |
</section> | |
<div class="fb-comments" data-href="http://developers.facebook.com/docs/plugins/comments/" data-numposts="5" data-colorscheme="light"></div> | |
<footer class="post-footer"> | |
<section class="share"> | |
{% for social in site.social %} | |
{% if social.share_url != null %} | |
<a class="icon-{{ social.icon }}" href="{{ social.share_url }}{{ social.share_title }}{{page.title | cgi_escape}}{{ social.share_link }}{{site.url}}{{page.id}}" | |
onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;"> | |
<i class="fa fa-{{ social.icon }}"></i><span class="hidden">{{ social.icon }}</span> | |
</a> | |
{% endif %} | |
{% endfor %} | |
</section> | |
</footer> | |
<div class="bottom-teaser cf"> | |
<div class="isLeft"> | |
<h5 class="index-headline featured"><span>Written by</span></h5> | |
<section class="author"> | |
<div class="author-image" style="background-image: url({{site.author_image}})">Blog Logo</div> | |
<h4>{{ site.author }}</h4> | |
<p class="bio">{{author.bio}}</p> | |
<hr> | |
<p class="published">Published <time datetime="{{ page.date | date: "%F %R" }}">{{ page.date | date_to_string }}</time></p> | |
</section> | |
</div> | |
{{/post}} | |
<div class="isRight"> | |
<h5 class="index-headline featured"><span>Supported by</span></h5> | |
<footer class="site-footer"> | |
<section class="poweredby">Proudly published with <a href="http://jekyllrb.com"> Jekyll</a></section> | |
<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> | |
<div class="inner"> | |
<section class="copyright">All content copyright <a href="{{@blog.url}}/">{{site.author}}</a> © 2014<br>All rights reserved.</section> | |
</div> | |
</footer> | |
</div> | |
</div> | |
</article> | |
</main> | |
<div class="bottom-closer"> | |
<div class="background-closer-image" {%if site.cover %} style="background-image: url({{ site.cover }})"{% endif %}> | |
Image | |
</div> | |
<div class="inner"> | |
<h1 class="blog-title">{{ site.title }}</h1> | |
<h2 class="blog-description">{{ site.description }}</h2> | |
<a href="/" class="btn">Back to Overview</a> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment