diff options
author | Antoine Prouvost <AntoinePrv@users.noreply.github.com> | 2019-08-03 11:49:54 +0300 |
---|---|---|
committer | Hadi Sinaee <3697216+hadisinaee@users.noreply.github.com> | 2019-08-03 11:49:54 +0300 |
commit | acab25521fe31ce4662aa5811e2316ebfd377d83 (patch) | |
tree | 627513f878389afbf1810426e014728163fefea3 | |
parent | 709394f8e1318e79939f4ee37c19e71ae564405a (diff) |
Fix spacing for non ref pub; Do not display project if empty (#7)
-rw-r--r-- | layouts/partials/projects.html | 2 | ||||
-rw-r--r-- | layouts/partials/publications.html | 2 |
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 }}. |