Browse Source

Standardise on <figure>

master
Chris Smith 4 years ago
parent
commit
d564c38c23
Signed by: Chris Smith <chris@chameth.com> GPG Key ID: 3A2D4BBDC4A3C9A9

+ 1
- 0
.gitignore View File

@@ -1,4 +1,5 @@
1 1
 .DS_Store
2
+.idea
2 3
 
3 4
 # When running outside of docker, Hugo writes content here
4 5
 /site/public

+ 4
- 3
site/content/post/2016-04-10-sense-api.md View File

@@ -10,9 +10,10 @@ description: How to retrieve data from a Hello Sense without using the official
10 10
 area: REST APIs
11 11
 ---
12 12
 
13
-<div class="image right">
14
- <img src="/res/images/sense/sense.jpg" alt="Sense">
15
-</div>
13
+<figure class="right">
14
+  <img src="/res/images/sense/sense.jpg" alt="Sense">
15
+  <figcaption>A Sense unit and its two pillow sensors</figcaption>
16
+</figure>
16 17
 
17 18
 Sense is a little device that sits by your bedside and, in
18 19
 conjunction with a little 'pill' attached to your pillow, monitors your sleeping patterns and

+ 4
- 3
site/content/post/2016-05-02-monitoring-power-with-wemo.md View File

@@ -10,9 +10,10 @@ description: Using SOAP requests to get raw data, and rrdtool to produce graphs.
10 10
 area: data analysis
11 11
 ---
12 12
 
13
-<div class="image right">
14
- <img src="/res/images/wemo/switch.jpg" alt="WeMo Insight Switch">
15
-</div>
13
+<figure class="left">
14
+  <img src="/res/images/wemo/switch.jpg" alt="WeMo Insight Switch">
15
+  <figcaption>A WeMo Insight Switch</figcaption>
16
+</figure>
16 17
 
17 18
 I recently picked up a couple of <a href="http://www.belkin.com/uk/p/P-F7C029/">Belkin's WeMo
18 19
 Insight Switches</a> to monitor power usage for my PC and networking equipment. WeMo is Belkin's

+ 4
- 3
site/content/post/2016-05-21-docker-automatic-nginx-proxy.md View File

@@ -10,9 +10,10 @@ description: Automatically retrieve certificates from Let's Encrypt and configur
10 10
 area: Docker
11 11
 ---
12 12
 
13
-<div class="image left">
14
- <img src="/res/images/docker/logo.png" alt="Docker logo">
15
-</div>
13
+<figure class="right">
14
+  <img src="/res/images/docker/logo.png" alt="Docker logo">
15
+  <figcaption>The Docker project logo</figcaption>
16
+</figure>
16 17
 
17 18
 Over the past few weeks I've gradually been migrating services from running in LXC containers to
18 19
 Docker containers. It takes a while to get into the right mindset for Docker - thinking of

+ 4
- 3
site/content/post/2016-06-17-why-you-should-be-using-https.md View File

@@ -9,9 +9,10 @@ description: There's no good reason for sites to avoid HTTPS any more, and lots
9 9
 area: security
10 10
 ---
11 11
 
12
-<div class="image right">
13
- <img src="/res/images/https/https-everywhere.jpg" alt="EFF HTTPS Everywhere logo">
14
-</div>
12
+<figure class="left">
13
+  <img src="/res/images/https/https-everywhere.jpg" alt="EFF HTTPS Everywhere logo">
14
+  <figcaption>The EFF's HTTPS Everywhere logo</figcaption>
15
+</figure>
15 16
 
16 17
 One of my favourite hobbyhorses recently has been the use of HTTPS, or lack thereof. HTTPS is the
17 18
 thing that makes the little padlock appear in your browser, and has existed for over 20 years.

+ 4
- 3
site/content/post/2016-08-11-offline-gnupg-master-yubikey-subkeys.md View File

@@ -9,9 +9,10 @@ description: How to use an aircapped computer, a large dose of paranoia, an iron
9 9
 area: security
10 10
 ---
11 11
 
12
-<div class="image left">
13
- <img src="/res/images/yubikey/keys.png" alt="Two yubikeys">
14
-</div>
12
+<figure class="right">
13
+  <img src="/res/images/yubikey/keys.png" alt="Two yubikeys">
14
+  <figcaption>A (key-)pair of Yubikeys. (Sorry.)</figcaption>
15
+</figure>
15 16
 
16 17
 I recently noticed that I'd accidentally lost my previous GPG private key &mdash; whoops. It was on
17 18
 a drive that I'd since formatted and used for a fair amount of time, so there's no hope of

+ 5
- 3
site/content/post/2016-10-18-shoring-up-sshd.md View File

@@ -8,9 +8,11 @@ image: /res/images/ssh/openssh.png
8 8
 description: Tools and suggestions for improving the security of SSHd by disabling weak algorithms and modern config tweaks.
9 9
 area: security
10 10
 ---
11
-<div class="image right">
12
- <img src="/res/images/ssh/openssh.png" alt="OpenSSH logo">
13
-</div>
11
+
12
+<figure class="left">
13
+  <img src="/res/images/ssh/openssh.png" alt="OpenSSH logo">
14
+  <figcaption>The OpenSSH project logo</figcaption>
15
+</figure>
14 16
 
15 17
 I recently came across a useful tool on GitHub called
16 18
 [ssh-audit](https://github.com/arthepsy/ssh-audit). It's a small Python script

+ 5
- 4
site/content/post/2017-12-17-dns-over-tls-on-edgerouter-lite.md View File

@@ -7,9 +7,10 @@ description: Installing and configuring Unbound on an Edgerouter Lite to enable
7 7
 area: security
8 8
 ---
9 9
 
10
-<div class="image left">
11
- <img src="/res/images/erl/edgerouter.jpg" alt="EdgeRouter Lite">
12
-</div>
10
+<figure class="left">
11
+  <img src="/res/images/erl/edgerouter.jpg" alt="An EdgeRouter Lite">
12
+  <figcaption>The EdgeRouter Lite</figcaption>
13
+</figure>
13 14
 
14 15
 DNS-over-TLS is a fairly recent specificiation described in
15 16
 [RFC7858](https://tools.ietf.org/html/rfc7858), which enables DNS clients to
@@ -167,4 +168,4 @@ inspect packets on the WAN interface directed at port 53:
167 168
 sudo tcpdump -Xi eth0 port 53
168 169
 {{< / highlight >}}
169 170
 
170
-You should, hopefully, not see anything.
171
+You should, hopefully, not see anything.

+ 7
- 2
site/content/post/2019-04-01-understanding-docker-volume-mounts.md View File

@@ -7,14 +7,17 @@ description: It's basically magic.
7 7
 area: Docker
8 8
 ---
9 9
 
10
+<figure class="left">
11
+  <img src="/res/images/docker/logo.png" alt="Docker logo">
12
+  <figcaption>The Docker project logo</figcaption>
13
+</figure>
14
+
10 15
 One thing that always confuses me with Docker is how exactly mounting
11 16
 volumes behaves. At a basic level it's fairly straight forward: you
12 17
 declare a volume in a Dockerfile, and then either explicitly mount
13 18
 something there or docker automatically creates an anonymous volume
14 19
 for you. Done. But it turns out there's quite a few edge cases...
15 20
 
16
-<!--more-->
17
-
18 21
 ### Changing ownership of the folder
19 22
 
20 23
 Perhaps the most common operation done on a Docker volume other than
@@ -22,6 +25,8 @@ simply mounting it is trying to change the ownership of the directory.
22 25
 If your Docker process runs as a certain user you probably want the
23 26
 directory to be writable by that user.
24 27
 
28
+<!--more-->
29
+
25 30
 At first we might try something like:
26 31
 
27 32
 {{< highlight docker >}}

Loading…
Cancel
Save