Compare commits

..

No commits in common. "f4affac412593a4e4d6cf0eeddef5bbfcd8ba588" and "558b3aad160f26eff5176369c1899baadc8d40eb" have entirely different histories.

142 changed files with 21 additions and 45 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
__pycache__ __pycache__
/.git /.git
/blog /blog
/images

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,6 @@
header=''' header='''
<!DOCTYPE html> <!DOCTYPE html>
<head> <head>
<title>DeaDvey's Domain</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<style> <style>
pre { pre {
@ -11,5 +10,5 @@ header='''
</head> </head>
<h1>DeaDvey's domain</h1> <h1>DeaDvey's domain</h1>
<pre> <pre>
<a href="/">Home</a> <a href="/blog/">Blogs</a> <a href="/projects/">Projects</a> <a href="/contact/">Contact</a> <a href="/">Home</a> <a href="/blog/">Blogs</a> <a href="/projects/">Projects</a>
<hr/>''' <hr/>'''

View File

@ -8,6 +8,13 @@ file_extension = "html"
url = "https://deadvey.com" url = "https://deadvey.com"
blog_index_path = f"{root.path}/blog/" blog_index_path = f"{root.path}/blog/"
# iterate over the files in the directory and remove them
'''
for filename in os.listdir(blog_index_path):
file_path = os.path.join(blog_index_path, filename)
if os.path.isfile(file_path): # make sure it's a file and not a directory
os.remove(file_path)
'''
tags = ["index"] tags = ["index"]
for i in range(0, len(blogs.blogs_array)): for i in range(0, len(blogs.blogs_array)):
for j in blogs.blogs_array[i][4]: for j in blogs.blogs_array[i][4]:
@ -22,7 +29,7 @@ for tag in tags:
if tag == "index": if tag == "index":
blog_tag_file.write(f"<a href='/rss'>RSS Feed</a><br/>") blog_tag_file.write(f"<a href='/rss'>RSS Feed</a><br/>")
if tag != "index": if tag != "index":
blog_tag_file.write(f"<u><b>{tag}:</b></u><br/>") blog_tag_file.write(f"<h2>{tag}:</h2>")
for current_blog in range(len(blogs.blogs_array)-1, -1, -1): # eg 50 - 0 for current_blog in range(len(blogs.blogs_array)-1, -1, -1): # eg 50 - 0
if tag in blogs.blogs_array[current_blog][4] or tag == "index": if tag in blogs.blogs_array[current_blog][4] or tag == "index":
# Hexadecimal time parsing/formatting # Hexadecimal time parsing/formatting
@ -32,13 +39,12 @@ for tag in tags:
day = str(hex(int(parsed_date.timetuple().tm_yday)))[2:] day = str(hex(int(parsed_date.timetuple().tm_yday)))[2:]
if previous_year != year: if previous_year != year:
blog_tag_file.write(f"<b>{year}:</b><br/>") blog_tag_file.write(f"<h3>{year}:</h3>")
# Write the link to the page # Write the link to the page
blog_tag_file.write(f"{day}: <a href='/blog/{current_blog}.{file_extension}'>{blogs.blogs_array[current_blog][0]}</a><br/>") blog_tag_file.write(f"{day}: <a href='/blog/{current_blog}.{file_extension}'>{blogs.blogs_array[current_blog][0]}</a><br/>")
previous_year = year previous_year = year
blog_tag_file.write("</pre>")
@ -59,7 +65,6 @@ for current_blog in range(len(blogs.blogs_array)-1, -1, -1): # eg 50 - 0
images_div = "" images_div = ""
tags_div = "" tags_div = ""
buttons_div = "" buttons_div = ""
blogs.blogs_array[current_blog][1] = blogs.blogs_array[current_blog][1].replace(". ", ".<br/>")
if current_blog > 0: if current_blog > 0:
buttons_div += f"<a href='/blog/{current_blog-1}.html'><-- {blogs.blogs_array[current_blog-1][0]}</a> " buttons_div += f"<a href='/blog/{current_blog-1}.html'><-- {blogs.blogs_array[current_blog-1][0]}</a> "
if current_blog < len(blogs.blogs_array) - 1: if current_blog < len(blogs.blogs_array) - 1:

View File

@ -1,21 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>DeaDvey's Domain</title>
<meta charset="utf-8" />
<style>
pre {
white-space: pre-wrap;
}
</style>
</head>
<h1>DeaDvey's domain</h1>
<pre>
<a href="/">Home</a> <a href="/blog/">Blogs</a> <a href="/projects/">Projects</a> <a href="/contact/">Contact</a>
<hr/>
Matrix: @deadvey:matrix.org
Mastodon: <a href="https://mastodon.tuxcord.net/@deadvey">@deadvey@mastodon.tuxcord.net</a>
IRC network: <a href="irc://irc.tuxcord.net">irc.tuxcord.net</a>
Email: <a href="mailto:email@deadvey.com">email@deadvey.com</a>
</pre>
</html>

BIN
images/7psycos.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
images/among-us-sus.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
images/among-us-twerk.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
images/analogue-clock.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 KiB

BIN
images/asm.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
images/asterix.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
images/backgrounds/8679.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
images/backgrounds/8679.jpg.zip Executable file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
images/backgrounds/atom.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
images/backgrounds/brain.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
images/backgrounds/brain2.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
images/backgrounds/chemical.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
images/backgrounds/chlorine.JPG Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
images/backgrounds/diamond.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
images/backgrounds/fossil.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
images/backgrounds/heart.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
images/backgrounds/leaf.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
images/backgrounds/nuclear.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
images/backgrounds/potassium.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
images/backgrounds/rocket.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
images/backgrounds/shuttle.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
images/backgrounds/solar.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
images/backgrounds/vr.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
images/backgrounds/whale.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
images/backlogged.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
images/bean.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
images/bf2.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
images/blur.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

BIN
images/borat.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 KiB

BIN
images/c-brandlogo.net_.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
images/capyroll.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
images/charizard-pokemon.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
images/chatcontrol.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

BIN
images/clancy.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

BIN
images/comments-screenshot.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
images/conclave.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
images/cpp.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
images/csharp.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
images/custom_laptop.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

BIN
images/depressed.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

BIN
images/diehard.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
images/download.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 917 B

BIN
images/elixir.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
images/eras.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
images/factorio.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
images/falling.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
images/farmtube.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
images/favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
images/favicon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
images/feedIcon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
images/firework.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

BIN
images/fireworks.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 877 KiB

BIN
images/flashlight.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
images/foxychopc-foxychopchop.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
images/gbbo2024.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

BIN
images/git.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
images/gitea.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
images/github.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
images/gitlab.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
images/gitoutofhere.jpeg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
images/globe.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
images/golang.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

BIN
images/gtaiv.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
images/guyfawkes.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

BIN
images/header-image.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 KiB

BIN
images/hello-yg.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

BIN
images/henry-stickmin.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
images/hive.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
images/hyprland-vs-sway.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
images/insideout2.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 595 KiB

BIN
images/invidious.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
images/jc.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

BIN
images/jellyfin.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 KiB

BIN
images/just-do-it-do-it.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

BIN
images/kandalf.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
images/kotpota.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 KiB

BIN
images/letterboxd.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
images/looking.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
images/lotrc.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

BIN
images/macbeth.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

BIN
images/mastodon.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
images/monkeytype.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
images/motherboard.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
images/neverwhere.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Some files were not shown because too many files have changed in this diff Show More