diff options
author | Kishan B <bkishan@thoughtworks.com> | 2018-03-12 20:20:31 +0300 |
---|---|---|
committer | Kishan B <bkishan@thoughtworks.com> | 2018-03-12 20:20:31 +0300 |
commit | 0e3cf88cc6f17c43d99514b0d42a22fc38c3839f (patch) | |
tree | 3d3d0d6f095890f1b0e3622ebb79cbf21fd70a27 | |
parent | 5d25fd41af64e0e18859cbe3446df12c73660be9 (diff) |
Use description field if available for summary generation. Fixes #38
-rw-r--r-- | layouts/partials/portfolio.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html index 7e5fd1f..64e407e 100644 --- a/layouts/partials/portfolio.html +++ b/layouts/partials/portfolio.html @@ -21,7 +21,13 @@ {{ end }} <h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4> <div class="box-masonry-description"> - <p>{{ .Summary }}</p> + <p> + {{ if .Description }} + {{ .Description }} + {{ else }} + {{ .Summary }} + {{ end }} + </p> </div> </div> </div> |