# Code Blocks in Octopress Atom Feeds

| Comments |

## Problem

After I re-generated this site, it is possible that the code blocks and the pictures in the RSS feeds are gone.

Remark: One can view the original file on GitHub by clicking “View Raw”.

Sometimes, I was unaware of this, especially after writing a simple post that could surely be correctly parsed by kramdown. When I saw something like what’s shown in the above code block in a category feed page in this blog on the Internet, this error had already published.

## A “fix” to the above problem

Re-generate the site again, and wait for luck so that the above incorrect HTML code will be finally transformed to a correct one.

Then one can deploy it to the Internet.

## Solution

As I am not an IT student nor staff, I don’t know the reason. Therefore, what I can do doesn’t differ much from the above “fix”: check if the locally generated HTML source code for /blog/category/foo/atom.xml is OK.

\$ diff -u public/blog/categories/latex/atom.xml _deploy/blog/categories/latex/at
om.xml
--- public/blog/categories/latex/atom.xml       2015-02-14 13:42:46.645744300 +0
800
+++ _deploy/blog/categories/latex/atom.xml      2015-01-18 16:33:33.341309330 +0
800
@@ -4,7 +4,7 @@
<title><![CDATA[Category: Latex | Blog 1]]></title>
<link href="http://vincenttam.github.io/blog/categories/latex/atom.xml" rel="
self"/>
<link href="http://vincenttam.github.io/"/>
-  <updated>2015-02-14T13:41:37+08:00</updated>
+  <updated>2015-01-18T16:32:04+08:00</updated>
<id>http://vincenttam.github.io/</id>
<author>
<name><![CDATA[Vincent Tam]]></name>


In the above situation, I assume that the previous version of the RSS feed is correct.