Skip to content

Commit

Permalink
🐛 Update amp.hbs image helper and meta (#8659)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aileen authored and kirrg001 committed Jul 6, 2017
1 parent 827aa15 commit c49e840
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/server/apps/amp/lib/views/amp.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

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

{{!-- Mobile Meta --}}
<meta name="HandheldFriendly" content="True" />
Expand Down Expand Up @@ -810,9 +809,9 @@
<time class="post-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="YYYY-MM-DD"}}</time>
</section>
</header>
{{#if image}}
{{#if feature_image}}
<figure class="post-image">
<amp-img src="{{image absolute="true"}}" width="600" height="400" layout="responsive"></amp-img>
<amp-img src="{{img_url feature_image absolute="true"}}" width="600" height="400" layout="responsive"></amp-img>
</figure>
{{/if}}
<section class="post-content">
Expand Down

0 comments on commit c49e840

Please sign in to comment.