Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kishaningithub/hugo-creative-portfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishan B <bkishan@thoughtworks.com>2018-03-12 20:20:31 +0300
committerKishan B <bkishan@thoughtworks.com>2018-03-12 20:20:31 +0300
commit0e3cf88cc6f17c43d99514b0d42a22fc38c3839f (patch)
tree3d3d0d6f095890f1b0e3622ebb79cbf21fd70a27
parent5d25fd41af64e0e18859cbe3446df12c73660be9 (diff)
Use description field if available for summary generation. Fixes #38
-rw-r--r--layouts/partials/portfolio.html8
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>