Skip to content

Commit c49e840

Browse files
aileenkirrg001
authored andcommitted
🐛 Update amp.hbs image helper and meta (#8659)
no issue Seems like we forgot to update the AMP template to reflect our image helper changes. - Replaces `{{image}}` helper with `{{img_url}}` for `feature_image` - Removes `{{meta_description}}` helper
1 parent 827aa15 commit c49e840

File tree

1 file changed

+2
-3
lines changed
  • core/server/apps/amp/lib/views

1 file changed

+2
-3
lines changed

core/server/apps/amp/lib/views/amp.hbs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
{{!-- Page Meta --}}
88
<title>{{meta_title}}</title>
9-
<meta name="description" content="{{meta_description}}" />
109

1110
{{!-- Mobile Meta --}}
1211
<meta name="HandheldFriendly" content="True" />
@@ -810,9 +809,9 @@
810809
<time class="post-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="YYYY-MM-DD"}}</time>
811810
</section>
812811
</header>
813-
{{#if image}}
812+
{{#if feature_image}}
814813
<figure class="post-image">
815-
<amp-img src="{{image absolute="true"}}" width="600" height="400" layout="responsive"></amp-img>
814+
<amp-img src="{{img_url feature_image absolute="true"}}" width="600" height="400" layout="responsive"></amp-img>
816815
</figure>
817816
{{/if}}
818817
<section class="post-content">

0 commit comments

Comments
 (0)