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:
authorAntoine Prouvost <AntoinePrv@users.noreply.github.com>2019-08-03 11:49:54 +0300
committerHadi Sinaee <3697216+hadisinaee@users.noreply.github.com>2019-08-03 11:49:54 +0300
commitacab25521fe31ce4662aa5811e2316ebfd377d83 (patch)
tree627513f878389afbf1810426e014728163fefea3
parent709394f8e1318e79939f4ee37c19e71ae564405a (diff)
Fix spacing for non ref pub; Do not display project if empty (#7)
-rw-r--r--layouts/partials/projects.html2
-rw-r--r--layouts/partials/publications.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html
index 30e5b9c..b9f0fe1 100644
--- a/layouts/partials/projects.html
+++ b/layouts/partials/projects.html
@@ -1,4 +1,5 @@
<div class="introduction">
+ {{ with .Site.Params.projects }}
<h4>Projects</h4>
<ul>
{{- range $index, $projects_map := .Site.Params.projects -}}
@@ -30,4 +31,5 @@
{{- end -}}
</ul>
+ {{ end }}
</div>
diff --git a/layouts/partials/publications.html b/layouts/partials/publications.html
index 1cd0a12..d4ece99 100644
--- a/layouts/partials/publications.html
+++ b/layouts/partials/publications.html
@@ -10,7 +10,7 @@
{{ if $publication.link }}
<a href="{{ $publication.link }}" class="publications"> {{ $publication.name }}, </a>
{{ else }}
- <p class="publications">{{ $publication.name }},</p>
+ <p class="publications"> {{ $publication.name }}, </p>
{{ end }}
{{ $publication.dest | markdownify }}.