From 115ae9cd66f393af490f25c154e63e55bd28bc9d Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 30 Mar 2024 10:31:56 +0000 Subject: [PATCH] backup: 2024-03-30 10:31 --- blog/hoaxes-overview.typ | 20 ++++---------------- blog/home_server_security.typ | 20 ++++---------------- blog/nfc-misconceptions.typ | 20 ++++---------------- blog/selfhost-search-engine.typ | 20 ++++---------------- blog/selfhost-tailscale.typ | 21 ++++----------------- blog/server-hardware-selection.typ | 20 ++++---------------- blog/setting-up-zola-nixos.typ | 20 ++++---------------- blog/template.typ | 23 +++++++++++++++++++++++ 8 files changed, 51 insertions(+), 113 deletions(-) create mode 100644 blog/template.typ diff --git a/blog/hoaxes-overview.typ b/blog/hoaxes-overview.typ index 179b063..66275d1 100644 --- a/blog/hoaxes-overview.typ +++ b/blog/hoaxes-overview.typ @@ -1,20 +1,8 @@ -#show link: underline -#set text( - font: "ETBembo", - size: 10pt) -#set page( - paper: "a4", - margin: 1cm, +#import "template.typ": conf +#show: doc => conf( + title: [ An overview on hoaxes ], + doc, ) -#set par( - justify: true, - leading: 0.52em, -) - -#align(left, text(20pt)[ - *An overview on hoaxes* -]) -#line(length: 70%) = Introduction In recent times, hoaxes have become increasingly prevalent as the diff --git a/blog/home_server_security.typ b/blog/home_server_security.typ index ae698ef..8ac0fc4 100644 --- a/blog/home_server_security.typ +++ b/blog/home_server_security.typ @@ -1,20 +1,8 @@ -#show link: underline -#set text( - font: "ETBembo", - size: 10pt) -#set page( - paper: "a4", - margin: 1cm, +#import "template.typ": conf +#show: doc => conf( + title: [ Home server security ], + doc, ) -#set par( - justify: true, - leading: 0.52em, -) - -#align(left, text(20pt)[ - *Home Server Security* -]) -#line(length: 70%) = Introduction Home server security is pretty often overlooked from what I can tell. Any device accessible from the internet has _some_ degree of vulnerability in the current era of the internet. I aim for this document to detail methods to amend the contemporary cybersecurity challenges faced by most homelabbers. diff --git a/blog/nfc-misconceptions.typ b/blog/nfc-misconceptions.typ index 5f922fc..af09cd6 100644 --- a/blog/nfc-misconceptions.typ +++ b/blog/nfc-misconceptions.typ @@ -1,20 +1,8 @@ -#show link: underline -#set text( - font: "ETBembo", - size: 10pt) -#set page( - paper: "a4", - margin: 1cm, +#import "template.typ": conf +#show: doc => conf( + title: [ Misconceptions about NFC ], + doc, ) -#set par( - justify: true, - leading: 0.52em, -) - -#align(left, text(20pt)[ - *Misconceptions about NFC* -]) -#line(length: 70%) #align(left, text(10pt)[*I made a mistake while writing this blog post - somehow forgetting that security isn’t unambiguous. You can diff --git a/blog/selfhost-search-engine.typ b/blog/selfhost-search-engine.typ index bf0a940..64ca278 100644 --- a/blog/selfhost-search-engine.typ +++ b/blog/selfhost-search-engine.typ @@ -1,20 +1,8 @@ -#show link: underline -#set text( - font: "ETBembo", - size: 10pt) -#set page( - paper: "a4", - margin: 1cm, +#import "template.typ": conf +#show: doc => conf( + title: [ Host your own private search engine with SearXNG ], + doc, ) -#set par( - justify: true, - leading: 0.52em, -) - -#align(left, text(20pt)[ - *An overview on hoaxes* -]) -#line(length: 70%) = Introduction #link("https://docs.searxng.org/")[SearXNG];, put in its own words, is a diff --git a/blog/selfhost-tailscale.typ b/blog/selfhost-tailscale.typ index aea56c1..0bb3a26 100644 --- a/blog/selfhost-tailscale.typ +++ b/blog/selfhost-tailscale.typ @@ -1,21 +1,8 @@ -#set quote(block: true) -#show link: underline -#set text( - font: "ETBembo", - size: 10pt) -#set page( - paper: "a4", - margin: (x: 1cm, y: 1cm), +#import "template.typ": conf +#show: doc => conf( + title: [ Host your own private search engine with SearXNG ], + doc, ) -#set par( - justify: true, - leading: 0.52em, -) - -#align(center, text(20pt)[ - *Take control of tailscale with headscale* -]) -#line(length: 70%) = Tailscale #link("https://tailscale.com/")[Tailscale] is a modern tunnel VPN diff --git a/blog/server-hardware-selection.typ b/blog/server-hardware-selection.typ index 8ad7083..3888cbb 100644 --- a/blog/server-hardware-selection.typ +++ b/blog/server-hardware-selection.typ @@ -1,20 +1,8 @@ -#show link: underline -#set text( - font: "ETBembo", - size: 10pt) -#set page( - paper: "a4", - margin: 1cm, +#import "template.typ": conf +#show: doc => conf( + title: [ Selecting hardware for a (home) server ], + doc, ) -#set par( - justify: true, - leading: 0.52em, -) - -#align(center, text(20pt)[ - *Selecting hardware for a (home) server* -]) -#line(length: 70%) = Introduction I see a lot of people worryingly mistaken about what a server needs diff --git a/blog/setting-up-zola-nixos.typ b/blog/setting-up-zola-nixos.typ index f557b32..c2ca989 100644 --- a/blog/setting-up-zola-nixos.typ +++ b/blog/setting-up-zola-nixos.typ @@ -1,20 +1,8 @@ -#show link: underline -#set text( - font: "ETBembo", - size: 10pt) -#set page( - paper: "a4", - margin: 1cm, +#import "template.typ": conf +#show: doc => conf( + title: [ Setting up Zola on NixOS ], + doc, ) -#set par( - justify: true, - leading: 0.52em, -) - -#align(center, text(20pt)[ - *Setting up Zola on NixOS* -]) -#line(length: 70%) = Introduction #link("https://getzola.org")[Zola] is a static site generator diff --git a/blog/template.typ b/blog/template.typ new file mode 100644 index 0000000..abf0e4e --- /dev/null +++ b/blog/template.typ @@ -0,0 +1,23 @@ +#let conf(title: none, doc) = { + show link: underline + show raw: set text(font: "Iosevka Comfy") + set text( + font: "EtBembo", + size: 10pt + ) + set page( + paper: "a4", + margin: 1cm, + ) + set par( + justify: true, + leading: 0.52em, + ) + align(left, text(font: "EtBembo", size: 24pt, weight: 900)[ + #title + ]) + line(length: 70%) + + set align(left) + doc +}