From eae97f330473b7120bd58d2ceb8ffa9e2ffa72cc Mon Sep 17 00:00:00 2001 From: "Kerby Martino (aider)" Date: Thu, 8 May 2025 13:20:12 +0800 Subject: [PATCH] feat: Create standalone merits page with filter/sort UI --- _layouts/merits.liquid | 110 +++++++++++++++++++++++++++++++++++++++++ pages/merits.md | 6 +++ 2 files changed, 116 insertions(+) create mode 100644 _layouts/merits.liquid create mode 100644 pages/merits.md diff --git a/_layouts/merits.liquid b/_layouts/merits.liquid new file mode 100644 index 0000000..ffc5c71 --- /dev/null +++ b/_layouts/merits.liquid @@ -0,0 +1,110 @@ +--- +layout: default # Assuming 'default' is your base layout +--- +
+

{{ page.title | default: "Merit History" }}

+ + +
+
+ +
+ + + + + +
+ + +
+ + +
+
+
+ + +
+ {% comment %} + TODO: Implement Liquid logic for filtering and sorting actual merit data. + This would involve: + 1. Accessing the merit data (e.g., from site.data.merit_events or a collection). + 2. Applying filters based on URL parameters or JavaScript-driven selections. + 3. Sorting the filtered data. + 4. Iterating over the processed data to display merit items. + For now, static examples are shown below. + {% endcomment %} + + {% assign static_merit_events_for_demo = true %} + + {% if static_merit_events_for_demo %} + + {% else %} +
+

No merit activity found matching your criteria.

+ {% comment %} Or:

You have no merit activity yet.

{% endcomment %} +
+ {% endif %} +
+ + + {% if static_merit_events_for_demo %} +
+ +
+ {% endif %} + +
+{{ content }} diff --git a/pages/merits.md b/pages/merits.md new file mode 100644 index 0000000..2efadb8 --- /dev/null +++ b/pages/merits.md @@ -0,0 +1,6 @@ +--- +layout: merits +title: "My Merit History" +# This page will display a list of merit activities. +# Filters and sorting options will be available to navigate the history. +---