main-site

Main site for niliara.net
git clone git://niliara.net/main-site
Log | Files | Refs

commit ea6f203b88f74b7120a5bf87b3de05e0646130a6
parent 542a6a61c99c8689939e1f87f296ea632cc4869e
Author: niljimeno <niliara@proton.me>
Date:   Sun, 23 Nov 2025 23:06:27 +0100

update styles and stuff

Diffstat:
Dcontent/blog/04-arch.md | 22----------------------
Mcontent/blog/_index.md | 2+-
Acontent/blog/arch.md | 24++++++++++++++++++++++++
Mlayouts/_default/baseof.html | 2+-
Alayouts/blog/baseof.html | 31+++++++++++++++++++++++++++++++
Alayouts/blog/list.html | 10++++++++++
Alayouts/blog/single.html | 10++++++++++
Mlayouts/index.html | 9++++++---
Astatic/alice.ico | 0
Astatic/blog.css | 117+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mstatic/style.css | 2+-
11 files changed, 201 insertions(+), 28 deletions(-)

diff --git a/content/blog/04-arch.md b/content/blog/04-arch.md @@ -1,22 +0,0 @@ -+++ -title = 'Easily installing Arch' -date = 2025-06-22T23:02:50+02:00 -draft = false -+++ - -Installing Arch Linux is extremely simple with Archinstall, -you really only need to run 3 commands during the installation: - -```sh -pacman -Sy # install core applications -pacman -S archinstall # get the installation script -archinstall -``` - -Archinstall will then prompt available options, -which can be easily followed without searching the net. - -- Without ethernet, you'll need to connect to wifi: [\[wiki\]](https://wiki.archlinux.org/title/Iwd#iwctl) -[\[blog1\]](https://joshtronic.com/2021/11/21/connecting-to-wifi-with-iwd/) -- You'll have to deal with the american keyboard layout until archinstall: -[\[wikipedia\]](https://en.wikipedia.org/wiki/British_and_American_keyboards) diff --git a/content/blog/_index.md b/content/blog/_index.md @@ -1,5 +1,5 @@ +++ -title = 'Blog' +title = "Nil's blog" date = 2024-06-17T13:54:47+02:00 draft = false +++ diff --git a/content/blog/arch.md b/content/blog/arch.md @@ -0,0 +1,24 @@ ++++ +title = 'Easily installing Arch' +date = 2025-06-22T23:02:50+02:00 +draft = false ++++ + +Burn the Arch Linux ISO into a floppy disk, +then boot into it. + +Then run the folling commands: + +```sh +pacman -Sy # install core applications o algo +pacman -S archinstall +archinstall +``` + +Archinstall will then prompt you options. +And that's really all it takes. + +- Without ethernet, you'll need to connect to wifi: [\[wiki\]](https://wiki.archlinux.org/title/Iwd#iwctl) +[\[blog1\]](https://joshtronic.com/2021/11/21/connecting-to-wifi-with-iwd/) +- You'll have to deal with the american keyboard layout until archinstall: +[\[wikipedia\]](https://en.wikipedia.org/wiki/British_and_American_keyboards) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html @@ -4,7 +4,7 @@ <meta charset="UTF-8"> <title>{{ site.Title }}/blog</title> - <meta name="viewport" content="width=device-width,initial-scale=0.8"> + <meta name="viewport" content="width=device-width,initial-scale=0.7"> </head> <body> diff --git a/layouts/blog/baseof.html b/layouts/blog/baseof.html @@ -0,0 +1,31 @@ +<!DOCTYPE HTML> +<html lang="en"> + <head> + <link rel="stylesheet" href="/blog.css"> + <link rel="icon" href="/alice.ico"> + + <meta charset="UTF-8"> + <title>{{ site.Title }}/blog</title> + <meta name="viewport" content="width=device-width,initial-scale=0.7"> + </head> + + <body> + <main> + <nav> + <a href="{{ site.BaseURL }}">&lt;&lt;HOME</a + ><a href="{{ site.BaseURL }}blog">&lt;blog</a + > + </nav> + <h1>{{ .Title}}</h1> + {{- block "main" . }}{{- end }} + </main> + </body> +</html> + + +{{ define "about" }} +{{ end }} + +{{ define "main" }} + {{ .Content }} +{{ end }} diff --git a/layouts/blog/list.html b/layouts/blog/list.html @@ -0,0 +1,10 @@ +{{ define "main" }} +{{ .Content }} +<div class="links"> + <ul> + {{- range .Pages -}} + <li><a class="alt" href="{{ .Permalink }}"><h3 style="display: inline">{{ .Title }}</h3> <span>--{{ .Date | time.Format ":date_short" }}</span></a></li> + {{- end -}} + </ul> +</div> +{{ end }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html @@ -0,0 +1,10 @@ +{{ define "main" }} +<hr> +{{ .Content }} +{{ end }} + +{{ define "about" }} +<p> +{{ .Date | time.Format ":date_long" }} -- <a href="/">Niliaranet</a> +</p> +{{ end }} diff --git a/layouts/index.html b/layouts/index.html @@ -1,9 +1,12 @@ -<html> +<!DOCTYPE HTML> +<html lang="en"> <head> - <meta charset="UTF-8"> <title>{{ site.Title }}</title> - <meta name="viewport" content="width=device-width,initial-scale=0.8"> <link rel="stylesheet" href="/style.css"> + <link rel="icon" href="/alice.ico"> + + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width,initial-scale=0.7"> </head> <body> <main class="index"> diff --git a/static/alice.ico b/static/alice.ico Binary files differ. diff --git a/static/blog.css b/static/blog.css @@ -0,0 +1,117 @@ +:root { + --bg: #fdfbea; + --fg: #622f2c; + --link: #B55D39; + --comment: #888; + --border: #888; +} + +body { + margin: 0; + background-color: var(--bg); + color: var(--fg); + font-family: Hasklig; + line-height: 1.4; + font-size: 1.2em; + padding: 1em; +} + +main { + margin: 0 auto; + padding: 2em 0em; + max-width: 800px; +} + + +h1 { + text-align: center; +} + +a { + color: var(--link); +} + +pre a { + color: inherit; +} + +a:not(:hover) { + text-decoration: none; +} + +a.alt { + display: block; + text-decoration: none; + padding: 0.2em; +} + +a.alt h3 { + font-size: 1em; + color: var(--fg); + font-weight: normal; +} + +a.alt:hover h3 { + color: var(--link); + text-decoration: underline; +} + +a.alt span { + color: var(--comment); +} + +@font-face { + font-family: Hasklig; + src: url(Hasklig-Regular.ttf); +} + +.about { + border: 1px var(--border) solid; + padding: 0em 2em; +} + +pre:not(.nocode) { + margin: 1em 0; + padding: 0.8em; + margin-bottom: 2em; + border: 1px var(--border) solid; + + overflow: scroll; +} + +pre, code { + font-family: Hasklig !important; +} + +div.ascii pre { + width: 5.4em; + margin: 0 auto; +} + +nav { + display: flex; + flex-wrap: wrap; + + gap: 1.2em; +} + +nav.center { + justify-content: center; +} + +div { + margin: 0; +} + +div.links { + border: 1px solid var(--fg); +} + +div.index div { + display: inline-block; + margin-bottom: 1em; +} + +td { + padding-right: 1em; +} diff --git a/static/style.css b/static/style.css @@ -17,7 +17,7 @@ body { font-family: Hasklig; line-height: 1.4; font-size: 1.2em; - padding: 3em; + padding: 1em; } main {