feat: add rss feed and remove rev feature
This commit is contained in:
parent
3937d8fd75
commit
5356e2dbb4
8 changed files with 268 additions and 13 deletions
|
|
@ -1,7 +1,6 @@
|
|||
const CLEARNET_HOST = "jetpham.com";
|
||||
const ONION_HOST =
|
||||
"jet7tetd43snvjx3ng5jrhuwm2yhyp76tjtct5mtofg64apokcgq7fqd.onion";
|
||||
const COMMIT_BASE_URL = "https://git.extremist.software/jet/website/commit/";
|
||||
const REPO_URL = "https://git.extremist.software/jet/website";
|
||||
|
||||
function isOnionHost(hostname: string): boolean {
|
||||
|
|
@ -26,17 +25,15 @@ export function renderFooter() {
|
|||
const footer = document.getElementById("site-footer");
|
||||
if (!footer) return;
|
||||
|
||||
const commitSha = __COMMIT_SHA__;
|
||||
const shortSha = commitSha.slice(0, 7);
|
||||
const mirror = getMirrorLink();
|
||||
|
||||
footer.innerHTML = `
|
||||
<div class="site-panel px-[2ch] py-[1ch]">
|
||||
<div class="site-footer-inner">
|
||||
<span>rev <a href="${COMMIT_BASE_URL}${commitSha}">${shortSha}</a></span>
|
||||
<span aria-hidden="true">|</span>
|
||||
<a href="${REPO_URL}">src</a>
|
||||
<span aria-hidden="true">|</span>
|
||||
<a href="/qa/rss.xml" data-native-link>rss</a>
|
||||
<span aria-hidden="true">|</span>
|
||||
<a href="/pgp.txt" data-native-link>pgp</a>
|
||||
<span aria-hidden="true">|</span>
|
||||
<a href="/ssh.txt" data-native-link>ssh</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue