Skip to content

Commit

Permalink
Handle case of a feed not having a title
Browse files Browse the repository at this point in the history
since entry.title is Nil, there is no parameterize method
  • Loading branch information
mscherer committed Mar 23, 2020
1 parent 801c4d2 commit 3478afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ page_classes: planet

%header.post-header

%h2.post-title.entry-title{ id: entry.title.parameterize }
%h2.post-title.entry-title{ id: (entry.title || '').parameterize }
= link_to entry.title, entry.url, {rel: 'nofollow'}

%header.post-meta
Expand Down

0 comments on commit 3478afa

Please sign in to comment.