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:
parent
6ef89eed3d
commit
8354b455d4
24 changed files with 167 additions and 68 deletions
37
allprojects.njk
Normal file
37
allprojects.njk
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
layout: base.njk
|
||||
pagination:
|
||||
data: collections.projects
|
||||
size: 10
|
||||
alias: paginatedProjects
|
||||
---
|
||||
<ul style="display: flex; flex-direction: column; gap: 1em;">
|
||||
{% for project in paginatedProjects %}
|
||||
<div class="searchItem">
|
||||
<p>
|
||||
{% if project.data.logo %}
|
||||
<img float="left" class="searchItemImage" src="{{ project.url }}{{ project.data.logo }}">
|
||||
{% endif %}
|
||||
<a class="searchItemTitle" href="{{ project.url }}">{{ project.data.name }}</a>
|
||||
{% if project.data.author %}
|
||||
by <a href="/authors/{{ project.data.author }}">{{ project.data.author }}</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
<p class="searchItemDescription">{{ project.data.subtitle }}</p>
|
||||
<div class="searchItemTagHolder">
|
||||
{% for tag in project.data.tags %}
|
||||
<div class="tag-{{ tag }}">{{ tag }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<nav>
|
||||
{% if pagination.href.previous %}
|
||||
<a href="{{ pagination.href.previous }}">Prev</a>
|
||||
{% endif %}
|
||||
{% if pagination.href.next %}
|
||||
<a href="{{ pagination.href.next }}">Next</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
Loading…
Add table
Add a link
Reference in a new issue