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

github.com/gohugoio/hugoThemesSite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandros <onedrawingperday@users.noreply.github.com>2019-11-22 11:07:13 +0300
committerGitHub <noreply@github.com>2019-11-22 11:07:13 +0300
commiteb2fde06266e3a193cb7109481cc5e626feea467 (patch)
treef19c3bbc807afc36ac4a5f3ae617d099d52807f8
parentfe54ba8ec9057305e80388e5a760c5532dda9535 (diff)
Add support for multiple authors (#65)
See: https://github.com/gohugoio/hugoThemes/issues/242
-rw-r--r--layouts/partials/theme-details.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/theme-details.html b/layouts/partials/theme-details.html
index 162f99b..69b06d8 100644
--- a/layouts/partials/theme-details.html
+++ b/layouts/partials/theme-details.html
@@ -15,6 +15,18 @@
{{ end }}
{{ end }}
+ {{ with .Params.authors }}
+ <li class="mb2">
+ <span class="label">
+ Authors:
+ </span>
+ {{ range . }}
+ {{with .homepage}}<a href="{{.}}">{{else}}<span class="value">{{end}}{{.name}}
+ {{with .homepage}}</a>{{else}}</span>{{end}}
+ {{ end }}
+ </li>
+ {{ end }}
+
{{ with .Params.min_version }}
<li class="mb2">
<span class="label">Minimum Hugo Version:</span> <span class="value">{{ . }}</span>