about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-11-26 23:24:44 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-11-26 23:24:44 +0700
commit8b52b04c03a34b2fc53c11b8535aaefac0490370 (patch)
tree5d4b389a0e2b7e97823e9672ec3debe5e3f3da45
parent834a6bf463e77c8f41ae323dafd726322ffdaa5c (diff)
downloadsite-8b52b04c03a34b2fc53c11b8535aaefac0490370.tar.gz
Improve auto (and) scaling
-rw-r--r--_css/style.css12
-rw-r--r--blog/butter.md13
2 files changed, 17 insertions, 8 deletions
diff --git a/_css/style.css b/_css/style.css
index 283ac2e..dbd1874 100644
--- a/_css/style.css
+++ b/_css/style.css
@@ -39,7 +39,7 @@ html {
     background-color: var(--text-bg);
     box-sizing: border-box;
     color: var(--text-fg);
-    font-size: min(max(100%, 2vw), 24px);
+    font-size: min(max(100%, 2vw), 150%);
     margin: auto;
     max-width: 36rem;
     scrollbar-color: var(--fade-fg) var(--block-bg);
@@ -117,11 +117,11 @@ body { margin: 0 1rem }
 }
 
 /* Images */
-.franklin-content img { width: 100% }
-.franklin-content .img-small img {
-    width: 50%;
-    text-align: center;
-    padding-left: 20%;
+.franklin-content img {
+    display: block;
+    margin: auto;
+    max-width: 100%;
+    width: auto;
 }
 
 /* KaTeX */
diff --git a/blog/butter.md b/blog/butter.md
index b35e6d6..e15b0c4 100644
--- a/blog/butter.md
+++ b/blog/butter.md
@@ -182,6 +182,7 @@ today=$(date --iso-8601)
 btrfs subvolume snapshot -r /home /home/$today
 sync
 btrfs send /home/$today | btrfs receive /backup/home
+sync
 ```
 
 ### Repetition
@@ -190,6 +191,7 @@ For next backups, I also mounted the drive and created a snapshot:
 
 ```sh
 cryptsetup luksOpen /dev/sdb backup
+mkdir -p /backup
 mount -o noatime,compress-force=zstd:14 /dev/mapper/backup /backup
 today=$(date --iso-8601)
 btrfs subvolume snapshot -r /home /home/$today
@@ -197,12 +199,19 @@ sync
 ```
 
 Say the latest snapshot was on the `$previous` day, I only needed to send
-the difference between the old and new backup.  Afterwards, it is safe
-to delete the local `$previous` snapshot to save some space.
+the difference between the old and new backup.  Afterwards, it is safe to delete the local `$previous` snapshot to save some space.
 
 ```sh
 btrfs send -p /home/$previous /home/$today | btrfs receive /backup/home
 btrfs subvolume delete /home/$previous
+sync
+```
+
+Finally, unmount the drive and close the LUKS volume:
+
+```sh
+umount /backup
+cryptsetup luksClose backup
 ```
 
 Is this more complicated than good ole `rsync`?  Yes.  Is it safer?  Also yes,