mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 09:56:51 +01:00
rename featured to sticky
This commit is contained in:
parent
82e9d7e45b
commit
b43bb5cacb
@ -63,10 +63,10 @@ picture:
|
|||||||
width: "480"
|
width: "480"
|
||||||
source_default:
|
source_default:
|
||||||
width: "320"
|
width: "320"
|
||||||
featured:
|
sticky:
|
||||||
ppi: [1, 1.5, 2]
|
ppi: [1, 1.5, 2]
|
||||||
attr:
|
attr:
|
||||||
class: "featured-image"
|
class: "sticky-image"
|
||||||
itemprop: "image"
|
itemprop: "image"
|
||||||
source_default:
|
source_default:
|
||||||
width: "190"
|
width: "190"
|
@ -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>
|
|
13
_src/_includes/sticky.html
Normal file
13
_src/_includes/sticky.html
Normal 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>
|
@ -5,7 +5,7 @@ title: Badged - iOS Style Notification Badges for WordPress
|
|||||||
image: Badged-Teaser-kremalicious@2x.png
|
image: Badged-Teaser-kremalicious@2x.png
|
||||||
author: Matthias Kretschmann
|
author: Matthias Kretschmann
|
||||||
moddate: 2013-11-10 07:56:46+00:00
|
moddate: 2013-11-10 07:56:46+00:00
|
||||||
featured: true
|
sticky: true
|
||||||
|
|
||||||
date: 2011-12-15 07:56:46+00:00
|
date: 2011-12-15 07:56:46+00:00
|
||||||
wordpress_id: 1468
|
wordpress_id: 1468
|
||||||
|
@ -5,7 +5,7 @@ title: Using <kbd> for fun and profit
|
|||||||
image: kremalicious-kbdfun-teaser.png
|
image: kremalicious-kbdfun-teaser.png
|
||||||
style: poststyle-2300.min.css
|
style: poststyle-2300.min.css
|
||||||
author: Matthias Kretschmann
|
author: Matthias Kretschmann
|
||||||
featured: true
|
sticky: true
|
||||||
|
|
||||||
date: 2012-07-16 14:36:58+00:00
|
date: 2012-07-16 14:36:58+00:00
|
||||||
wordpress_id: 2300
|
wordpress_id: 2300
|
||||||
|
@ -5,7 +5,7 @@ title: Project Purple
|
|||||||
image: Teaser-Project-Purple.png
|
image: Teaser-Project-Purple.png
|
||||||
download: project-purple-kremalicious.zip
|
download: project-purple-kremalicious.zip
|
||||||
author: Matthias Kretschmann
|
author: Matthias Kretschmann
|
||||||
featured: true
|
sticky: true
|
||||||
|
|
||||||
date: 2012-08-07 13:15:44+00:00
|
date: 2012-08-07 13:15:44+00:00
|
||||||
wordpress_id: 2350
|
wordpress_id: 2350
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
// Content
|
// Content
|
||||||
@import 'content.less';
|
@import 'content.less';
|
||||||
@import 'featured.less';
|
@import 'sticky.less';
|
||||||
|
|
||||||
// Alerts
|
// Alerts
|
||||||
//@import 'alerts.less';
|
//@import 'alerts.less';
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/////////////////////////////////////
|
/////////////////////////////////////
|
||||||
// Featured posts styles
|
// Sticky posts styles
|
||||||
/////////////////////////////////////
|
/////////////////////////////////////
|
||||||
|
|
||||||
.featured {
|
.sticky {
|
||||||
.divider-bottom;
|
.divider-bottom;
|
||||||
padding-bottom: @line-height-computed;
|
padding-bottom: @line-height-computed;
|
||||||
|
|
||||||
@ -11,7 +11,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.featured-link {
|
.sticky-link {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: @line-height-computed;
|
margin-bottom: @line-height-computed;
|
||||||
.transition-property(none);
|
.transition-property(none);
|
||||||
@ -25,14 +25,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.featured-title {
|
.sticky-title {
|
||||||
.h6;
|
.h6;
|
||||||
font-size: .8em;
|
font-size: .8em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
.visuallyhidden;
|
.visuallyhidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.featured-image {
|
.sticky-image {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
img { margin-bottom: 0; }
|
img { margin-bottom: 0; }
|
@ -5,7 +5,7 @@ description: 'Blog of designer & developer Matthias Kretschmann'
|
|||||||
---
|
---
|
||||||
|
|
||||||
{% if paginator.next_page == 2 %}
|
{% if paginator.next_page == 2 %}
|
||||||
{% include featured.html %}
|
{% include sticky.html %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<section role="main" id="main" class="row">
|
<section role="main" id="main" class="row">
|
||||||
|
Loading…
Reference in New Issue
Block a user