diff --git a/_includes/project-archive.html b/_includes/project-archive.html new file mode 100644 index 0000000000000000000000000000000000000000..a611019ebe8de37518e0c7326eb4785b473e9733 --- /dev/null +++ b/_includes/project-archive.html @@ -0,0 +1,19 @@ +<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> diff --git a/_layouts/projects.html b/_layouts/projects.html index e57094092d91528e47c035e228afe34179a927ee..ea83bc892f53f2c4ef383451677fe79c6e7cbb75 100644 --- a/_layouts/projects.html +++ b/_layouts/projects.html @@ -24,7 +24,7 @@ layout: default {% 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> {% if page.aside == true %}{% include site-aside.html %}{% endif %} diff --git a/_layouts/projectsarchive.html b/_layouts/projectsarchive.html new file mode 100644 index 0000000000000000000000000000000000000000..31a2bd3a5a1e37dda1cb603ccc965b8f04a22949 --- /dev/null +++ b/_layouts/projectsarchive.html @@ -0,0 +1,34 @@ +--- +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 %} diff --git a/assets/projects.css b/assets/projects.css index 5bc820162625e9fe10fd764dea2b200cd2fc740b..ba65e116dde3d333ff1abcc9f0568f4f4f64887e 100644 --- a/assets/projects.css +++ b/assets/projects.css @@ -32,6 +32,13 @@ columns { margin: 0; } +.box { + display: inline-block; + padding: 20px; + border: 1px solid #ccc; + border-radius: 5px; +} + @media (min-width: 960px) { #columns { -webkit-column-count: 4; diff --git a/projectarchive.md b/projectarchive.md new file mode 100644 index 0000000000000000000000000000000000000000..8d962c8983b2a8e01a6736aeb02b78f68bf58989 --- /dev/null +++ b/projectarchive.md @@ -0,0 +1,6 @@ +--- +layout: projectsarchive +permalink: projects/archive/ +collectionpage: projects +aside: false +---