You can avoid duplication by doing this inline: `<a href=...  <%= 'rel="publisher' if s == "gplus" %>>` may or may not work.