Skip to content

Commit

Permalink
Merge pull request dirkfabisch#13 from MarkBorcherding/feature/option…
Browse files Browse the repository at this point in the history
…ally_show_featured_posts

Optionally show featured posts
  • Loading branch information
dirkfabisch committed Oct 29, 2014
2 parents 884fc59 + ad7f02c commit 064aa16
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
14 changes: 7 additions & 7 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ <h4 class="author-name" itemprop="author" itemscope itemtype="http://schema.org/
</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>
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>
14 changes: 7 additions & 7 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ <h5 class="index-headline featured"><span>Supported by</span></h5>
</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>
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>
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ <h2 class="blog-description">{{ site.description }}</h2>

<main class="content" role="main">

{% if site.tags.featured %}
<h5 class="index-headline featured"><span>Featured</span></h5>

<div class="container featured">
Expand All @@ -72,6 +73,7 @@ <h2 class="post-title" itemprop="name"><a href="{{ post.url }}" itemprop="url">{
</div>

<h5 class="index-headline normal"><span>Regular</span></h5>
{% endif %}

<div class="cf frame">
{% for post in paginator.posts %}
Expand Down

0 comments on commit 064aa16

Please sign in to comment.