Set pathname /opml as a pathname for OPML;

Add a message to be displayed upon empty content;
Add more error handlings;
Fix error related to Markdown parsing;
Fix error related to Atom Syndication Format;
Thank you roughnecks.
This commit is contained in:
Schimon Jehudah, Adv. 2024-07-12 16:50:59 +03:00
parent d1f1edbaca
commit 694c8bb489
4 changed files with 87 additions and 28 deletions

View file

@ -23,7 +23,7 @@ window.onload = async function(){
element.textContent = timeStamp.toUTCString();
}
// Parse Markdown
for (let element of document.querySelectorAll('#articles > ul > li > div > p[type="text"]')) {
for (let element of document.querySelectorAll('#articles div[type="text"]')) {
let markDown = element.textContent
element.innerHTML = marked.parse(markDown);
}
@ -64,7 +64,7 @@ window.onload = async function(){
{'text' : 'Browse the journal.',
'href' : `atom?pubsub=${pubsub}&node=${node}`},
{'text' : 'Browse the portal.',
'href' : `atom?pubsub=${pubsub}`}
'href' : `opml?pubsub=${pubsub}`}
]
for (let link of links) {
let elementLi = document.createElement('li');