Skip to content

Commit

Permalink
Merge pull request #2 from voxmedia/mn-add-amp-url
Browse files Browse the repository at this point in the history
Add amp link tag to <head> in template
  • Loading branch information
lsirivong authored Jan 13, 2022
2 parents 6d6772c + fc41b36 commit 44a82ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v2.2.0

- Add conditional rendering of AMP url to <head> in layout.erb

# v2.1.0

- Add csk_asset_host to customize the asset_host extension for the csk's
Expand Down
4 changes: 4 additions & 0 deletions template/source/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@

<%= partial('layouts/newsarticleschema') %>

<% if data.content.entry.ampUrl %>
<link rel="amphtml" href="<%= data.content.entry.ampUrl %>"/>
<% end %>

<%# Favicons %>
<link rel="icon" type="image/png" href="<%= data.content.community.favicon32 %>" sizes="32x32">
<link rel="icon" type="image/png" href="<%= data.content.community.favicon192 %>" sizes="192x192">
Expand Down

0 comments on commit 44a82ed

Please sign in to comment.