From 7437f202dab2d23311e44ddf01bb626c36a70aef Mon Sep 17 00:00:00 2001 From: Lorenzo Balzani Date: Thu, 29 Feb 2024 20:09:04 +0100 Subject: [PATCH 1/2] portfolio: add portfolio category descriptions --- exampleSite/data/portfolio.yml | 2 ++ layouts/portfolio/list.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/exampleSite/data/portfolio.yml b/exampleSite/data/portfolio.yml index 639708bf..f1b54ce2 100644 --- a/exampleSite/data/portfolio.yml +++ b/exampleSite/data/portfolio.yml @@ -1,6 +1,7 @@ portfolioitems: # portfolio category - title: Coding Projects + description: 'All my coding projects' portfolioitem: - name: Project 1 image: '/images/portfolio/code.jpg' @@ -33,6 +34,7 @@ portfolioitems: - Tag 2 # portfolio category - title: Research + description: 'All my research projects' portfolioitem: - name: Project 1 image: '/images/portfolio/code.jpg' diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html index f6e41e67..523c195a 100644 --- a/layouts/portfolio/list.html +++ b/layouts/portfolio/list.html @@ -8,7 +8,9 @@ {{ end }}" > {{ $anchorTitle := delimit (split .title " ") "" }} +

{{ title .title }}

+

{{ .description }}

{{ range $i, $p := .portfolioitem }}
{{ if .image }} From a8acf776d8f1adac1b6415b092eefb7c0957797e Mon Sep 17 00:00:00 2001 From: Lorenzo Balzani Date: Thu, 29 Feb 2024 20:17:22 +0100 Subject: [PATCH 2/2] portfolio: portofolio category descriptions are optional --- layouts/portfolio/list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html index 523c195a..55ec4ea8 100644 --- a/layouts/portfolio/list.html +++ b/layouts/portfolio/list.html @@ -10,7 +10,9 @@ {{ $anchorTitle := delimit (split .title " ") "" }}

{{ title .title }}

+ {{ if .description }}

{{ .description }}

+ {{ end }} {{ range $i, $p := .portfolioitem }}
{{ if .image }}