Baham's Blog

Above all else, guard your heart.

Fix a Bug to Add an Original Link

When you use the original post footer plugin, some bug will happen, I do not know the bug’s detail, but I still find a way to fix it.

Cause when the bug happend, this will show:

post afer footer

The code will show, when the article’s end is a link or a picture.

Why does this happen?

It is the crash of language’s syntax. When you use the octopress to generate the posts, ruby’s script run, and some html’s commna code is not a common code. And the commit’s symbol is different too.

So I modify this plugin to avoid this bug.

I just take place of %Q{} with <<_here2start _here2start

And now, the code after the article will not show, and just show the normal content.

Like the below. And the source is here: SEO tool to octopress




The Original Link: http://baham.github.io/05_01_21-24-octopress-orinal-link-bug-fix.html
If you want to reprint it, please do under the CC BY-NC-SA 4.0

Comments