Bläddra i källkod

Add posts to sidebar

dev
Chris Smith 8 år sedan
förälder
incheckning
2569968040

+ 12
- 0
_layouts/default.html Visa fil

@@ -20,6 +20,18 @@
20 20
           <p>Personal website of Chris Smith</p>
21 21
         </header>
22 22
 
23
+        <section id="posts">
24
+          <h2>Latest posts</h2>
25
+          {% for post in site.posts limit:3 %}
26
+            <article class="mini-post">
27
+              <header>
28
+                <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
29
+              </header>
30
+              <a href="{{ post.url }}" class="image"><img src="{{ post.thumbnail }}" alt="{{ post.title }}"></a>
31
+            </article>
32
+          {% endfor %}
33
+        </section>
34
+
23 35
         <section id="photos">
24 36
           <h2>Recent albums</h2>
25 37
           <article class="mini-post">

+ 1
- 0
_posts/2016-04-10-sense-api.md Visa fil

@@ -2,6 +2,7 @@
2 2
 layout: post
3 3
 title: Reverse engineering the Sense API
4 4
 strapline: Who needs API docs when you can do a MITM attack?
5
+thumbnail: /res/images/sense/sense.thumb.jpg
5 6
 ---
6 7
 
7 8
 <div class="image right">

+ 1
- 0
_posts/2016-05-02-monitoring-power-with-wemo.md Visa fil

@@ -2,6 +2,7 @@
2 2
 layout: post
3 3
 title: Monitoring power draw with WeMo Insight Switches
4 4
 strapline: Fun with SOAP and rrdtool
5
+thumbnail: /res/images/wemo/switch.thumb.jpg
5 6
 ---
6 7
 
7 8
 <div class="image right">

+ 1
- 0
_posts/2016-05-21-docker-automatic-nginx-proxy.md Visa fil

@@ -2,6 +2,7 @@
2 2
 layout: post
3 3
 title: Automatic reverse proxying with Docker and nginx
4 4
 strapline: It's containers all the way down...
5
+thumbnail: /res/images/docker/logo.thumb.png
5 6
 ---
6 7
 
7 8
 <div class="image left">

Binär
res/images/docker/logo.thumb.png Visa fil


Binär
res/images/sense/sense.thumb.jpg Visa fil


Binär
res/images/wemo/switch.thumb.jpg Visa fil


Laddar…
Avbryt
Spara