mirror of
https://github.com/zaaarf/friendenstein.git
synced 2024-11-12 18:49:22 +01:00
feat: better rss button, added 404
This commit is contained in:
parent
161589fd3e
commit
e7a6b86ee5
7 changed files with 52 additions and 17 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -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
26
sass/_404.scss
Normal 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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
@import 'main';
|
||||
@import 'header';
|
||||
@import 'home';
|
||||
@import '404';
|
||||
@import 'code';
|
||||
@import 'table';
|
||||
@import 'logo';
|
||||
|
|
11
templates/404.html
Normal file
11
templates/404.html
Normal 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 %}
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue