Added allprojects.njk that lists all projecs (pagination), added contributing.md that has instructinos about adding your project to neoBeta, added errors template and 404 page, moved projects metadata to json file.

This commit is contained in:
天クマ 2025-10-26 17:36:37 -03:00
commit 8354b455d4
24 changed files with 167 additions and 68 deletions

11
_includes/error.njk Normal file
View file

@ -0,0 +1,11 @@
---
layout: "base.njk"
---
<h2>{{ page.fileSlug }} - Ouch! We hit a wall.</h2>
<p>{{ errorDescription | safe }}</p>
{% if errorQuote %}
<p class="errorQuote"><i>"{{ errorQuote | safe }}"</i></p>
{% endif %}
{% if content %}
{{ content | safe }}
{% endif %}

View file

@ -7,7 +7,7 @@
{% set projectData = item %}
<div class="featuredProject">
<a href="/projects/{{ project }}">
<img src="{% if projectData.data.logoName and projectData.data.logoExtension %}/projects/{{project}}/{{ projectData.data.logoName }}.{{ projectData.data.logoExtension }}{% else %}/assets/mod-placeholder.png{% endif %}">
<img src="{% if projectData.data.logo %}/projects/{{project}}/{{ projectData.data.logo }}{% else %}/assets/mod-placeholder.png{% endif %}">
</a>
<p class="featuredProjectName">{{ projectData.data.name }}</p>
<p>by <a href="/authors/{{ projectData.data.author }}/">{{ projectData.data.author }}</a></p>

View file

@ -3,7 +3,9 @@
<h1 id="title">neoBeta</h1>
<ul id="headerLinks">
<a href="/">home</a> -
<a href="/search">search</a>
<a href="/search">search</a> -
<a href="/allprojects">index</a> -
<a href="/contribute">contribute</a>
</ul>
<p id="credits">Adrian Victor, 2025 (<a href="https://git.disroot.org/adrianvictor/neoBeta">Unlicense</a>)</p>
</div>

View file

@ -21,11 +21,17 @@
</div>
<p id="projectSubtitle">{{ subtitle }}</p>
</div>
<a id="downloadLink" href="{{ downloadLink }}"><button id="downloadButton">Download</button></a>
<a id="downloadLink" href="{{ downloadLink }}"><button id="downloadButton">{% if downloadLink %}Download{% else %}Unavailable{% endif %}</button></a>
</div>
{% include "project_image.njk" %}
<main id="projectDescription">
{{ content | safe }}
{% if content %}
{{ content | safe }}
{% else %}
<h2>Oopsie! :<</h2>
<p>Seems like we don't have a description for this project.</p>
<p class="errorQuote"><i>"If only the clockworks could speak<br>I wouldn't be so alone"</i></p>
{% endif %}
</main>
</div>
</body>