Update css, add resources page and solve the world hunger

This commit is contained in:
Darkn Neko 2023-08-17 18:11:21 +06:00
parent 67de9032c2
commit bd4cf92f6b
Signed by: neko
GPG Key ID: EF3275F6BF53A161
7 changed files with 45 additions and 78 deletions

View File

@ -16,9 +16,6 @@ all:
rebuild:
${CC} rebuild
post:
@@${SCRIPTS_DIR}/newpost
mincss:
@find ${CSSDIR} -type f -not -name '*.min.css' | ${SCRIPTS_DIR}/mincss
@ -30,6 +27,7 @@ perm:
find ./${DESTINATION} -type f -exec chmod 644 {} \;
serve: all
@echo "I serve the soviet YunYun!"
${PYHTON} -m http.server --bind ${BIND} -d ./${DESTINATION} ${PORT}
entr:

View File

@ -1,50 +0,0 @@
#!/usr/bin/env perl
# Creates a new website post, appends its link to the index.
use v5.14;
use autodie;
use warnings;
use strict;
use Tie::File;
use Time::Piece;
# '/' is both prepended, and appended.
my $post_url_dir = 'posts';
my $posts_dir = "./src/$post_url_dir";
my $index_file = './src/index.md';
my $post_title;
my $post_filename;
print "Post title: ";
$post_title = <>;
print "Post file name, without extension: ";
$post_filename = <>;
chomp $post_title;
chomp $post_filename;
die "File already exists" if -e "$posts_dir/$post_filename.md";
# Create a post file and insert the title.
open (my $fh, '>', "$posts_dir/$post_filename.md");
say $fh "# $post_title";
close $fh;
# Append a post URL to the index.
tie my @index_lines, 'Tie::File', $index_file;
my $posts_found = 0;
for (@index_lines) {
if ($posts_found) {
$_ .= "\n* [$post_title](/$post_url_dir/$post_filename.html)";
last;
}
$posts_found = 1 if ($_ =~ /and such:/i);
}
untie @index_lines;
my @cmd = ($ENV{EDITOR}, "$posts_dir/$post_filename.md");
system @cmd;

View File

@ -8,15 +8,13 @@
<body>
<p><span class="navbar">
<a style="color: #2e3440;">//</a>
<a href="/" title="Go to home page"> home</a>
<a href="/" title="Go to home page" style="color: #2e3440;"> home</a>
<a style="color: #2e3440;">//</a>
<a href="/about.html" title="More about me">about</a>
<a href="/about.html" title="More about me" style="color: #2e3440;">about</a>
<a style="color: #2e3440;">//</a>
<a href="/contact.html" title="How to contact me">contact</a>
<a href="/contact.html" title="How to contact me" style="color: #2e3440;">contact</a>
<a style="color: #2e3440;">//</a>
<a href="/blog.html" title="Take a look at my blog, senpai!">blog</a>
<a style="color: #2e3440;">//</a>
<a href="/webring.html" title="Check out my webring">web ring</a>
<a href="/resources.html" title="Useful resources" style="color: #2e3440;">resources</a>
<a style="color: #2e3440;">//</a>
</p>
<hr>

View File

@ -1,7 +1,6 @@
.navbar{
background-color: #88c0d0;
}
body {
background-color: #2e3440;
color: #88c0d0;
@ -12,4 +11,14 @@ hr {
color: #88c0d0;
}
a:visited {
color:var(--link-color);
}
a:link {
color:var(--link-color);
}
/* ( ⁄•⁄ω⁄•⁄ ) pls dont look at my css code senpai */

View File

@ -4,4 +4,5 @@
* PGP key is [here](/key.gpg)
* XMPP: neko at darkn dot space
* Use OMEMO
* Matrix: @theonewholovescatnip : envs.net
* Might change at some point

View File

@ -1,17 +0,0 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEZL+UwBYJKwYBBAHaRw8BAQdAT1heNdAXgnez1NfqKSdelSv0385Z4mJuyd5q
rtZg2w60HURhcmtuIE5la28gPG5la29AZGFya24uc3BhY2U+iJAEExYIADgWIQQq
aHU6alPe2MXsurfvMnX2v1OhYQUCZL+UwAIbAwULCQgHAgYVCgkICwIEFgIDAQIe
AQIXgAAKCRDvMnX2v1OhYf8OAP43cENoVsFzbkiBuexiTt56f/8dhctxP/32mrAx
UAFfpgD/R6rQnyNqad7xI5BdS9/4cda35H6tO/i8vjqwkmZjHwa4MwRkv5TAFgkr
BgEEAdpHDwEBB0BrtuafyUWWoCnwMDg6qAoO/0uB0mAZPGJrUUEE98dAQYh4BBgW
CAAgFiEEKmh1OmpT3tjF7Lq37zJ19r9ToWEFAmS/lMACGyAACgkQ7zJ19r9ToWEO
dgD+LFN5hA0Tm98026nXUH0EeHAkHBqoMp9Xm6+n0lflGDwBAIelpDdttR65aHYU
T46zlHguuzvkkzOn83qz/7zWnLALuDgEZL+UwBIKKwYBBAGXVQEFAQEHQOj6Q1P1
H+LlLNQRvHq3Yqdc8XKqvkpBMSJGZvzgnpZXAwEIB4h4BBgWCAAgFiEEKmh1OmpT
3tjF7Lq37zJ19r9ToWEFAmS/lMACGwwACgkQ7zJ19r9ToWGJqwD/SeGHXkSLlc1K
ezKaiHe6tvdpbpA0En3dqixm/lPROJgA/AzOW6IR+1Plc/xwFkmsUjUNkHiB+5TO
Kv0YfGEI/XQI
=DWUu
-----END PGP PUBLIC KEY BLOCK-----

28
src/resources.md Normal file
View File

@ -0,0 +1,28 @@
# Useful resources
* [Educational resources](#edu_res)
* [Interactive](#inter)
* [Privacy services](#priv)
* [Email](#email)
## <a id="edu_res"></a> Educational resources
### <a id="inter"></a> Interactive
- [SelectStarSql](https://selectstarsql.com/) - a very nice interactive guide to SQL
## <a id="priv"></a> Privacy services
This list contains only services I am using and I think they are safe.
### <a id="email"></a> Email
Alias services:
- [Addy.io](https://addy.io/)
- [SimpleLogin](https://simplelogin.io/)
Encrypted email providers:
- [Tutanota](https://tutanota.com/)