mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-06-07 21:09:50 -07:00
Compare commits
12 Commits
2bac7dadb5
...
main
Author | SHA1 | Date | |
---|---|---|---|
e5d6bc0298 | |||
607c6d605d | |||
55733a27e9 | |||
a74c54d63c | |||
3cabd6bb40 | |||
c2e8ab4bbc | |||
c508e20157 | |||
e6015b56c2 | |||
f0e9060901 | |||
d4fc5ce5ba | |||
a543d7b52f | |||
e60781069e |
5
404.html
5
404.html
@ -1,8 +1,8 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
<title>404 Not Found</title>
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--foreground: #ffffff;
|
--foreground: #ffffff;
|
||||||
@ -50,5 +50,4 @@
|
|||||||
<h1>404</h1>
|
<h1>404</h1>
|
||||||
<h3>Page Not Found</h3>
|
<h3>Page Not Found</h3>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(set _G.port 50625)
|
(set _G.port 16384)
|
||||||
(set _G.use-http false)
|
(set _G.use-http false)
|
||||||
|
|
||||||
(local usage (: "Usage: %s [-h] [-p] [--use-http]
|
(local usage (: "Usage: %s [options]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h, --help Show this help message and exit
|
-h, --help Show this help message and exit
|
||||||
|
13
bunbun.dev.service
Normal file
13
bunbun.dev.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/home/bunbun/bunbun.dev/start-server -l
|
||||||
|
WorkingDirectory=/home/bunbun/bunbun.dev
|
||||||
|
Restart=on-failure
|
||||||
|
User=bunbun
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
26
flake.nix
26
flake.nix
@ -1,30 +1,32 @@
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... } @ inputs:
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
let
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in
|
in with pkgs; {
|
||||||
{
|
devShells.default = mkShell {
|
||||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(pkgs.lua5_1.withPackages (ps: with ps; [
|
(lua5_3.withPackages (ps:
|
||||||
({ fetchFromGitHub, fetchurl }:
|
with ps; [
|
||||||
ps.buildLuarocksPackage {
|
(buildLuarocksPackage {
|
||||||
pname = "cmark";
|
pname = "cmark";
|
||||||
version = "0.30.2-1";
|
version = "0.30.2-1";
|
||||||
knownRockspec = (fetchurl {
|
knownRockspec = (fetchurl {
|
||||||
url = "mirror://luarocks/cmark-0.30.2-1.rockspec";
|
url = "mirror://luarocks/cmark-0.30.2-1.rockspec";
|
||||||
sha256 = "077kvl9xa9yj0fxyyxxw43k9v9dgd5f11ax8hhxj3nx8vfs5rps8";
|
sha256 =
|
||||||
|
"077kvl9xa9yj0fxyyxxw43k9v9dgd5f11ax8hhxj3nx8vfs5rps8";
|
||||||
}).outPath;
|
}).outPath;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jgm";
|
owner = "jgm";
|
||||||
repo = "cmark-lua";
|
repo = "cmark-lua";
|
||||||
rev = "0.30.2";
|
rev = "0.30.2";
|
||||||
hash = "sha256-6Bzq0FdyqXXiL6pLDRFbULFJpowF0P6CvAw8iqFXkkQ=";
|
hash =
|
||||||
|
"sha256-6Bzq0FdyqXXiL6pLDRFbULFJpowF0P6CvAw8iqFXkkQ=";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
luafilesystem
|
luafilesystem
|
||||||
@ -34,5 +36,5 @@
|
|||||||
]))
|
]))
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
9
pages/about.md
Normal file
9
pages/about.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
### About Me
|
||||||
|
|
||||||
|
Hello, I'm Winter. If you're here you probably already know about me, if you don't here's a bit of info...
|
||||||
|
|
||||||
|
As I said previously my name is Winter, also known by my pseudonyms, Bunbun, and Brainless Bitch. I use she/her pronouns. I'm a self taught programmer with a passion for [Linux](https://en.wikipedia.org/wiki/Linux), programming, and general audio shenanigans. I work with [C](<https://en.wikipedia.org/wiki/C_(programming_language)>), [Lua](<https://en.wikipedia.org/wiki/Lua_(programming_language)>) and a variety of [Lisp](<https://en.wikipedia.org/wiki/Lisp_(programming_language)>) dialects.
|
||||||
|
|
||||||
|
### About the Website
|
||||||
|
|
||||||
|
This website is written in [Fennel](https://fennel-lang.org/) a Lisp dialect that compiles into Lua, [Markdown](https://en.wikipedia.org/wiki/Markdown), and a bit of [HTML](https://en.wikipedia.org/wiki/HTML) and [CSS](https://en.wikipedia.org/wiki/CSS).
|
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
command="./main.fnl"
|
command="./main.fnl"
|
||||||
kill_command="pkill -f 'main\.fnl'"
|
kill_command="pkill -f 'main\.fnl'"
|
||||||
|
|
||||||
log_file="log"
|
log_file="log"
|
||||||
|
|
||||||
usage="Usage: start-server [-h] [--localhost] [-l] [--log-file] [-k]
|
usage="Usage: start-server [options]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h, --help Show this help message and exit
|
-h, --help Show this help message and exit
|
||||||
@ -34,4 +34,4 @@ for (( i=1; i<=$#; i++ )); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
$kill_command
|
$kill_command
|
||||||
eval "${command} & disown"
|
eval "${command}"
|
||||||
|
20
style.css
20
style.css
@ -53,15 +53,17 @@ body {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
padding: 1em;
|
padding: 2em;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
font-family: var(--sans-serif-font);
|
font-family: var(--sans-serif-font);
|
||||||
}
|
}
|
||||||
|
|
||||||
body>header {
|
body>header {
|
||||||
|
display: flex;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
justify-content: space-between;
|
||||||
margin-top: -1em;
|
margin-top: -1em;
|
||||||
border-bottom: 0.1em solid var(--accent-50);
|
border-bottom: 0.1em solid var(--accent-50);
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
@ -93,9 +95,23 @@ body>header>a {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body>header>nav {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
body>header>nav>a {
|
||||||
|
color: var(--foreground);
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
body>.content {
|
body>.content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 0.5em;
|
padding: 1em;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,22 +1,27 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width" />
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
|
<title>bunbun.dev</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
<a href="https://bunbun.dev">bunbun.dev</a>
|
<a href="https://bunbun.dev">bunbun.dev</a>
|
||||||
|
<nav>
|
||||||
|
<a href="https://bunbun.dev/about">About</a>
|
||||||
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<main>%s</main>
|
<main>%s</main>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
© 2024 Winter Hille —
|
© 2024 Winter Hille —
|
||||||
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en">BY-NC-SA 4.0</a>
|
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en"
|
||||||
|
>BY-NC-SA 4.0</a
|
||||||
|
>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user