Runtime error: invalid memory address or nil pointer dereference

It’s a bug in the theme…

diff --git a/layouts/partials/publication_links.html b/layouts/partials/publication_links.html
index 1b21ef1..802e9db 100644
--- a/layouts/partials/publication_links.html
+++ b/layouts/partials/publication_links.html
@@ -31,10 +31,12 @@
 {{ end }}
 {{ if $.Params.projects }}
     {{ range $.Params.projects }}
-<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ ($.Site.GetPage "page" "project" .).Permalink }}">
+        {{ with ($.Site.GetPage "page" "project" .) }}
+            <a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ .Permalink }}">
                 {{ i18n "btn_project" }}
             </a>
         {{ end }}
+    {{ end }}
 {{ else }}
     {{ with $.Params.url_project }}
         <a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absLangURL }}" target="_blank" rel="noopener">

The above change fixes it.

The problem was that it was trying to get a page “foo” under the “project/” section where you would have project = "foo" in your front-matter. But even if that page did not exist under project/ section, it would try to get .Permalink out of that… effectively doing nil.Permalink. Now that .Permalink step happens only if the .GetPage succeeds.