copyright and moved contacts
This commit is contained in:
parent
0b3bf3f4c6
commit
f4affac412
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
/.git
|
/.git
|
||||||
/blog
|
/blog
|
||||||
|
/images
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,7 @@
|
|||||||
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 {
|
||||||
@ -10,5 +11,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="/">Home</a> <a href="/blog/">Blogs</a> <a href="/projects/">Projects</a> <a href="/contact/">Contact</a>
|
||||||
<hr/>'''
|
<hr/>'''
|
||||||
|
@ -8,13 +8,6 @@ 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]:
|
||||||
@ -29,7 +22,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"<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
|
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
|
||||||
@ -39,12 +32,13 @@ 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"<h3>{year}:</h3>")
|
blog_tag_file.write(f"<b>{year}:</b><br/>")
|
||||||
|
|
||||||
# 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>")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -65,6 +59,7 @@ 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:
|
||||||
|
21
contact/index.html
Normal file
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>
|
23
index.html
23
index.html
@ -1,20 +1,25 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<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>
|
<h1>DeaDvey's domain</h1>
|
||||||
<pre>
|
<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/>
|
<hr/>
|
||||||
Hey, I'm deadvey, this is my html site, you can clone my page <a href="https://git.javalsai.dynv6.net/deadvey/markdown-site.git">here</a>
|
Hey, I'm deadvey, this is my html site, you can clone my page <a href="https://git.javalsai.dynv6.net/deadvey/markdown-site.git">here</a>
|
||||||
On this web-site, I have the following content:
|
On this web-site, I have the following content:
|
||||||
- <a href="/blog/index.md">Personal blog</a>
|
- <a href="/blog/index.html">Personal blog</a>
|
||||||
- <a href="/resources.md">Resources</a>
|
- <a href="/projects/index.html">Projects</a>
|
||||||
<br/>
|
|
||||||
|
Copyright © 2022-2025 DeaDvey
|
||||||
<a href="/LICENSE">This website is licensed under the GPL3</a>
|
<a href="/LICENSE">This website is licensed under the GPL3</a>
|
||||||
<a href="https://git.javalsai.dynv6.net/deadvey/htdocs.git">source code</a>
|
<a href="https://git.javalsai.dynv6.net/deadvey/htdocs.git">source code</a>
|
||||||
Matrix: @deadvey:matrix.org
|
|
||||||
Mastodon: @deadvey@mastodon.tuxcord.net
|
|
||||||
IRC network: irc.tuxcord.net
|
|
||||||
Email: email@deadvey.com
|
|
||||||
<a href="http://tuxcord.net">tuxcord.net web-site</a>
|
|
||||||
</pre>
|
</pre>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
<title>DeaDvey's Domain</title>
|
||||||
<style>
|
<style>
|
||||||
pre {
|
pre {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
@ -9,7 +10,7 @@
|
|||||||
</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="/">Home</a> <a href="/blog/">Blogs</a> <a href="/projects/">Projects</a> <a href="/contact/">Contact</a>
|
||||||
<hr/>
|
<hr/>
|
||||||
<a href="https://git.javalsai.dynv6.net/deadvey/nixos">NixOS configuration files</a>
|
<a href="https://git.javalsai.dynv6.net/deadvey/nixos">NixOS configuration files</a>
|
||||||
<a href="https://git.javalsai.dynv6.net/deadvey/markdown-webbrowser">Markdown web browser</a>
|
<a href="https://git.javalsai.dynv6.net/deadvey/markdown-webbrowser">Markdown web browser</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user