feat: better rss button, added 404

This commit is contained in:
zaaarf 2023-12-26 00:31:59 +01:00
parent 161589fd3e
commit e7a6b86ee5
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B
7 changed files with 52 additions and 17 deletions

3
.gitmodules vendored
View file

@ -1,6 +1,3 @@
[submodule "anemone"]
path = anemone
url = https://github.com/Speyll/anemone
[submodule "themes/anemone"]
path = themes/anemone
url = https://github.com/Speyll/anemone

26
sass/_404.scss Normal file
View file

@ -0,0 +1,26 @@
div.error404 {
margin: 25% auto;
h1 {
margin: 0;
font-size: 4rem;
color: var(--fgColor);
background-color: var(--bgColor);
}
h2 {
margin: 0;
color: var(--fgColor);
text-align: center;
&::before {
content: none;
}
}
}
@media (max-width: 650px) {
div.error404 {
margin: 0;
}
}

View file

@ -12,14 +12,14 @@
}
div.themeButton {
float: right;
padding: 0 0 0 1em;
float: right;
padding: 0 0 0 1em;
button {
cursor: pointer;
border: none;
background: transparent;
}
button {
cursor: pointer;
border: none;
background: transparent;
}
}
}

View file

@ -28,11 +28,6 @@ h1 {
color: var(--bgColor);
background-color: var(--metaColor);
text-align: center;
&::before {
color: var(--bgColor);
content: '# ';
}
}
h2, h3, h4, h5, h6 {
@ -141,8 +136,9 @@ footer {
color: var(--fgColor);
background-color: transparent;
&__background:hover {
&__background:hover, &__background:focus {
color: var(--linkColor);
background-color: transparent;
}
}
@ -228,4 +224,8 @@ div.toc {
.wrapper {
margin: 1rem;
}
.footContainer {
justify-content: center;
}
}

View file

@ -1,6 +1,7 @@
@import 'main';
@import 'header';
@import 'home';
@import '404';
@import 'code';
@import 'table';
@import 'logo';

11
templates/404.html Normal file
View file

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block content %}
<div class="error404">
<h1>404</h1>
<h2>not found</h2>
<p>Yeah, sorry, it's just that boring old error. Not even a cool one like <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418">418</a>, or a scary one like <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500">500</a>. Just a plain, old, boring <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404">404</a>: The page you were trying to reach just doesn't seem to be there, so either the link is broken or you made a typo.</p>
<p>I suppose I shouldn't rule out the possibility that you had enough time on your hands that checking out the zaaarf.foo 404 page seemed like a productive use for it. If that's the case, I urge you to get a job or hobby ASAP.</p>
<p>If, however, you <em>do</em> have a legitimate reason for being here, I'd appreciate it if you took the time to notify whoever sent you here that the link is broken.</p>
</div>
{% endblock content %}

View file

@ -21,7 +21,7 @@
</div>
<div class="navBarRight">
{% for nav_item in config.extra.header_nav %}
<a href="{{ nav_item.url }}" class="{% if nav_item.url == current_url %}active{% endif %}">{% set language_key = 'name_' ~ current_lang %}{{ nav_item[language_key] }}</a>
<a href="{{ nav_item.url }}" class="{% if current_url and nav_item.url == current_url %}active{% endif %}">{% set language_key = 'name_' ~ current_lang %}{{ nav_item[language_key] }}</a>
{% endfor %}
</div>
</nav>