Skip to content

Commit 10ac915

Browse files
committed
Add image to xware
1 parent b1674ee commit 10ac915

File tree

5 files changed

+45
-6
lines changed

5 files changed

+45
-6
lines changed

_data/hardware.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
description : "The bbk3 stand for baby keycube, a very compact version of the original with only one switch per face."
33
keywords : 1x1, backlight, IMU, small
44
url : https://github.com/keycube/bbk3
5-
image : "../assets/img/post1.jpg"
5+
image : "../assets/img/hardware/bbk3.jpg"
66

77
- title : k3Plush
88
description : "The k3plush is a cube-shaped plush game controller."
99
keywords : 2x2, fabric, sewing, soft
1010
url : https://github.com/keycube/k3plush
11-
image : "../assets/img/post1.jpg"
11+
image : "../assets/img/hardware/k3plush.jpg"

_layouts/xware.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,20 @@ <h1 class="post-title">{{ page.title | escape }}</h1>
1313
<b>{{ content }}</b>
1414
</div>
1515

16-
<ul class="post-list">
16+
<ul class="xware-list">
1717
{% assign title = page.title | downcase %}
1818
{% for xware in site.data[title] %}
1919
<li>
20-
<span class="post-meta">{{ xware.keywords }}</span>
21-
<br/>{{ xware.description }}
20+
<img class="xware-img" src="{{ xware.image }}" alt="{{ xware.title }}"/>
2221
<h3>
2322
<a class="post-link" href="{{ xware.url }}">
2423
{{ xware.title }}
2524
</a>
2625
</h3>
27-
26+
<span class="post-meta">{{ xware.keywords }}</span>
27+
<p class="xware-meta">
28+
{{ xware.description }}
29+
</p>
2830
</li>
2931
{% endfor %}
3032
</ul>

_sass/minima/_layout.scss

+37
Original file line numberDiff line numberDiff line change
@@ -260,4 +260,41 @@
260260
border-radius: 3px;
261261
margin-bottom: 30px;
262262
text-align: center;
263+
}
264+
265+
/**
266+
* xware
267+
*/
268+
269+
.xware-list {
270+
margin-left: 0;
271+
list-style: none;
272+
273+
> li {
274+
margin-bottom: $spacing-unit*3.5;
275+
276+
@include media-query($on-palm) {
277+
margin-bottom: $spacing-unit*1;
278+
}
279+
}
280+
}
281+
282+
.xware-img {
283+
margin-right: 16px;
284+
border-radius: 8px;
285+
border: 1px solid $grey-color-light;
286+
287+
float: left;
288+
height: 192px;
289+
width: 192px;
290+
291+
@include media-query($on-palm) {
292+
float: none;
293+
width: 100%;
294+
height: auto;
295+
}
296+
}
297+
298+
h3 {
299+
margin-bottom: 0px;
263300
}

assets/img/hardware/bbk3.jpg

62.5 KB
Loading

assets/img/hardware/k3plush.jpg

24.1 KB
Loading

0 commit comments

Comments
 (0)