This commit is contained in:
mtgmonkey 2025-06-07 20:44:49 -04:00
parent a181c6d748
commit 5c6df6621c
8 changed files with 68 additions and 2 deletions

View file

@ -0,0 +1,15 @@
+++
title = "init post"
date = 2025-06-07
+++
This is my first daily message, posted in the afternoon rather than the morning. In the future, all fo these will be posted when I wake up.
Let's do some about me.
I use nixos with limine, ly, xmonad, qutebrowser, and nvf on the day-to-day. I program in haskell, elm, nix, and rust. Functional programming for the win! My vps is also nixos, and it's so convenient to share my home-manager config between the two!
### Links
All sites are built %100 declatatively with Nix.
- [My rgit server](https://git.mtgmonkey.net), which hosts all my repos, including that for this site and for my pet site.
- [My blog](https://blog.mtgmonkey.net), which you are reading now.
- [My pet site](https://mtgmonkey.net), Elmskell, which has a Haskell Scotty backend with an Elm frontend.

6
content/daily/_index.md Normal file
View file

@ -0,0 +1,6 @@
+++
title = "Daily Posts"
sort_by = "date"
template = "blog.html"
page_template = "blog_page.html"
+++

View file

@ -4,7 +4,9 @@
}; };
outputs = {nixpkgs, ...}: let outputs = {nixpkgs, ...}: let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs {
inherit system;
};
in { in {
packages.${system} = { packages.${system} = {
default = pkgs.callPackage ./package.nix {}; default = pkgs.callPackage ./package.nix {};

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation {
zola zola
]; ];
configurePhase = '' configurePhase = ''
zola check # zola check
''; '';
buildPhase = '' buildPhase = ''
zola build zola build

14
templates/base.html Normal file
View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Andromeda's blog</title>
</head>
<body>
<section class="section">
<div class="container">
{% block content %} {% endblock content %}
</div>
</section>
</body>
</html>

12
templates/blog.html Normal file
View file

@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
{{ section.title }}
</h1>
<ul>
{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}

9
templates/blog_page.html Normal file
View file

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
{{ page.title }}
</h1>
<p class="subtitle"><strong>{{ page.date }}</strong></p>
{{ page.content | safe }}
{% endblock content %}

8
templates/index.html Normal file
View file

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
This is Andromeda's blog.
</h1>
<p><a href="{{ get_url(path='@/daily/_index.md') }}">Daily Posts</a></p>
{% endblock content %}