theme stuff

This commit is contained in:
fzorb 2025-05-16 08:16:58 +03:00
parent 6ebf324481
commit 542b0e862c
9 changed files with 63 additions and 17 deletions

View file

@ -43,6 +43,11 @@ body {
padding: 16px;
}
.container {
max-width: 500px;
margin: 0 auto;
}
.nav {
text-align: center;
}

View file

@ -1,5 +0,0 @@
@font-face {
font-family: mononoki;
src: url("/fonts/mononoki-Regular.ttf");
}

View file

@ -43,6 +43,11 @@ body {
padding: 16px;
}
.container {
max-width: 500px;
margin: 0 auto;
}
.nav {
text-align: center;
}

View file

@ -9,15 +9,15 @@
</head>
<body>
<div class="index-container">
<div class="nav">
<a href="/posts/">Posts</a> - <a href="mailto:fzorb@fzorb.xyz">Email</a> - <a href="/pub.asc">PGP</a>
</div>
{% include "nav.html" %}
<h1>fzorb.xyz</h1>
<p>I'm fzorb. I am a person from Bucharest, Romania. I am passionate about many things: computers, urbanism, music, history and games. I'm not particularily interesting though. I do however write a few times a year on my <a href="/posts">blog</a>, so you could check that out I guess.</p>
<p>I'm fzorb. I am a person from Bucharest, Romania. I am passionate about many things: computers, urbanism, music, history and games. I'm not particularily interesting though. I do however write sometimes on my <a href="/posts">blog</a>, so you could check that out I guess.</p>
<h3>Where to find me:</h3>
<ul>
<li>Telegram: <a href="https://t.me/fzorb">@fzorb</a></li>
<li>Signal: <a href="https://signal.me/#eu/p9Gze3TqviYDBB5fUl7dLplo12rMRAoXJ9X7pvR4NgTNRZ0fxxVMCbxAkbBnvRmJ">@fzorb.27</a></li>
<li>Discord (sadly): @fzorb.xyz</li>
<li>Github: <a href="https://github.com/fzorb">@fzorb</a></li>
<li>Last.fm: <a href="https://last.fm/user/fzorb">@fzorb</a></li>
</ul>
<img src="/pictures/potn.jpg" style="width: 100%;">

3
templates/nav.html Normal file
View file

@ -0,0 +1,3 @@
<div class="nav">
<a href="/">Home</a> - <a href="/posts/">Posts</a> - <a href="mailto:fzorb@fzorb.xyz">Email</a> - <a href="/pub.asc">PGP</a>
</div>

View file

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>{{page.title}} // fzorb.xyz</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="Schizophrenic ramblings">
<link rel="stylesheet" href="/css/main.css">
</head>
<body>
<div class="container">
{% include "nav.html" %}
<h1>{{page.title}}</h1>
<p>Written {{page.day}}.{{page.month}}.{{page.year}}</p>
{{page.content|safe}}
</div>
</body>
</html

View file

@ -1,9 +1,25 @@
{% for year, posts in section.pages | group_by(attribute="year") %}
<h2>{{ year }}</h2>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>{{ section.title }} // fzorb.xyz</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="Schizophrenic ramblings">
<link rel="stylesheet" href="/css/main.css">
</head>
<body>
<div class="container">
{% include "nav.html" %}
<h1>{{ section.title }}</h1>
<ul>
{% for post in section.pages | sort(attribute="date", reverse=true) | reverse %}
<li><a href="{{ post.permalink }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
</body>
</html
<ul>
{% for post in posts %}
<li><a href="{{ post.permalink }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}