feat: add descriptions to portfolio categories (#494)
| | |
| | | portfolioitems: |
| | | # portfolio category |
| | | - title: Coding Projects |
| | | description: 'All my coding projects' |
| | | portfolioitem: |
| | | - name: Project 1 |
| | | image: '/images/portfolio/code.jpg' |
| | |
| | | - Tag 2 |
| | | # portfolio category |
| | | - title: Research |
| | | description: 'All my research projects' |
| | | portfolioitem: |
| | | - name: Project 1 |
| | | image: '/images/portfolio/code.jpg' |
| | |
| | | {{ end }}" |
| | | > |
| | | {{ $anchorTitle := delimit (split .title " ") "" }} |
| | | |
| | | <h2 class="portfolio__title" id="{{ $anchorTitle | lower }}">{{ title .title }}</h2> |
| | | {{ if .description }} |
| | | <h4>{{ .description }}</h4> |
| | | {{ end }} |
| | | {{ range $i, $p := .portfolioitem }} |
| | | <div class="portfolio"> |
| | | {{ if .image }} |