My personal blog hauleth.dev
blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ft: upgrade Zola, remove viewport specs, and add hyphenation

+47 -16
+1 -1
content/post/who-watches-watchmen-i.md
··· 442 442 443 443 Next thing is that we can do, is to [disable crash dumps generated by BEAM][crash]. 444 444 While not strictly needed in this case, it is worth remembering, that it isn't 445 - hard to achieve, it is just using `Environment=ERL_CRASH_DUMP_SECONDS=0`. 445 + hard to achieve, just use `Environment=ERL_CRASH_DUMP_SECONDS=0`. 446 446 447 447 Our new, more secure, `hello.service` will look like: 448 448
+3 -3
content/post/who-watches-watchmen-ii.md
··· 185 185 Requires=sockets.target 186 186 187 187 [Socket] 188 - # We declare the name of the file descriptor here to simplify extraction in 189 - # the application afterwards. By default it will be the socket name (so 190 - # `hello-http` in our case), but `http` is much cleaner. 188 + # We declare the name of the file descriptor here to simplify extraction 189 + # in the application afterwards. By default it will be the socket name 190 + # (so `hello-http` in our case), but `http` is much cleaner. 191 191 FileDescriptorName=http 192 192 ListenStream=80 193 193 Service=hello.service
+6 -7
flake.lock
··· 5 5 "systems": "systems" 6 6 }, 7 7 "locked": { 8 - "lastModified": 1710146030, 9 - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", 8 + "lastModified": 1731533236, 9 + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 10 10 "owner": "numtide", 11 11 "repo": "flake-utils", 12 - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", 12 + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 13 13 "type": "github" 14 14 }, 15 15 "original": { ··· 20 20 }, 21 21 "nixpkgs": { 22 22 "locked": { 23 - "lastModified": 1725194671, 24 - "narHash": "sha256-tLGCFEFTB5TaOKkpfw3iYT9dnk4awTP/q4w+ROpMfuw=", 25 - "path": "/nix/store/9qq0zf30wi74pz66rr05zmxq0nv17q1p-source", 26 - "rev": "b833ff01a0d694b910daca6e2ff4a3f26dee478c", 23 + "lastModified": 0, 24 + "narHash": "sha256-FurMxmjEEqEMld11eX2vgfAx0Rz0JhoFm8UgxbfCZa8=", 25 + "path": "/nix/store/jkbly0r78qgqgsi7znsxc8mbh8ydfq4n-source", 27 26 "type": "path" 28 27 }, 29 28 "original": {
+1 -1
flake.nix
··· 34 34 inputsFrom = [ blog ]; 35 35 36 36 packages = [ 37 - pkgs.netlify-cli 37 + # pkgs.netlify-cli 38 38 pkgs.vale 39 39 pkgs.mdl 40 40 ];
+1 -1
netlify.toml
··· 3 3 publish = "public/" 4 4 5 5 [build.environment] 6 - ZOLA_VERSION = "0.19.2" 6 + ZOLA_VERSION = "0.20.0" 7 7 8 8 [context.deploy-preview] 9 9 command = "zola build --drafts --base-url $DEPLOY_PRIME_URL"
+3 -1
sass/_main.scss
··· 1 1 @import "variables"; 2 2 3 3 :root { 4 - font-size: calc(1rem + 0.1vw); 4 + font-size: calc(1rem + 0.05vw); 5 5 line-height: 1.54; 6 6 color: var(--color); 7 7 ··· 105 105 padding: 1px 6px; 106 106 margin: 0 2px; 107 107 font-size: .95rem; 108 + hyphens: none; 108 109 } 109 110 110 111 pre { ··· 257 258 258 259 // Todo change it to ::marker when Safari will support it 259 260 &::before { 261 + margin-left: -2rem; 260 262 content: counters(li, ".") ". "; 261 263 } 262 264 }
+5 -2
sass/_post.scss
··· 2 2 3 3 .post { 4 4 width: 100%; 5 - text-align: left; 5 + text-align: justify; 6 + text-wrap: pretty; 7 + hyphens: auto; 8 + hyphenate-limit-chars: 10; 6 9 margin: 20px auto; 7 10 padding: 20px 0 0 0; 11 + 8 12 9 13 @media (max-width: $tablet-max-width) { 10 14 margin: 0 auto; ··· 62 66 63 67 &-content { 64 68 margin-top: 30px; 65 - position: relative; 66 69 } 67 70 68 71 &-cover {
+27
templates/index.html
··· 68 68 </nav> 69 69 </header> 70 70 {% endblock header %} 71 + 72 + {% block general_meta %} 73 + <meta http-equiv="content-type" content="text/html; charset=utf-8"> 74 + {%- if page.title -%} 75 + <meta name="description" content="{{ config.description }} {{ page.title }} {{ page.description }}"/> 76 + {%- else -%} 77 + <meta name="description" content="{{ config.description }}"/> 78 + {%- endif -%} 79 + 80 + {%- if page.taxonomies.tags or page.taxonomies.categories -%} 81 + <meta name="keywords" content=" 82 + {%- if page.taxonomies.categories -%} 83 + {%- for cat in page.taxonomies.categories -%} 84 + {{ cat }}, {% endfor -%} 85 + {%- endif -%} 86 + 87 + {%- if page.taxonomies.tags -%} 88 + {%- for tag in page.taxonomies.tags -%} 89 + {%- if loop.last -%} 90 + {{ tag }} 91 + {%- else -%} 92 + {{ tag }}, {% endif -%} 93 + {%- endfor -%} 94 + {%- endif -%} 95 + " /> 96 + {%- endif -%} 97 + {% endblock general_meta %}