Skip to content
Snippets Groups Projects
Unverified Commit bf3d30c4 authored by Lukas Ruge's avatar Lukas Ruge
Browse files

project archive first try

parent 9a5fd561
No related branches found
No related tags found
No related merge requests found
Pipeline #2088 failed
<div id="wrapper">
<div class="container">
<div class="row">
{% assign sorted_projects = (site.projects | sort: 'date') %}
{% for project in sorted_projects reversed %}
<div class="box">
<p>
{% if project.image != "/assets/default-social-image.png" %}
<img src="{{ site.baseurl }}/images/thumbnails/{{ project.image }}" alt="">
{% endif %}
<h2><a href="{{ site.baseurl }}{{ project.url }}">{{ project.title }}</a></h2>
{{ project.short | markdownify | truncatewords: 20 }}
</p>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
...@@ -24,7 +24,7 @@ layout: default ...@@ -24,7 +24,7 @@ layout: default
{% include project-list.html %} {% include project-list.html %}
<a href="http://chaotikum.org/projekte:unsere_projekte">Weitere Projekte in unserem Wiki.</a> <a href="https://chaotikum.org/projects/archive">Alle Projekte finden sich im Archiv.</a>
</div> </div>
{% if page.aside == true %}{% include site-aside.html %}{% endif %} {% if page.aside == true %}{% include site-aside.html %}{% endif %}
......
---
layout: default
---
{% include site-header.html %}
<main class="main container">
<div class="content">
<article class="article article--page typeset">
{% if paginator.projects %}
{% assign collectiondata = site.collections | where: "label", page.collectionpage | first %}
{{ collectiondata.description | markdownify }}
{% else %}
<h1>{{ page.title }}</h1>
{{ content }}
{% endif %}
</article>
{% include project-archive.html %}
<a href="http://chaotikum.org/projekte:unsere_projekte">Weitere Projekte in unserem Wiki.</a>
</div>
{% if page.aside == true %}{% include site-aside.html %}{% endif %}
</main>
{% include site-footer.html %}
...@@ -32,6 +32,13 @@ columns { ...@@ -32,6 +32,13 @@ columns {
margin: 0; margin: 0;
} }
.box {
display: inline-block;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
@media (min-width: 960px) { @media (min-width: 960px) {
#columns { #columns {
-webkit-column-count: 4; -webkit-column-count: 4;
......
---
layout: projectsarchive
permalink: projects/archive/
collectionpage: projects
aside: false
---
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment