88let currentYear = null ;
99for (const item of items) {
1010 let doiurl = item .url === " " ? " https://doi.org/" + item .doi : item .url ;
11+ let bibtitle = item .title .replace (/ '/ g , " \\ '" );
12+ let bibauthors = item .authors .replace (/ '/ g , " \\ '" );
1113 if (item .year !== currentYear) {
1214 if (currentYear !== null ) { % >
1315< / div> <!-- End previous year section -->
@@ -23,27 +25,34 @@ for (const item of items) {
2325 < div class = " row align-items-start" > <!-- align- items- start for top alignment -->
2426 < div class = " col-md-2 col-3 d-flex flex-column justify-content-start align-items-start p-0 badge-left-align" > <!-- left- aligned, no padding -->
2527 < a href= " https://github.com/computorg/<%- item.repo %>" target= " _blank" style= " margin-left:0;" >
26- < img src= " https://img.shields.io/github/actions/workflow/status/computorg/<%- item.repo %>/build.yml?label=build&logo=github" class = " img-fluid" alt= " Build Status" style= " vertical-align: top; margin-top: 0; margin-left:-20px; margin-top:5px; display:block;" / >
28+ < img src= " https://img.shields.io/github/actions/workflow/status/computorg/<%- item.repo %>/build.yml?label=build&logo=github" class = " img-fluid" alt= " Build Status" style= " margin-top: 0; margin-left:-20px; margin-top:5px; display:block;" / >
2729 < / a>
2830 < / div>
2931 < div class = " col-md-10 col-9 pl-1" >
30- < h5 class = " card-title mb-1" style= " font-size:1.1em;" >
32+ <!-- < h5 class = " card-title mb-1" style= " font-size:1.1em;" >
3133 < a href= " <%= doiurl %>" data- toggle= " modal" data- target= " #articleModal" class = " text-decoration-none" >< %= item .title % >< / a>
34+ < / h5> -->
35+ < h5 class = " card-title mb-1" style= " font-size:1.1em;" >
36+ < a href= " <%= doiurl %>" target= " _blank" >< %= item .title % >< / a>
3237 < / h5>
3338 < % if (item .authors ) { % >
3439 < p class = " text-muted mb-1" style= " font-size:0.97em;" >< %= item .authors % >< / p>
3540 < % } % >
36- < p class = " text-muted mb-2" style= " font-size:0.95em;" >< em> Computo< / em> , < %= item .year % > .< / p>
41+ < div class = " d-flex justify-content-between align-items-center mb-2" style= " font-size:0.95em;" >
42+ < span class = " text-muted" >< em> Computo< / em> , < %= item .year % > .< / span>
43+ < span class = " text-muted text-right" style= " font-size:0.95em; white-space:nowrap;" >< em>< a href= " <%= doiurl %>" target= " _blank" >< %= doiurl % >< / a>< / em>< / span>
44+ < / div>
3745 < div class = " btn-group btn-group-sm" role= " group" aria- label= " Article actions" >
38- < % if (item[" abstract'" ] && item[" abstract'" ].trim ()) { % >
46+ < a href= " <%= doiurl %>" data- toggle= " modal" data- target= " #articleModal" class = " btn btn-outline-secondary btn-sm" > Preview< / a>
47+ <!-- < % if (item[" abstract'" ] && item[" abstract'" ].trim ()) { % >
3948 < button type= " button" class = " btn btn-outline-secondary btn-sm" data- toggle= " modal" data- target= " #abstractModal" data- abstract= " <%- item[" abstract' "].replace(/"/g, ' & quot;' ) %>" data-title="<%- item.title.replace(/"/g, ' & quot;' ) %>" style="padding:0.2em 0.6em;">ABS</button>
40- <% } %>
41- <a href="<%= doiurl %>" class="btn btn-outline-secondary btn-sm" target="_blank" style="padding:0.2em 0.6em;">HTML</a>
42- <% if (item.pdf && item.pdf.trim()) { %>
49+ <% } %> -->
50+ <!-- < a href="<%= doiurl %>" class="btn btn-outline-secondary btn-sm" target="_blank" style="padding:0.2em 0.6em;">HTML</a> -- >
51+ <!-- < % if (item.pdf && item.pdf.trim()) { %>
4352 <a href="<%= item.pdf %>" class="btn btn-outline-secondary btn-sm" target="_blank" style="padding:0.2em 0.6em;">PDF</a>
44- <% } %>
45- <a href="https://github.com/computorg/<%- item.repo %>" class="btn btn-outline-secondary btn-sm" target="_blank" style="padding:0.2em 0.6em;">GIT REPO </a>
46- <button type="button" class="btn btn-outline-secondary btn-sm" onclick="generateBibTex(' < %- item . title . replace ( / ' / g , " \\ ' " ) % > ' , ' < %- item . authors . replace ( / ' / g , " \\ ' " ) % > ' , ' < %= item .year % > ' , ' < %= doiurl % > ' )" style="padding:0.2em 0.6em;">BIB </button>
53+ <% } %> -->
54+ <a href="https://github.com/computorg/<%- item.repo %>" class="btn btn-outline-secondary btn-sm" target="_blank" style="padding:0.2em 0.6em;">Sources (Git) </a>
55+ <button type="button" class="btn btn-outline-secondary btn-sm" onclick="generateBibTex(' < %- bibtitle % > ' , ' < %- bibauthors % > ' , ' < %= item .year % > ' , ' < %= doiurl % > ' )" style="padding:0.2em 0.6em;"><span style="font-variant: small-caps; font-family: ' Times New Roman ' , Times, serif;">Bib<span style="vertical-align: -0.2em;">T</span><span style="vertical-align: 0em;">E</span>X</span> </button>
4756 </div>
4857 </div>
4958 </div>
0 commit comments