Fix spacing for non ref pub; Do not display project if empty (#7)

This commit is contained in:
Antoine Prouvost 2019-08-03 04:49:54 -04:00 committed by Hadi Sinaee
parent 709394f8e1
commit acab25521f
2 changed files with 3 additions and 1 deletions

View File

@ -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>

View File

@ -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 }}.