jce-manager/_layouts/page.html

130 lines
4.6 KiB
HTML
Raw Permalink Normal View History

2014-09-11 12:49:20 +00:00
---
---
<!DOCTYPE html>
<html>
{% include head.html %}
<body itemscope itemtype="http://schema.org/Article">
{% 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>
</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({{ page.author_image }})">Blog Logo</div>
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{ page.author }}</h4>
</div>
</div>
</div>
<br>
<br>
<br>
{% endif %}
2014-09-11 12:49:20 +00:00
<section class="post-content">
<a name="topofpage"></a>
<header class="blog-header">
{% if site.logo %}
2014-09-23 09:14:28 +00:00
<a class="blog-logo" href="{{site.fullurl}}" style="background-image: url('{{ site.logo }}')">{{ site.title }}</a>
<br><br>
{% endif %}
<h1 class="blog-title">{{ site.title }} - {{ page.title }}</h1>
2014-09-23 09:14:28 +00:00
<h5 class="blog-description">{{ site.description }}</h2>
<div class="custom-links">
{% for social in site.social %}
<a class="icon-{{ social.icon }}" href="{{ social.url }}">
<i class="fa fa-{{ social.icon }}"></i>
</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
{% endfor %}
<a href="{{ site.baseurl }}/about/">About</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="{{ site.baseurl }}/download/">Download</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="{{ site.baseurl }}/help/">Help</a>
</div>
<br>
<center>
<!--[if IE]><b><p> Get a better browser! - This website dose not support Internet Explorer </p></b><![endif]-->
</center>
</header>
2014-09-11 12:49:20 +00:00
{{content}}
</section>
</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>
2014-09-11 21:13:45 +00:00
<a href="{{ site.baseurl }}/" class="btn">Back to Overview</a>
2014-09-11 12:49:20 +00:00
</div>
</div>
</body>
</html>