Compare commits
2 Commits
558b3aad16
...
f4affac412
Author | SHA1 | Date | |
---|---|---|---|
f4affac412 | |||
0b3bf3f4c6 |
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
__pycache__
|
||||
/.git
|
||||
/blog
|
||||
/images
|
||||
|
@ -1,6 +1,7 @@
|
||||
header='''
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<title>DeaDvey's Domain</title>
|
||||
<meta charset="utf-8" />
|
||||
<style>
|
||||
pre {
|
||||
@ -10,5 +11,5 @@ header='''
|
||||
</head>
|
||||
<h1>DeaDvey's domain</h1>
|
||||
<pre>
|
||||
<a href="/">Home</a> <a href="/blog/">Blogs</a> <a href="/projects/">Projects</a>
|
||||
<a href="/">Home</a> <a href="/blog/">Blogs</a> <a href="/projects/">Projects</a> <a href="/contact/">Contact</a>
|
||||
<hr/>'''
|
||||
|
@ -8,13 +8,6 @@ file_extension = "html"
|
||||
url = "https://deadvey.com"
|
||||
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"]
|
||||
for i in range(0, len(blogs.blogs_array)):
|
||||
for j in blogs.blogs_array[i][4]:
|
||||
@ -29,7 +22,7 @@ for tag in tags:
|
||||
if tag == "index":
|
||||
blog_tag_file.write(f"<a href='/rss'>RSS Feed</a><br/>")
|
||||
if tag != "index":
|
||||
blog_tag_file.write(f"<h2>{tag}:</h2>")
|
||||
blog_tag_file.write(f"<u><b>{tag}:</b></u><br/>")
|
||||
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":
|
||||
# Hexadecimal time parsing/formatting
|
||||
@ -39,12 +32,13 @@ for tag in tags:
|
||||
day = str(hex(int(parsed_date.timetuple().tm_yday)))[2:]
|
||||
|
||||
if previous_year != year:
|
||||
blog_tag_file.write(f"<h3>{year}:</h3>")
|
||||
blog_tag_file.write(f"<b>{year}:</b><br/>")
|
||||
|
||||
# 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/>")
|
||||
|
||||
previous_year = year
|
||||
blog_tag_file.write("</pre>")
|
||||
|
||||
|
||||
|
||||
@ -65,6 +59,7 @@ for current_blog in range(len(blogs.blogs_array)-1, -1, -1): # eg 50 - 0
|
||||
images_div = ""
|
||||
tags_div = ""
|
||||
buttons_div = ""
|
||||
blogs.blogs_array[current_blog][1] = blogs.blogs_array[current_blog][1].replace(". ", ".<br/>")
|
||||
if current_blog > 0:
|
||||
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:
|
||||
|
21
contact/index.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!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>
|
Before Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 330 KiB |
BIN
images/asm.png
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 112 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 3.6 KiB |
BIN
images/bean.jpg
Before Width: | Height: | Size: 137 KiB |
BIN
images/bf2.jpg
Before Width: | Height: | Size: 22 KiB |
BIN
images/blur.jpg
Before Width: | Height: | Size: 263 KiB |
BIN
images/borat.jpg
Before Width: | Height: | Size: 631 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 115 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 159 KiB |
Before Width: | Height: | Size: 496 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 27 KiB |
BIN
images/cpp.png
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 266 KiB |
Before Width: | Height: | Size: 366 KiB |
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 917 B |
Before Width: | Height: | Size: 114 KiB |
BIN
images/eras.jpg
Before Width: | Height: | Size: 174 KiB |
Before Width: | Height: | Size: 178 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 153 KiB |
Before Width: | Height: | Size: 877 KiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 145 KiB |
BIN
images/git.gif
Before Width: | Height: | Size: 52 KiB |
BIN
images/gitea.png
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 61 KiB |
BIN
images/globe.png
Before Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 144 KiB |
BIN
images/gtaiv.jpg
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 362 KiB |
Before Width: | Height: | Size: 382 KiB |
Before Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 42 KiB |
BIN
images/hive.jpg
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 595 KiB |
Before Width: | Height: | Size: 37 KiB |
BIN
images/jc.png
Before Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 856 KiB |
Before Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 724 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 11 KiB |
BIN
images/lotrc.jpg
Before Width: | Height: | Size: 388 KiB |
Before Width: | Height: | Size: 256 KiB |
Before Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 22 KiB |