Update
This commit is contained in:
parent
584c07ff23
commit
53e144d9a7
24 changed files with 1236 additions and 254 deletions
|
@ -7,7 +7,7 @@
|
|||
<title>{% block title %}{% endblock %} | dergrimm's blog</title>
|
||||
|
||||
<link rel="preconnect" href="https://fonts.bunny.net" />
|
||||
<link href="https://fonts.bunny.net/css?family=jetbrains-mono:400" rel="stylesheet" />
|
||||
<link href="https://fonts.bunny.net/css?family=jetbrains-mono:400,400i,700,700i" rel="stylesheet" />
|
||||
|
||||
<link rel="stylesheet" href="/static/css/styles.css" />
|
||||
|
||||
|
@ -15,19 +15,39 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<nav id="navbar" class="double-border">
|
||||
<div id="navbar-brand"><a href="/">dergrimm's blog</a></div>
|
||||
<div id="navbar-links">
|
||||
<ul>
|
||||
<li><a href="/posts">posts</a></li>
|
||||
<li><a href="/about">about</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<header class="double-border section-margin section-light-padding">
|
||||
<nav id="navbar">
|
||||
<div id="navbar-brand" class="navbar-link"><a href="/">dergrimm's blog</a></div>
|
||||
<div id="navbar-links">
|
||||
<ul>
|
||||
<li><a href="/posts">posts</a></li>
|
||||
<li><a href="/about">about</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<div id="content" class="double-border">
|
||||
{% block content %}{% endblock %}
|
||||
<div id="main-wrapper" class="section-margin">
|
||||
<nav class="breadcrumb">
|
||||
<ul>
|
||||
<li><a href="/">/</a></li>
|
||||
{% block breadcrumb %}{% endblock %}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<hr />
|
||||
|
||||
<main>
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<footer id="footer" class="double-border section-margin section-light-padding">
|
||||
(C) 2023 Dominic Grimm
|
||||
<<a href='mailto:%64o%6Dinic@%64ergr%69mm%2Enet'>dominic@dergrimm.net</a>>
|
||||
| <a href="https://git.dergrimm.net/dergrimm/blog">repo</a>
|
||||
| <a href="/">dergrimm.net</a>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ post.name }}{% endblock %}
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="blog">
|
||||
{{ post.content|cmark|safe }}
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,14 +1,19 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ status_code }}{% endblock %}
|
||||
{% block title %}{{ status_code|lower }}{% endblock %}
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
{% block breadcrumb %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ status_code }}!</h1>
|
||||
{% match message %}
|
||||
{% when Some with (x) %}
|
||||
<p>{{ x }}</p>
|
||||
{% when None %}
|
||||
{% endmatch %}
|
||||
<div id="status-code">
|
||||
<p><b>{{ status_code }}!</b></p>
|
||||
{% match message %}
|
||||
{% when Some with (x) %}
|
||||
<p id="status-code-message"><i>{{ x }}</i></p>
|
||||
{% when None %}
|
||||
{% endmatch %}
|
||||
<p>:(</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
17
backend/templates/web/about.html
Normal file
17
backend/templates/web/about.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}index{% endblock %}
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
{% block breadcrumb %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p><i>...fearlessly conquering the world of backend</i></p>
|
||||
<h1>About</h1>
|
||||
<p>Hey, I'm Dominic (aka. dergrimm) and am currently a student going to school in Germany.</p>
|
||||
<p>
|
||||
You can contact me at:
|
||||
<a href='mailto:%64o%6Dinic@%64ergr%69mm%2Enet'>dominic@dergrimm.net</a>
|
||||
</p>
|
||||
{% endblock %}
|
14
backend/templates/web/index.html
Normal file
14
backend/templates/web/index.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}index{% endblock %}
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
{% block breadcrumb %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>This is my site</h1>
|
||||
<p>Hey, I'm Dominic (aka. dergrimm) and this is my blog!</p>
|
||||
<p>I mostly plan to talk about modern tech and server side stuff like Rust, Crystal, C, databases and APIs.</p>
|
||||
<p>Keep posted by following my feed.</p>
|
||||
{% endblock %}
|
24
backend/templates/web/posts/index.html
Normal file
24
backend/templates/web/posts/index.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}posts{% endblock %}
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<li><a href="/posts">posts</a></li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<ul id="post-index" class="dashed">
|
||||
{% for post in posts %}
|
||||
<li>
|
||||
<span>
|
||||
<a href="/posts/{{ post.slug }}">{{ post.name }}</a>
|
||||
(<i>{{ post.published_at }}{% match post.edited_at %}{% when Some with (x) %} -> {{ x }}{% when None %}{% endmatch %}</i>)
|
||||
</span>
|
||||
<br />
|
||||
<span>{{ post.description }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
16
backend/templates/web/posts/{slug}.html
Normal file
16
backend/templates/web/posts/{slug}.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ name }}{% endblock %}
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<li><a href="/posts">posts</a></li>
|
||||
<li><a href="/posts/{{ slug }}">{{ slug }}</a></li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="wysiwyg">
|
||||
{{content|safe }}
|
||||
</article>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue