Skip to content

Commit bf57419

Browse files
committed
simplified latest changelog redirection
1 parent f43ec2d commit bf57419

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/server/templates/components/footer.jinja

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,10 @@
1616
{{ footer_icon_link('https://discord.gg/zerRaGK9EC',
1717
'icons/discord.svg',
1818
'Discord') }}
19-
{{ footer_icon_link('https://github.com/coderamp-labs/gitingest/releases/latest',
19+
{{ footer_icon_link('https://github.com/coderamp-labs/gitingest/releases',
2020
'icons/changelog.svg',
2121
'Latest Changelog') }}
2222
</div>
2323
</div>
2424
</div>
25-
<script>
26-
fetch('https://api.github.com/repos/coderamp-labs/gitingest/releases/latest')
27-
.then(response => response.json())
28-
.then(data => {
29-
const changelogLink = document.querySelector('a[href="https://github.com/coderamp-labs/gitingest/releases/latest"]');
30-
if (changelogLink && data.html_url) {
31-
changelogLink.href = data.html_url;
32-
const span = changelogLink.querySelector('span');
33-
if (span) {
34-
span.textContent = `Changelog (${data.tag_name})`;
35-
}
36-
}
37-
});
38-
</script>
3925
</footer>

0 commit comments

Comments
 (0)