Skip to content

Commit

Permalink
Added metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
NeeEoo committed Sep 28, 2024
1 parent 0cad655 commit 8ad50b3
Show file tree
Hide file tree
Showing 7 changed files with 214 additions and 132 deletions.
Binary file added src/img/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/pages/index.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function buildHtml(_pageDir, _exportPath) {
var outpath = exportPath + "index.html";
var templatePage = fs.readFileSync(path, 'utf8');
var vars = {
pageTitle: "Home",
title: "Home",
header: header,
mods: mods,
Expand Down
278 changes: 149 additions & 129 deletions src/pages/index.html
Original file line number Diff line number Diff line change
@@ -1,139 +1,159 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home - Codename Engine Docs</title>
<link rel="stylesheet" href="root/style.css?index">
<link rel="stylesheet" href="root/index.css?index">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ pageTitle }} - Codename Engine Docs</title>
<link rel="stylesheet" href="root/style.css?index">
<link rel="stylesheet" href="root/index.css?index">

<link href='https://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css' rel='stylesheet' type='text/css' />
<meta name="title" content="{{ pageTitle }} - Codename Engine Docs" />
<meta name="description" content="Website dedicated to things for Codename Engine!" />

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://fnf-cne-devs.github.io/" />
<meta property="og:title" content="{{ pageTitle }} - Codename Engine Docs" />
<meta property="og:description" content="Website dedicated to things for Codename Engine!" />
<meta property="og:image" content="https://fnf-cne-devs.github.io/img/banner.png" />
<meta property="og:site_name" content="Codename Engine Docs" />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://fnf-cne-devs.github.io/" />
<meta property="twitter:title" content="{{ pageTitle }} - Codename Engine Docs" />
<meta property="twitter:description" content="Website dedicated to things for Codename Engine!" />
<meta property="twitter:image" content="https://fnf-cne-devs.github.io/img/banner.png" />

<meta name="theme-color" content="#531a7d">

<link href='https://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css' rel='stylesheet' type='text/css' />
</head>
<body class="nojs">
<script>
document.body.classList.remove("nojs");
</script>
<div class="header">
{{ header }}
</div>
<div class="container">
<div class="content">
<div class="logo-container">
<div class="logo">
<img class="logo-bg" src="img/logo-cne.png" alt="Codename Engine Logo">
<img class="question" src="img/question.png">
</div>
</div>
<h2 style="margin-bottom: 0.3em;">Codename Engine</h2>
<div class="compact"><sub>seriously we need an actual logo for this</sub></div>
<script>
document.body.classList.remove("nojs");
</script>
<div class="header">
{{ header }}
</div>
<div class="container">
<div class="content">
<div class="logo-container">
<div class="logo">
<img class="logo-bg" src="img/logo-cne.png" alt="Codename Engine Logo">
<img class="question" src="img/question.png">
</div>
</div>
<h2 style="margin-bottom: 0.3em;">Codename Engine</h2>
<div class="compact"><sub>seriously we need an actual logo for this</sub></div>

<a href="/api-docs/" class="default-button">API</a>
<a href="/wiki/" class="default-button">Wiki</a>
<!-- <a href="./tools/">Tools</a> -->
<div>
<h2>Downloads</h2>
</div>
<div class="downloads">
<div class="os-button">
<a href="https://nightly.link/FNF-CNE-Devs/CodenameEngine/workflows/windows/main/Codename%20Engine.zip" class="default-button">
<span>
<img class="os-logo" src="img/os/windows.svg"> Windows
</span>
</a>
</div>
<div class="os-button">
<a href="https://nightly.link/FNF-CNE-Devs/CodenameEngine/workflows/macos/main/Codename%20Engine.zip" class="default-button">
<span>
<img class="os-logo" src="img/os/apple.svg"> MacOS
</span>
</a>
</div>
<div class="os-button">
<a href="https://nightly.link/FNF-CNE-Devs/CodenameEngine/workflows/linux/main/Codename%20Engine.zip" class="default-button">
<span>
<img class="os-logo" src="img/os/linux.svg"> Linux
</span>
</a>
</div>
</div>
<h4>Unofficial port for mobile phones:</h4>
<div class="downloads">
<div class="os-button">
<a href="https://nightly.link/MobilePorting/CodenameEngine-Mobile/workflows/android/cne-pr/Codename%20Engine.zip" class="default-button">
<span>
<img class="os-logo" src="img/os/android.svg"> Android
</span>
</a>
</div>
<div class="os-button">
<a href="https://nightly.link/MobilePorting/CodenameEngine-Mobile/workflows/ios/cne-pr/Codename%20Engine.zip" class="default-button">
<span>
<img class="os-logo" src="img/os/apple.svg"> iOS
</span>
</a>
</div>
</div>
<div>
<i>Make sure to join our official <img class="icon" src="img/icons/discord.svg"> <a href="https://discord.gg/WTzm35kekB">Discord&nbsp;Server</a>!</i>
<br>
<i>You can contribute to this website by going to the <i class="fa fa-github"></i> <a href="https://github.com/FNF-CNE-Devs/FNF-CNE-Devs.github.io">GitHub&nbsp;repository</a></i>
</div>
</div>
<div class="content mods">
<div>
<h2>Mods</h2>
</div>
<div class="sort-buttons hide-nojs">
<div>
<a href="./#" class="sort-button category-button default-button" data-sort="featured">
Featured
</a>
<a href="./#" class="sort-button category-button default-button" data-sort="best">
Best of all time
</a>
<a href="./#" class="sort-button category-button default-button selected" data-sort="all">
All
</a>
<a href="./#" class="sort-button category-button default-button" data-sort="upcoming">
Upcoming
</a>
</div>
<!-- <span class="space">&nbsp;&nbsp;&nbsp;</span> -->
<div>
<a href="./#" class="sort-button order-button default-button" data-sort="recent">
<i class="fa fa-clock-o"></i>
Recent
</a>
<a href="./#" class="sort-button order-button default-button selected" data-sort="random">
<i class="fa fa-random"></i>
Random
</a>
</div>
</div>
{{#warnings}}
<div class="warning">
<h3>Warning</h3>
<p>{{.}}</p>
</div>
{{/warnings}}
<div class="featured-mods">
{{#mods}}
<div class="featured-mod {{#tags}}{{.}} {{/tags}}" data-time="{{lastUpdated}}" data-author="{{author}}" data-source="{{source}}" data-version="{{version}}" data-tags="{{tagsRaw}}">
<a href="{{link}}">
<img class="sparkles" src="https://i.gifer.com/XZ5V.gif">
<img src="{{image}}" />
<div class="card-content">
<h3>{{name}}</h3>
<p>{{description}}</p>
<span class="last-updated hide-nojs" data-time="{{lastUpdated}}" style="display:none;">{{lastUpdated}}</span>
</div>
</a>
</div>
{{/mods}}
</div>
<a href="/api-docs/" class="default-button">API</a>
<a href="/wiki/" class="default-button">Wiki</a>
<!-- <a href="./tools/">Tools</a> -->
<div>
<h2>Downloads</h2>
</div>
<div class="downloads">
<div class="os-button">
<a href="https://nightly.link/FNF-CNE-Devs/CodenameEngine/workflows/windows/main/Codename%20Engine.zip" class="default-button">
<span>
<img class="os-logo" src="img/os/windows.svg"> Windows
</span>
</a>
</div>
<div class="os-button">
<a href="https://nightly.link/FNF-CNE-Devs/CodenameEngine/workflows/macos/main/Codename%20Engine.zip" class="default-button">
<span>
<img class="os-logo" src="img/os/apple.svg"> MacOS
</span>
</a>
</div>
<div class="os-button">
<a href="https://nightly.link/FNF-CNE-Devs/CodenameEngine/workflows/linux/main/Codename%20Engine.zip" class="default-button">
<span>
<img class="os-logo" src="img/os/linux.svg"> Linux
</span>
</a>
</div>
</div>
<h4>Unofficial port for mobile phones:</h4>
<div class="downloads">
<div class="os-button">
<a href="https://nightly.link/MobilePorting/CodenameEngine-Mobile/workflows/android/cne-pr/Codename%20Engine.zip" class="default-button">
<span>
<img class="os-logo" src="img/os/android.svg"> Android
</span>
</a>
</div>
<div class="os-button">
<a href="https://nightly.link/MobilePorting/CodenameEngine-Mobile/workflows/ios/cne-pr/Codename%20Engine.zip" class="default-button">
<span>
<img class="os-logo" src="img/os/apple.svg"> iOS
</span>
</a>
</div>
</div>
<div>
<i>Make sure to join our official <img class="icon" src="img/icons/discord.svg"> <a href="https://discord.gg/WTzm35kekB">Discord&nbsp;Server</a>!</i>
<br>
<i>You can contribute to this website by going to the <i class="fa fa-github"></i> <a href="https://github.com/FNF-CNE-Devs/FNF-CNE-Devs.github.io">GitHub&nbsp;repository</a></i>
</div>
</div>
<div class="content mods">
<div>
<h2>Mods</h2>
</div>
<div class="sort-buttons hide-nojs">
<div>
<a href="./#" class="sort-button category-button default-button" data-sort="featured">
Featured
</a>
<a href="./#" class="sort-button category-button default-button" data-sort="best">
Best of all time
</a>
<a href="./#" class="sort-button category-button default-button selected" data-sort="all">
All
</a>
<a href="./#" class="sort-button category-button default-button" data-sort="upcoming">
Upcoming
</a>
</div>
<!-- <span class="space">&nbsp;&nbsp;&nbsp;</span> -->
<div>
<a href="./#" class="sort-button order-button default-button" data-sort="recent">
<i class="fa fa-clock-o"></i>
Recent
</a>
<a href="./#" class="sort-button order-button default-button selected" data-sort="random">
<i class="fa fa-random"></i>
Random
</a>
</div>
</div>
{{#warnings}}
<div class="warning">
<h3>Warning</h3>
<p>{{.}}</p>
</div>
{{/warnings}}
<div class="featured-mods">
{{#mods}}
<div class="featured-mod {{#tags}}{{.}} {{/tags}}" data-time="{{lastUpdated}}" data-author="{{author}}" data-source="{{source}}" data-version="{{version}}" data-tags="{{tagsRaw}}">
<a href="{{link}}">
<img class="sparkles" src="https://i.gifer.com/XZ5V.gif">
<img src="{{image}}" />
<div class="card-content">
<h3>{{name}}</h3>
<p>{{description}}</p>
<span class="last-updated hide-nojs" data-time="{{lastUpdated}}" style="display:none;">{{lastUpdated}}</span>
</div>
</a>
</div>
{{/mods}}
</div>

<script src="root/featuredMods.js"></script>
</div>
</div>
<script src="root/featuredMods.js"></script>
</div>
</div>
</body>
</html>
22 changes: 21 additions & 1 deletion src/pages/tools/event-packer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,28 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Event Packer - Codename Engine Tools</title>
<link rel="stylesheet" href="root/style.css">
<title>Event Packer - Codename Engine Tools</title>

<meta name="title" content="Event Packer - Codename Engine Tools" />
<meta name="description" content="Website dedicated to things for Codename Engine!" />

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://fnf-cne-devs.github.io/" />
<meta property="og:title" content="Event Packer - Codename Engine Tools" />
<meta property="og:description" content="Website dedicated to things for Codename Engine!" />
<meta property="og:image" content="https://fnf-cne-devs.github.io/img/banner.png" />
<meta property="og:site_name" content="Codename Engine Docs" />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://fnf-cne-devs.github.io/" />
<meta property="twitter:title" content="Event Packer - Codename Engine Tools" />
<meta property="twitter:description" content="Website dedicated to things for Codename Engine!" />
<meta property="twitter:image" content="https://fnf-cne-devs.github.io/img/banner.png" />

<meta name="theme-color" content="#531a7d">
</head>
<body>
<div class="header">
Expand Down
22 changes: 21 additions & 1 deletion src/pages/tools/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,28 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home - Codename Engine Tools</title>
<link rel="stylesheet" href="root/style.css">
<title>Home - Codename Engine Tools</title>

<meta name="title" content="Home - Codename Engine Tools" />
<meta name="description" content="Website dedicated to things for Codename Engine!" />

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://fnf-cne-devs.github.io/" />
<meta property="og:title" content="Home - Codename Engine Tools" />
<meta property="og:description" content="Website dedicated to things for Codename Engine!" />
<meta property="og:image" content="https://fnf-cne-devs.github.io/img/banner.png" />
<meta property="og:site_name" content="Codename Engine Docs" />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://fnf-cne-devs.github.io/" />
<meta property="twitter:title" content="Home - Codename Engine Tools" />
<meta property="twitter:description" content="Website dedicated to things for Codename Engine!" />
<meta property="twitter:image" content="https://fnf-cne-devs.github.io/img/banner.png" />

<meta name="theme-color" content="#531a7d">
</head>
<body>
<div class="header">
Expand Down
1 change: 1 addition & 0 deletions src/pages/wiki.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function buildHtml(_pageDir, _exportPath) {
}

var vars = {
pageTitle: title,
title: title,
content: renderer.render(fs.readFileSync("./src/" + wikiDir + i, 'utf8')),
sidebar: sidebar,
Expand Down
22 changes: 21 additions & 1 deletion src/pages/wiki.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,29 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }} - Codename Engine Docs</title>
<title>{{ pageTitle }} - Codename Engine Wiki</title>
<link rel="stylesheet" href="root/style.css">
<link rel="stylesheet" href="root/wiki.css">

<meta name="title" content="{{ pageTitle }} - Codename Engine Wiki" />
<meta name="description" content="Website dedicated to things for Codename Engine!" />

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://fnf-cne-devs.github.io/" />
<meta property="og:title" content="{{ pageTitle }} - Codename Engine Wiki" />
<meta property="og:description" content="Website dedicated to things for Codename Engine!" />
<meta property="og:image" content="https://fnf-cne-devs.github.io/img/banner.png" />
<meta property="og:site_name" content="Codename Engine Docs" />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://fnf-cne-devs.github.io/" />
<meta property="twitter:title" content="{{ pageTitle }} - Codename Engine Wiki" />
<meta property="twitter:description" content="Website dedicated to things for Codename Engine!" />
<meta property="twitter:image" content="https://fnf-cne-devs.github.io/img/banner.png" />

<meta name="theme-color" content="#531a7d">
</head>
<body>
<div class="header">
Expand Down

0 comments on commit 8ad50b3

Please sign in to comment.