From 16eecf73202bd104fd5b2999ad088ce7808813d1 Mon Sep 17 00:00:00 2001 From: Njeri Gachoka Date: Sun, 31 Mar 2024 18:44:33 -0700 Subject: [PATCH] Add tags to project page --- _layouts/project.html | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/_layouts/project.html b/_layouts/project.html index e138b7d..bb06f40 100644 --- a/_layouts/project.html +++ b/_layouts/project.html @@ -7,7 +7,7 @@

{{ project.title }}

{% if project.subtitle %} -

{{project.subtitle}}

+

{{project.subtitle}}

{% endif %} {% assign project_start_date = project.start_date | date: "%b %Y" %} @@ -16,12 +16,23 @@

{{project.subtitle}}

{% else %} {% assign project_end_date = "present" %} {% endif %} + {% assign project_tags = project.tags %} - {% if project_start_date %} + {% if project_start_date or project_tags %}
-
- -
+ {% if project_start_date %} +
+ +
+ {% endif %} + {% if project_tags %} +
+ tagged: + {% for tag in project_tags %} + #{{ tag }} + {% endfor %} +
+ {% endif %}
{% endif %}
@@ -31,6 +42,8 @@

{{project.subtitle}}

{% endif %} {{ project.content | markdownify }} + + the end \ No newline at end of file