diff --git a/build.sh b/build.sh old mode 100755 new mode 100644 diff --git a/go.mod b/go.mod index fc56b55..4a032da 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module keyemail-dev-v1.0 -go 1.22.3 +go 1.23 diff --git a/main.go b/main.go index 2ba5640..0fd487c 100644 --- a/main.go +++ b/main.go @@ -47,7 +47,7 @@ type VideoItems struct { var data = &Index{ WebpageTitle: "Keyemail", - WebpageIcon: "/src/assets/main/favicon.ico", + WebpageIcon: "/src/assets/main/favicon.png", WebpageKeywords: "keyemail", WebpageDescription: "Welcome to keyemail.dev! A profile based on Keyemail.", WebpageURL: "https://keyemail.dev", @@ -82,7 +82,7 @@ var socialItems = []SocialItems{ {"https://steamcommunity.com/id/keyemail/", "Steam", "Keyemail", "/src/assets/icons/steam.svg", "000000"}, {"https://open.spotify.com/user/316yuurxrw3zcprxsnrvgamxktp4", "Spotify", "Keyemail", "/src/assets/icons/spotify.svg", "1DB954"}, {"https://www.youtube.com/channel/UCCNkKG8XoZCh52vLCbXYy7g", "YouTube", "Keyemail", "/src/assets/icons/youtube.svg", "CD201F"}, - {"https://www.instagram.com/keyemail1?igsh=OGQ5ZDc2ODk2ZA%3D%3D&utm_source=qr", "Instagram", "keyemail1", "/src/assets/icons/instagram.svg", "C13584"}, + {"https://bsky.app/profile/keyemail.dev", "Bluesky", "Keyemail", "/src/assets/icons/bluesky.svg", "1185FE"}, } var videoItems = []VideoItems{ @@ -197,9 +197,17 @@ func main() { } fs := http.FileServer(http.Dir("./src")) - http.Handle("/src/", http.StripPrefix("/src/", fs)) - port := ":3939" + http.HandleFunc("/src/", func(w http.ResponseWriter, r *http.Request) { + if r.URL.Path[len(r.URL.Path)-1] == '/' { + renderTemplate(w, "404", data, true) + return + } + + http.StripPrefix("/src/", fs).ServeHTTP(w,r) + }) + + port := ":3940" http.HandleFunc("/", indexHandler) http.HandleFunc("/socials", socialsHandler) diff --git a/src/assets/icons/bluesky.svg b/src/assets/icons/bluesky.svg new file mode 100644 index 0000000..4509cf3 --- /dev/null +++ b/src/assets/icons/bluesky.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/instagram.svg b/src/assets/icons/instagram.svg deleted file mode 100644 index 403e6f4..0000000 --- a/src/assets/icons/instagram.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/main/favicon.ico b/src/assets/main/favicon.ico deleted file mode 100644 index c9fa5a6..0000000 Binary files a/src/assets/main/favicon.ico and /dev/null differ diff --git a/src/assets/main/favicon.png b/src/assets/main/favicon.png new file mode 100644 index 0000000..91aed69 Binary files /dev/null and b/src/assets/main/favicon.png differ diff --git a/src/assets/profile/header.png b/src/assets/profile/header.png new file mode 100644 index 0000000..a7cc09a Binary files /dev/null and b/src/assets/profile/header.png differ diff --git a/src/assets/profile/profile.jpg b/src/assets/profile/profile.jpg index 222c066..8696910 100644 Binary files a/src/assets/profile/profile.jpg and b/src/assets/profile/profile.jpg differ diff --git a/src/pages/home.tmpl b/src/pages/home.tmpl index cdcf1b6..ba26cbc 100644 --- a/src/pages/home.tmpl +++ b/src/pages/home.tmpl @@ -8,72 +8,76 @@
{{ define "body" }}He/Him
I specialize in IT and web development-related stuff, but I also love doing a variety of different hobbies such as Flight Simulator, or learning Japanese. I daily run an Arch Linux machine as my main system and support Linux in every way. I'm glad to meet you!
+A person who loves to play with all types of technology! Does web development, and unity work for development. Use to run a Linux setup (Arch Linux), but now I use Windows 11 with linux on WSL. I also use VR, and you will usually find me on VRChat, so if you see me dont be afraid to say hi!