Moving to Eleventy. Search not working yet.

This commit is contained in:
天クマ 2025-10-24 20:42:54 -03:00
commit 26db9488db
22 changed files with 1852 additions and 190 deletions

19
_includes/base.njk Normal file
View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/assets/styles.css" media="screen">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="project.js"></script>
<script src="featured.js" defer></script>
<title>neoBeta</title>
</head>
<body>
<div id="everythingHelper">
{% include "header.njk" %}
<main>
{{ content | safe }}
</main>
</div>
</body>
</html>

11
_includes/header.njk Normal file
View file

@ -0,0 +1,11 @@
<header>
<div id="linksBox">
<h1 id="title">neoBeta</h1>
<ul id="headerLinks">
<a href="/index.html">home</a> -
<a href="/index.html">mods</a> -
<a href="/index.html">plugins</a>
</ul>
<p id="credits">Adrian Victor, 2025 (<a href="https://git.disroot.org/adrianvictor/neoBeta">Unlicense</a>)</p>
</div>
</header>

29
_includes/project.njk Normal file
View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/assets/styles.css" media="screen">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>neoBeta</title>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>
<body>
<div id="everythingHelper">
{% include "header.njk" %}
<div id="projectHeader">
<img src="{{ page.dir }}{{ logoName }}.{{ logoExtension }}">
<div id="projectTitleSubtitle">
<div id="projectTitleAuthor">
<h1 id="projectTitle">{{ projectName }}</h1>
<p id="projectAuthor">by {{ projectAuthor }}</p>
</div>
<p id="projectSubtitle">{{ projectSubtitle }}</p>
</div>
<a id="downloadLink" href="{{ projectDonwloadLink }}"><button id="downloadButton">Download</button></a>
</div>
<main id="projectDescription">
{{ content | safe }}
</main>
</div>
</body>
</html>