diff --git a/site/publications.ejs b/site/publications.ejs
index a884dba..3053dfe 100644
--- a/site/publications.ejs
+++ b/site/publications.ejs
@@ -1,163 +1,71 @@
```{=html}
-
-
-
-
+
<%
// Group items by year
let currentYear = null;
for (const item of items) {
- let doiurl = item.url === "" ? "https://doi.org/" + item.doi : item.url;
- let bibtitle = item.title.replace(/'/g, "\\'");
- let bibauthors = item.authors.replace(/'/g, "\\'");
- let bibtex = item.bibtex.replace(/'/g, "\\'").replace(/\"/g, '"').replace(/\r?\n/g, "\\n");
+ let gh = "https://github.com/computorg/" + item.repo;
+ let pageurl = item.url ? item.url : "https://doi.org/" + item.doi;
+ // Mock contributions carry a placeholder DOI (10.57750/xxx-xxx): no DOI, no reviews, no archive
+ let hasdoi = item.doi && !item.doi.includes("xxx");
+ let pdfurl = item.pdf ? item.pdf : (item.url ? item.url.replace(/\/?$/, "/") + "main.pdf" : "");
if (item.year !== currentYear) {
if (currentYear !== null) { %>
<% } %>
<%= item.year %>
-
+
<% currentYear = item.year;
} %>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <% if (item.authors) { %>
-
<%= item.authors %>
- <% } %>
-
-
Computo, <%= item.year %>.
-
<%= doiurl %>
-
-
-
-
-
+
+
+ <% if (item.authors) { %>
+
<%= item.authors %>
+ <% } %>
+
Computo, <%= item.year %>.<% if (hasdoi) { %> https://doi.org/<%= item.doi %><% } %>
+
+
HTML
+ <% if (pdfurl) { %>
+
PDF
+ <% } %>
+
Code
+ <% if (hasdoi) { %>
+
Reviews
+
Archive
+ <% } %>
+ <% if (item.bibtex) { %>
+
+ <% } %>
+
+
+
<% } %>
<% if (currentYear !== null) { %>
<% } %>
-
-
-
-
-
-
-
-
-
-
+
```