Skip to content

Commit

Permalink
#51 hide article image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
m19c committed Aug 20, 2014
1 parent 0183c68 commit 59756d0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
4 changes: 3 additions & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -648,4 +648,6 @@ body {
line-height: 44px;
padding: 0 18px; }
#disqus_thread {
margin-top: 50px; }
margin-top: 50px; }
.post-tag-articleimage {
display: none; }
4 changes: 3 additions & 1 deletion assets/css/main.sass
Original file line number Diff line number Diff line change
Expand Up @@ -635,4 +635,6 @@ body
padding: 0 18px

#disqus_thread
margin-top: 50px
margin-top: 50px
.post-tag-articleimage
display: none
24 changes: 12 additions & 12 deletions index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,31 @@
<script>
(function ($) {
"use strict";
$(document).ready(function(){
var $window = $(window),
$image = $('.teaserimage-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');
});
}(jQuery));
</script>

{{! The main content area on the homepage }}
<main class="content" role="main">

<h5 class="index-headline featured"><span>Featured</span></h5>

<div class="container featured">
{{#foreach posts}}
{{#if featured}}
Expand All @@ -66,16 +66,16 @@
<section class="post-excerpt" itemprop="description">
<p>{{excerpt characters="130"}}&hellip;</p>
</section>
<div class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> <span class="post-tags-set">{{tags prefix="on "}}</span></div>
<div class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> <span class="post-tags-set">on {{#foreach tags}}<span class="post-tag-{{slug}}">{{#if @first}}{{else}}, {{/if}}<a href="/tag/{{slug}}">{{name}}</a></span>{{/foreach}}</span></div>
</div>
</article>
{{/if}}
{{/foreach}}
</div>


<h5 class="index-headline normal"><span>Regular</span></h5>

<div class="cf frame">
{{#foreach posts}}
{{#if featured}}
Expand All @@ -88,7 +88,7 @@
<section class="post-excerpt" itemprop="description">
<p>{{excerpt characters="130"}}&hellip;</p>
</section>
<div class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> <span class="post-tags-set">{{tags prefix="on "}}</span></div>
<div class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> <span class="post-tags-set">on {{#foreach tags}}<span class="post-tag-{{slug}}">{{#if @first}}{{else}}, {{/if}}<a href="/tag/{{slug}}">{{name}}</a></span>{{/foreach}}</span></div>
</div>
</article>
{{/if}}
Expand Down
8 changes: 3 additions & 5 deletions page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
<div class="cf post-meta-text">
<div class="author-image" style="background-image: url({{author.image}})">Blog Logo</div>
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{author.name}}</h4> on
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time>
{{tags prefix=", tagged on " separator=", "}}
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time>, tagged on {{#foreach tags}}<span class="post-tag-{{slug}}">{{#if @first}}{{else}}, {{/if}}<a href="/tag/{{slug}}">{{name}}</a></span>{{/foreach}}
</div>
<center><a href="#topofpage" class="topofpage"><i class="fa fa-angle-down"></i></a></center>
</div>
Expand Down Expand Up @@ -60,7 +59,7 @@
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) {
Expand Down Expand Up @@ -91,8 +90,7 @@
<div class="cf post-meta-text">
<div class="author-image" style="background-image: url({{author.image}})">Blog Logo</div>
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{author.name}}</h4> on
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time>
{{tags prefix=", tagged on " separator=", "}}
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</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>
Expand Down
6 changes: 2 additions & 4 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
<div class="cf post-meta-text">
<div class="author-image" style="background-image: url({{author.image}})">Blog Logo</div>
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{author}}</h4> on
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time>
{{tags prefix=", tagged on " separator=", "}}
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time>, tagged on {{#foreach tags}}<span class="post-tag-{{slug}}">{{#if @first}}{{else}}, {{/if}}<a href="/tag/{{slug}}">{{name}}</a></span>{{/foreach}}
</div>
<center><a href="#topofpage" class="topofpage"><i class="fa fa-angle-down"></i></a></center>
</div>
Expand Down Expand Up @@ -91,8 +90,7 @@
<div class="cf post-meta-text">
<div class="author-image" style="background-image: url({{author.image}})">Blog Logo</div>
<h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/Person">{{author}}</h4> on
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time>
{{tags prefix=", tagged on " separator=", "}}
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</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>
Expand Down

0 comments on commit 59756d0

Please sign in to comment.