1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-13 16:45:14 +01:00

rename featured to sticky

This commit is contained in:
Matthias Kretschmann 2013-12-01 18:40:48 +01:00
parent 82e9d7e45b
commit b43bb5cacb
9 changed files with 25 additions and 25 deletions

View File

@ -63,10 +63,10 @@ picture:
width: "480"
source_default:
width: "320"
featured:
sticky:
ppi: [1, 1.5, 2]
attr:
class: "featured-image"
class: "sticky-image"
itemprop: "image"
source_default:
width: "190"

View File

@ -1,13 +0,0 @@
<aside class="row featured">
{% for post in site.posts %}
{% if post.featured %}
<article class="col2">
<a class="featured-link" href="{{ post.url }}" title="{{ post.title }}">
{% picture featured {{ post.image }} %}
<h1 class="featured-title">{{ post.title }}</h1>
</a>
</article>
{% endif %}
{% endfor %}
</aside>

View File

@ -0,0 +1,13 @@
<aside class="row sticky">
{% for post in site.posts %}
{% if post.sticky %}
<article class="col2">
<a class="sticky-link" href="{{ post.url }}" title="{{ post.title }}">
{% picture sticky {{ post.image }} %}
<h1 class="sticky-title">{{ post.title | titlecase }}</h1>
</a>
</article>
{% endif %}
{% endfor %}
</aside>

View File

@ -5,7 +5,7 @@ title: Badged - iOS Style Notification Badges for WordPress
image: Badged-Teaser-kremalicious@2x.png
author: Matthias Kretschmann
moddate: 2013-11-10 07:56:46+00:00
featured: true
sticky: true
date: 2011-12-15 07:56:46+00:00
wordpress_id: 1468

View File

@ -5,7 +5,7 @@ title: Using &lt;kbd&gt; for fun and profit
image: kremalicious-kbdfun-teaser.png
style: poststyle-2300.min.css
author: Matthias Kretschmann
featured: true
sticky: true
date: 2012-07-16 14:36:58+00:00
wordpress_id: 2300

View File

@ -5,7 +5,7 @@ title: Project Purple
image: Teaser-Project-Purple.png
download: project-purple-kremalicious.zip
author: Matthias Kretschmann
featured: true
sticky: true
date: 2012-08-07 13:15:44+00:00
wordpress_id: 2350

View File

@ -46,7 +46,7 @@
// Content
@import 'content.less';
@import 'featured.less';
@import 'sticky.less';
// Alerts
//@import 'alerts.less';

View File

@ -1,8 +1,8 @@
/////////////////////////////////////
// Featured posts styles
// Sticky posts styles
/////////////////////////////////////
.featured {
.sticky {
.divider-bottom;
padding-bottom: @line-height-computed;
@ -11,7 +11,7 @@
}
}
.featured-link {
.sticky-link {
display: block;
margin-bottom: @line-height-computed;
.transition-property(none);
@ -25,14 +25,14 @@
}
}
.featured-title {
.sticky-title {
.h6;
font-size: .8em;
margin: 0;
.visuallyhidden;
}
.featured-image {
.sticky-image {
display: block;
img { margin-bottom: 0; }

View File

@ -5,7 +5,7 @@ description: 'Blog of designer & developer Matthias Kretschmann'
---
{% if paginator.next_page == 2 %}
{% include featured.html %}
{% include sticky.html %}
{% endif %}
<section role="main" id="main" class="row">