Skip to content

Commit

Permalink
Introduce necessary conditional logic to avoid putting in empty field…
Browse files Browse the repository at this point in the history
…s on some publications.
  • Loading branch information
jcoo092 committed Jul 20, 2023
1 parent a33a58d commit b1d05c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion data/publications.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
{
"abstract": "Direct enforcement of security in personal property by creditors is primarily governed in New Zealand by three statutes, depending on the details of the security: the Personal Property Securities Act 1999, the Property Law Act 2007 and the Credit (Repossession) Act 1997. These statutes do not always fit together neatly, arguably without benefit, and this article will critique some of the differences between the statutes, and suggest some possible improvements that could be made. Some familiarity with the three Acts is assumed.",
"authors": "James Cooper",
"key": "nzblq",
"title": "Direct Enforcement of Security in Personal Property in New Zealand: Unhelpful Differences Between Acts",
"venue": "New Zealand Business Law Quarterly 19(1)",
"year": 2013
Expand Down
12 changes: 7 additions & 5 deletions layouts/shortcodes/publications.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@
<br/>
{{ index $pub "authors" }}
<br/>
<em>{{index $pub "venue" }}. {{index $pub "year" }}.</em>
<em>{{index $pub "venue" }}. {{index $pub "year" }}.</em>
<br/>
{{ $doi := index $pub "doi" }}
DOI: <a href="https://doi.org/{{ $doi }}">{{ $doi }}</a>
{{ with $doi := index $pub "doi" }}
DOI: <a href="https://doi.org/{{ $doi }}">{{ $doi }}</a>
<br/>
{{ end }}
<details>
<summary>Abstract</summary>
<blockquote>
{{ index $pub "abstract" }}
</blockquote>
</details>
{{ $key := index $pub "key" }}
<a href="{{ .Site.BaseURL }}/publications/{{ $key }}.bib">bibtex</a>
{{ with $key := index $pub "key" }}
<a href="{{ $.Site.BaseURL }}/publications/{{ $key }}.bib">bibtex</a>
{{ end }}
</li>
{{ end }}
</ul>
Expand Down

0 comments on commit b1d05c6

Please sign in to comment.