@@ -15,13 +15,14 @@ for (const item of items) {
1515 < div class = " row year-section" >
1616 < % currentYear = item .year ;
1717 } % >
18+ < a id= " <%= item.repo %>" class = " publication-anchor" >< / a>
1819 < div class = " col-12 mb-3" >
1920 < div class = " card" >
2021 < div class = " card-body" >
21- < div class = " row align-items-center border-left border-primary " >
22+ < div class = " row align-items-center" >
2223 < div class = " col-md-2" >
2324 < a href= " https://github.com/computorg/<%- item.repo %>" target= " _blank" >
24- < img style = " width:100px; " src= https: // img.shields.io/github/actions/workflow/status/computorg/<%- item.repo %>/build.yml?label=build&logo=github" class="img-fluid" alt="Build Status">
25+ < 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" >
2526 < / a>
2627 < / div>
2728 < div class = " col-md-10" >
@@ -137,5 +138,27 @@ for (const item of items) {
137138 // Show a temporary alert
138139 alert (' BibTeX citation copied to clipboard!' );
139140 }
141+
142+ document .addEventListener (" DOMContentLoaded" , function () {
143+ if (window .location .hash ) {
144+ var el = document .getElementById (window .location .hash .substring (1 ));
145+ if (el) {
146+ el .scrollIntoView ({ behavior: " auto" , block: " center" });
147+ }
148+ }
149+ });
150+ document .addEventListener (" DOMContentLoaded" , function () {
151+ function scrollToAnchor () {
152+ if (window .location .hash ) {
153+ var el = document .getElementById (window .location .hash .substring (1 ));
154+ if (el) {
155+ el .scrollIntoView ({ behavior: " auto" , block: " center" });
156+ }
157+ }
158+ }
159+ // Try immediately, then again after a short delay (for mobile/layout shifts)
160+ scrollToAnchor ();
161+ setTimeout (scrollToAnchor, 400 );
162+ });
140163< / script>
141164` ` `
0 commit comments