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..55ec4ea8 100644 --- a/layouts/portfolio/list.html +++ b/layouts/portfolio/list.html @@ -8,7 +8,11 @@ {{ end }}" > {{ $anchorTitle := delimit (split .title " ") "" }} +

{{ title .title }}

+ {{ if .description }} +

{{ .description }}

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