Using JavaScript to integrate RSS feeds into your static website

Since you are using static HTML, JavaScript is pretty much the only way to dynamically include information into your pages. This has one big drawback, which is that any JavaScript-generated content is essentially invisible to search engines. To any search engine, your page will appear as if the JavaScript content wasn't even there -- so it won't see links to other pages, etc.

One of the best, easiest solutions is to make use of the University of Koln's RSSxpress-Lite service.

For example, the script tag for a JavaScript feed of this site looks like this:


<script src="http://rssxpress.ukoln.ac.uk/lite/viewer/?rss=http%3A%2F%2Fwww.bmannconsulting.com%2Fnode%2Ffeed">&lt/script>
<noscript>
<a href="http://rssxpress.ukoln.ac.uk/lite/viewer/?rss=http%3A%2F%2Fwww.bmannconsulting.com%2Fnode%2Ffeed">View </a>
</noscript>

To generate your own JavaScript code snippet for a feed of your choice, visit the RSS-xpress Lite page and enter the URL of your desired feed. Upon submission, it will display a customized code snippet, as well as instructions for styling the feed output using CSS.

Simply paste the JavaScript code into your HTML page, wherever you want the RSS feed displayed.