From fc41b364b3355b0366f1e042c9bcd18a6c41bdbc Mon Sep 17 00:00:00 2001 From: Miriam Nadler Date: Wed, 27 Oct 2021 16:36:15 -0400 Subject: [PATCH] TOOLS-651 Add ampUrl link tag to layout.erb if present in content.json --- CHANGELOG.md | 4 ++++ template/source/layouts/layout.erb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80282ed..57cb27d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v2.2.0 + +- Add conditional rendering of AMP url to in layout.erb + # v2.1.0 - Add csk_asset_host to customize the asset_host extension for the csk's diff --git a/template/source/layouts/layout.erb b/template/source/layouts/layout.erb index 3f76122..2aa1640 100644 --- a/template/source/layouts/layout.erb +++ b/template/source/layouts/layout.erb @@ -48,6 +48,10 @@ <%= partial('layouts/newsarticleschema') %> + <% if data.content.entry.ampUrl %> + + <% end %> + <%# Favicons %>