|
@ -11,7 +11,7 @@ module Jekyll |
|
|
if item["href"] |
|
|
if item["href"] |
|
|
classes.push("external") |
|
|
classes.push("external") |
|
|
end |
|
|
end |
|
|
className = classes.size ? "class=\"#{classes.join(' ')}\"" : ""; |
|
|
className = classes.size > 0 ? " class=\"#{classes.join(' ')}\"" : "" |
|
|
|
|
|
|
|
|
return "<a href=\"#{href}\"#{className}>#{item["title"]}</a>" |
|
|
return "<a href=\"#{href}\"#{className}>#{item["title"]}</a>" |
|
|
end |
|
|
end |
|
|