Baham's Blog

Above all else, guard your heart.

Octopress Add Original Link After Post Version2

I alreay use this tool, since I found it online. It is really cool and useful. And does not affect the overall layout of the page.

But when I saw the source code of the orignal link.

I found a bug. I did not know why very clearly. But luckily, I still fix it.

You can find the old code in octopress-seo-tool.

The Bug is:

<a href="url" rel="something"></a>
<a href="url">The url's title</a>

And I change some codes.

Add original link version 2

add original link version 2 diff
1
2
3
4
5
6
7
<p class='post-footer' style="font-size:70%;" >
<br/>
<br/>
<br/>
#{pre or "The Original Link:"}[#{post.full_url}](#{post.url})<br/>
If you want to reprint it, please do under the  <a rel="nofollow" href=#{license}>#{lic_name}</a>
</p>




The Original Link: http://baham.github.io/05_08_add-original-link.html
If you want to reprint it, please do under the CC BY-NC-SA 4.0

Comments