Skip to content

Commit

Permalink
404 page test
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumbagel committed Mar 1, 2024
1 parent af27720 commit 45884c8
Show file tree
Hide file tree
Showing 7 changed files with 213 additions and 14 deletions.
145 changes: 144 additions & 1 deletion 404.html
Original file line number Diff line number Diff line change
@@ -1 +1,144 @@
testing 1 2 3 :P

<!DOCTYPE html>
<html lang="en">
<head>

<!-- Google tag (gtag.js) -->
<script defer src="https://www.googletagmanager.com/gtag/js?id=G-FQY8Y114PS"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-FQY8Y114PS');
</script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Hi! I'm Julian Reder (@quantumbagel), a dually-enrolled programmer at Wake Tech">
<title>Julian Reder - @quantumbagel</title>
<link rel="shortcut icon" href="/assets/images/quantumbagel_favicon.webp" type="image/x-icon">
<link rel="stylesheet" href="/assets/css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
<meta name="google-site-verification" content="gLWjWyzJC6D2D_6Pe9HWCRkaWL_rKtxRf05_Dhiu2is" />
</head>
<body>
<main>
<aside class="sidebar" data-sidebar>
<div class="sidebar-info">
<a class="colorlink" style="text-align: center" href="https://quantumbagel.github.io"><ion-icon name="home" size="large"></ion-icon></a>
<figure class="avatar-box">
<img src="/assets/images/quantumbageltransparent_small.webp" alt="Julian Reder" width="80">
</figure>
<div class="info-content">
<h1 class="name" title="Julian Reder"><a class="colorlink" href="https://github.com/quantumbagel"> Julian Reder</a></h1>
<p class="title">Serial Developer</p>
</div>
<button class="info_more-btn" data-sidebar-btn>
<span>More Information</span>
<ion-icon name="chevron-down"></ion-icon>
</button>
</div>
<div class="sidebar-info_more">
<div class="separator"></div>
<ul class="contacts-list">

<li class="contact-item">
<div class="icon-box">
<ion-icon name="logo-discord"></ion-icon>
</div>
<div class="contact-info">
<p class="contact-title">Discord</p>
<address>@NotQuantum_</address>
</div>
</li>

<li class="contact-item">
<div class="icon-box">
<ion-icon name="calendar-outline"></ion-icon>
</div>
<div class="contact-info">
<p class="contact-title">Birthday</p>
<address>March 13</address>
</div>
</li>

<li class="contact-item">
<div class="icon-box">
<ion-icon name="location-outline"></ion-icon>
</div>
<div class="contact-info">
<p class="contact-title">Location</p>
<address>North Carolina, USA</address>
</div>
</li>

<li class="contact-item">
<div class="icon-box">
<ion-icon name="heart"></ion-icon>
</div>
<div class="contact-info">
<p class="contact-title">Number of Cats</p>
<address>3</address>
</div>
</li>

<li class="contact-item">
<div class="icon-box">
<ion-icon name="hammer"></ion-icon>
</div>
<div class="contact-info">
<p class="contact-title">Build Status</p>
<address><img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/quantumbagel/quantumbagel.github.io/static.yml?style=flat-square&amp;label=Website%20" /></address>
</div>
</li>

</ul>
<div class="separator"></div>
<ul class="social-list">

<li class="social-item">
<a href="https://github.com/quantumbagel" class="social-link">
<ion-icon name="logo-github"></ion-icon>
</a>
</li>

<li class="social-item">
<a href="https://www.linkedin.com/in/julian-reder-nc/" class="social-link">
<ion-icon name="logo-linkedin"></ion-icon>
</a>
</li>

</ul>
</div>
</aside>
<div class="main-content">
<nav class="navbar">
<ul class="navbar-list">

<li class="navbar-item">
<button class="navbar-link active" data-nav-link>404</button>
</li>

</ul>
</nav>
<article class="404 active" data-page="404">
<header>
<h2 class="h2 article-title">404</h2>
</header>

<section class="about-text">
<p>It looks like you're lost! You can go back to the <a style="display: inline" class="colorlink" href="/">homepage</a> if you want. You can also check out this cool <a style="display: inline" class="colorlink" href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">video</a></p>
</section>

</article>

</div>
</main>
<script defer src="/assets/js/script.js"></script>
<script defer type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script defer nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</body>
</html>
51 changes: 51 additions & 0 deletions 404.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
title: "Julian Reder - @quantumbagel"
favicon: "/assets/images/quantumbagel_favicon.webp"
name: "Julian Reder"
username: "quantumbagel"
starting_page_index: 0
meta_description: "Hi! I'm Julian Reder (@quantumbagel), a dually-enrolled programmer at Wake Tech"
use_sitemap: false
path: ""
analytics:
tag_manager_id: "G-FQY8Y114PS"

pages:
404:
name: "404"
elements:
- text:
text: "It looks like you're lost! You can go back to the [homepage](/) if you want.
You can also check out this cool [video](https://www.youtube.com/watch?v=dQw4w9WgXcQ)"






sidebar:
back_to_home: true
image: "/assets/images/quantumbageltransparent_small.webp"
title: "Serial Developer"
info_panels:
- icon: "logo-discord"
title: "Discord"
value: "@NotQuantum_"
- icon: "calendar-outline"
title: "Birthday"
value: "March 13"
- icon: "location-outline"
title: "Location"
value: "North Carolina, USA"
- icon: "heart"
title: "Number of Cats"
value: "3"
- icon: "hammer"
title: "Build Status"
value: "![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/quantumbagel/quantumbagel.github.io/static.yml?style=flat-square&label=Website%20)"
social_panels:
- icon: "logo-github"
url: "https://github.com/quantumbagel"
- icon: "logo-linkedin"
url: "https://www.linkedin.com/in/julian-reder-nc/"


2 changes: 1 addition & 1 deletion PyAerial/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: "PyAerial"
username: "quantumbagel"
meta_description: "PyAerial - simple and intuitive plane tracking by @quantumbagel"
path: "PyAerial"

use_sitemap: true
starting_page_index: 0
analytics:
tag_manager_id: "G-FQY8Y114PS"
Expand Down
15 changes: 8 additions & 7 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,14 @@ def generate_sitemap(links):
for job_key in jobs.keys():
job = jobs[job_key]
data = y.load(open(job["in"]))
for lk in data["pages"]:
if data['path']:
url = f"https://{data['username']}.github.io/{data['path']}#{lk}"
else:
url = f"https://{data['username']}.github.io#{lk}"
url = url.replace("//", "/")
links.append(url)
if data["use_sitemap"]:
for lk in data["pages"]:
if data['path']:
url = f"https://{data['username']}.github.io/{data['path']}#{lk}"
else:
url = f"https://{data['username']}.github.io#{lk}"
url = url.replace("//", "/")
links.append(url)
f = open(job["out"], "w")
f.truncate(0)
f.write(generate_html(data))
Expand Down
1 change: 1 addition & 0 deletions generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ username: "quantumbagel"
starting_page_index: 0
meta_description: "Hi! I'm Julian Reder (@quantumbagel), a dually-enrolled programmer at Wake Tech"
path: ""
use_sitemap: true
analytics:
tag_manager_id: "G-FQY8Y114PS"

Expand Down
3 changes: 3 additions & 0 deletions generate_execute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ jobs:
pyaerial:
in: "PyAerial/generate.yaml"
out: "PyAerial/index.html"
404:
in: "404.yaml"
out: "404.html"
10 changes: 5 additions & 5 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>https:/quantumbagel.github.io#about</loc>
<lastmod>2024-03-01T01:36:13Z</lastmod>
<lastmod>2024-03-01T01:41:07Z</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https:/quantumbagel.github.io#experience</loc>
<lastmod>2024-03-01T01:36:13Z</lastmod>
<lastmod>2024-03-01T01:41:07Z</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https:/quantumbagel.github.io#projects</loc>
<lastmod>2024-03-01T01:36:13Z</lastmod>
<lastmod>2024-03-01T01:41:07Z</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https:/quantumbagel.github.io#contact</loc>
<lastmod>2024-03-01T01:36:13Z</lastmod>
<lastmod>2024-03-01T01:41:07Z</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https:/quantumbagel.github.io/PyAerial#about</loc>
<lastmod>2024-03-01T01:36:13Z</lastmod>
<lastmod>2024-03-01T01:41:07Z</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
Expand Down

0 comments on commit 45884c8

Please sign in to comment.