Refactor website structure and update licenses

- Replaced Apache License with MIT License in LICENSE file.
- Updated index.html with common meta tags and improved structure.
- Enhanced privacy.html with new styles and scripts for better presentation.
- Added sitemap reference in robots.txt.
- Created GitHub Actions workflow for automated site builds.
- Added .gitignore to exclude unnecessary files from version control.
- Implemented build.js for dynamic HTML generation from templates.
- Created src/index.html and src/privacy.html with metadata for dynamic content.
- Established templates for header, footer, and layout to standardize page structure.
This commit is contained in:
2025-06-06 12:35:26 +10:00
parent afb46a5edd
commit cd428b4a6d
12 changed files with 497 additions and 391 deletions

3
templates/_footer.html Normal file
View File

@@ -0,0 +1,3 @@
<footer>
<a href="privacy.html">Privacy Policy</a>
</footer>

30
templates/_header.html Normal file
View File

@@ -0,0 +1,30 @@
<img src="avatar.webp" alt="Avatar" class="avatar-img" width="250" height="250">
<header>
<h1>Litruv</h1>
<div class="subtext">Dev/Tech Artist @<a href="https://mates.dev/">MatesMedia</a>
</div>
<div class="social-links">
<a href="https://github.com/Litruv" target="_blank" title="GitHub - Litruv">
<i class="fab fa-github"></i>
</a>
<a href="https://www.youtube.com/c/Litruv" target="_blank" title="YouTube - Litruv">
<i class="fab fa-youtube"></i>
</a>
<a href="https://steamcommunity.com/id/Litruv" target="_blank" title="Steam - Litruv">
<i class="fab fa-steam"></i>
</a>
<a href="https://discordapp.com/users/220772082055774210" target="_blank" title="Discord - @Litruv">
<i class="fab fa-discord"></i>
</a>
<a href="https://bsky.app/profile/lit.mates.dev" target="_blank" title="Bluesky - lit.mates.dev">
<i class="fa-brands fa-bluesky"></i>
</a>
</div>
<div class="project-links">
<a href="https://mates.dev" target="_blank">MatesMedia</a>
<a href="https://lit.ruv.wtf/materials/" target="_blank">UE Material Snippets</a>
<a href="https://lit.ruv.wtf/docs/" target="_blank">Documentation</a>
</div>
</header>

48
templates/_layout.html Normal file
View File

@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="<!-- ::META_DESCRIPTION:: -->">
<meta name="author" content="Litruv">
<meta http-equiv="Content-Security-Policy" content="<!-- ::PAGE_CSP:: -->">
<meta property="og:title" content="<!-- ::OG_TITLE:: -->">
<meta property="og:description" content="<!-- ::OG_DESCRIPTION:: -->">
<meta property="og:image" content="https://lit.ruv.wtf/banner.webp"> <!-- Common image -->
<meta property="og:url" content="<!-- ::OG_URL:: -->">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Lit.ruv.wtf" /> <!-- Common site name -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="<!-- ::TWITTER_TITLE:: -->">
<meta name="twitter:description" content="<!-- ::TWITTER_DESCRIPTION:: -->">
<meta name="twitter:image" content="https://lit.ruv.wtf/banner.webp"> <!-- Common image -->
<meta name="twitter:url" content="<!-- ::TWITTER_URL:: -->">
<link rel="icon" type="image/png" sizes="16x16" href="/icons/16.png">
<link rel="icon" type="image/png" sizes="32x32" href="/icons/32.png">
<link rel="icon" type="image/png" sizes="48x48" href="/icons/48.png">
<link rel="apple-touch-icon" sizes="180x180" href="/icons/180.png">
<link rel="stylesheet" href="style.css">
<!-- ::PAGE_SPECIFIC_STYLES:: -->
<script src="main.js" defer></script> <!-- Common main script -->
<!-- ::PAGE_SPECIFIC_SCRIPTS_DEFER:: -->
<title><!-- ::PAGE_TITLE:: --></title>
</head>
<body>
<div class="bg-pattern"></div>
<div class="container">
<!-- ::HEADER:: -->
<!-- ::CONTENT:: -->
<!-- ::FOOTER:: -->
</div>
<!-- ::PAGE_SPECIFIC_SCRIPTS_BODY_END:: -->
</body>
</html>