The New Feed


Experimentation continues.

I have finished testing my rss for my blog, and it appears to be working. Additionally, I coded a script that, after much debugging, should show the latest 3 blog posts on the homepage. I may later create a webpage that shows all the content. As this is my first time using javascript, it was a bit of a pain.

Note: As of this moment, that script is not working all the time.

Problems Encountered

There is one specific problem that I consistently ran into that led to me coding my own link reader. Basically, it would double up on the link to my homepage, so instead of mimicschest.info/blog/blogpost.html, it would instead generate mimicschest.info/mimicschest.info/blog/blogpost.html. I assume this was because it was taking the rss link, and applying it to the local file structure when appending the link. Why it would do that remains a mystery, but a simple fix was implemented that simply replaced 'mimicschest.info' with '', thus erasing it, leaving me with '/blog/blogpost.html'. 

Another problem that I encountered was when turning the rss items in the xml file into an array. It kept not working, and after coding in some console debugging stuff, I caught the error. It wasn't outputting as an array properly; I had to convert it from an html something or other (I forgot the exact term) and that fixed it.

Note: I have scrapped the script. It was not loading all the items of the xml file.