rework
This commit is contained in:
parent
a181c6d748
commit
5c6df6621c
8 changed files with 68 additions and 2 deletions
15
content/daily/2025-06-07.md
Normal file
15
content/daily/2025-06-07.md
Normal 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
6
content/daily/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "Daily Posts"
|
||||
sort_by = "date"
|
||||
template = "blog.html"
|
||||
page_template = "blog_page.html"
|
||||
+++
|
|
@ -4,7 +4,9 @@
|
|||
};
|
||||
outputs = {nixpkgs, ...}: let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in {
|
||||
packages.${system} = {
|
||||
default = pkgs.callPackage ./package.nix {};
|
||||
|
|
|
@ -12,7 +12,7 @@ stdenv.mkDerivation {
|
|||
zola
|
||||
];
|
||||
configurePhase = ''
|
||||
zola check
|
||||
# zola check
|
||||
'';
|
||||
buildPhase = ''
|
||||
zola build
|
||||
|
|
14
templates/base.html
Normal file
14
templates/base.html
Normal 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
12
templates/blog.html
Normal 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
9
templates/blog_page.html
Normal 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
8
templates/index.html
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue