Skip to content

Commit

Permalink
Merge pull request #34 from Promptus-Imperii/feature/sort-on-date
Browse files Browse the repository at this point in the history
Feature/sort on date
  • Loading branch information
TeaDrinkingProgrammer authored Jun 30, 2024
2 parents a2ba600 + c5a2f2d commit 44107ae
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion content/nl/activities/2022-afsluiting-p1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Afsluiting periode 1"
# Please add a good description and title (see the about us page). Google uses it to recommend the website
description: "De eerste periode hebben we afgesloten met een knaller. In de avond hebben we ons verzameld voor “Vier Hoog”, het entertainment centrum in Breepark Breda."
date: 2023-10-27T00:00:00
date: 2022-10-27T00:00:00
# This path is relative to the assets folder. Create a folder that is assets/images/activities/file-name
# IMPORTANT! The file name/folder name may not contain capital letters!
image_folder: "images/activities/2022-afsluiting-p1"
Expand Down
2 changes: 1 addition & 1 deletion content/nl/activities/2022-fmi-tech-challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Challenge Event FMI"
# Please add a good description and title (see the about us page). Google uses it to recommend the website
description: "Promptus Imperii-leden hebben bij FMI ImProvia een challenge gedaan waarbij ze een kop van een snakerobot mochten ontwerpen."
date: 2023-12-05T00:00:00
date: 2022-12-05T00:00:00
# This path is relative to the assets folder. Create a folder that is assets/images/activities/file-name
# IMPORTANT! The file name/folder name may not contain capital letters!
image_folder: "images/activities/2022-fmi-tech-challenge"
Expand Down
2 changes: 1 addition & 1 deletion content/nl/activities/2022-kerstdiner.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Promptus Imperii Kerstdiner en -gala 2022"
# Please add a good description and title (see the about us page). Google uses it to recommend the website
description: "Promptus Imperii Kerstdiner en -gala 2022"
date: 2023-12-23T00:00:00
date: 2022-12-23T00:00:00
# This path is relative to the assets folder. Create a folder that is assets/images/activities/file-name
# IMPORTANT! The file name/folder name may not contain capital letters!
image_folder: "images/activities/2022-kerstdiner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title: "PLC-lezing Batenburg IAS"
# Please add a good description and title (see the about us page). Google uses it to recommend the website
description: "PLC-lezing Batenburg IAS"
date: 2023-10-20T00:00:00
date: 2022-10-20T00:00:00
# This path is relative to the assets folder. Create a folder that is assets/images/activities/file-name
# IMPORTANT! The file name/folder name may not contain capital letters!
image_folder: "images/activities/2023-plc-lezing-batenburg-ias"
image_folder: "images/activities/2022-plc-lezing-batenburg-ias"
image: "1__IMG-20230517-WA0037.jpg"
# Don't forget capital letters in the categories and tags. Also check all categories and tags by loading the activities page and looking at the list.
categories: ["Bedrijfsbezoek"]
Expand Down
2 changes: 1 addition & 1 deletion content/nl/activities/2022-soldeerworkshop.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Soldeerworkshop"
# Please add a good description and title (see the about us page). Google uses it to recommend the website
description: "Soldeerworkshop."
date: 2023-11-29T00:00:00
date: 2022-11-29T00:00:00
# This path is relative to the assets folder. Create a folder that is assets/images/activities/file-name
# IMPORTANT! The file name/folder name may not contain capital letters!
image_folder: "images/activities/2022-soldeerworkshop"
Expand Down
2 changes: 1 addition & 1 deletion content/nl/activities/2022-stagemarkt-breda-robotics.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Bedrijvenmarkt Breda Robotics"
# Please add a good description and title (see the about us page). Google uses it to recommend the website
description: "Dit jaar waren wij weer welkom bij de stagemarkt van Breda Robotics. Hier hebben we kennis kunnen maken met veel
technische bedrijven die op zoek zijn naar studenten die een stageplek zoeken."
date: 2023-11-20T00:00:00
date: 2022-11-20T00:00:00
# This path is relative to the assets folder. Create a folder that is assets/images/activities/file-name
# IMPORTANT! The file name/folder name may not contain capital letters!
image_folder: "images/activities/2022-stagemarkt-breda-robotics"
Expand Down
4 changes: 2 additions & 2 deletions themes/hugoplate/layouts/activities/list.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{{ define "main" }}
{{ partial "page-header" . }}


<section class="section">
<div class="container">
<div class="row gx-5">
<!-- blog posts -->
<div class="lg:col-8">
<div class="row">
{{ $paginator:= .Paginate .RegularPages }}
{{ $sortedPages := sort .RegularPages "Date" "desc" }}
{{ $paginator := .Paginate $sortedPages }}
{{ range $paginator.Pages }}
<div class="md:col-6 mb-14">
{{ partial "components/blog-card" . }}
Expand Down

0 comments on commit 44107ae

Please sign in to comment.