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

github.com/hadisinaee/avicenna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadi Sinaee <3697216+hadisinaee@users.noreply.github.com>2019-08-19 18:33:56 +0300
committerGitHub <noreply@github.com>2019-08-19 18:33:56 +0300
commit79e71ee99fd9bbbb23eef5ef701a75d4e56f0ed6 (patch)
treeed8d1c3e64c8f047dcb54311db68c5e79e331944
parentb14099207d1205cea1cf0de61ea52afe5e2dbd7a (diff)
fix: empty publications are not shown (#11)
close #10
-rw-r--r--layouts/partials/publications.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/publications.html b/layouts/partials/publications.html
index d4ece99..01277da 100644
--- a/layouts/partials/publications.html
+++ b/layouts/partials/publications.html
@@ -1,7 +1,8 @@
<div class="introduction">
+ {{ with .Site.Params.publications }}
<h4>Publications</h4>
- {{- range $index, $publications := .Site.Params.publications -}}
+ {{- range $index, $publications := $.Site.Params.publications -}}
<div class="year">{{ $publications.year }}</div>
<ul>
@@ -33,4 +34,5 @@
{{ end }}
</ul>
{{- end -}}
+ {{- end -}}
</div>