lib/octopress-linkblog.rb in octopress-linkblog-2.0.1 vs lib/octopress-linkblog.rb in octopress-linkblog-2.0.2
- old
+ new
@@ -35,10 +35,11 @@
def post_init(post)
add_post_vars(post)
end
def add_post_vars(post)
- linkpost = post.data['external-url']
+ # Grab external url from post data, reading dashed value for legacy pattern support
+ linkpost = post.data['external_url'] || post.data['external-url']
post.data['title'].titlecase! if Linkblog.config['titlecase']
if linkpost
config = Linkblog.config['linkpost']