Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #183 from Financial-Times/main-img-a-title
Browse files Browse the repository at this point in the history
Put title on to anchor
  • Loading branch information
debugwand authored Mar 28, 2018
2 parents 390a113 + d506129 commit a9dd8dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/partials/main-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
{{else}}
aria-hidden="true"
tabindex="-1"
title="{{@nTeaserPresenter.data.title}}"
{{/if}}
>
{{#ifEquals lazyLoad false}}
{{#nImagePresenter srcSet=@nTeaserPresenter.displayImage.url placeholder=@nTeaserPresenter.displayImage.ratio alt=@nTeaserPresenter.data.title colspan=colspan position=position widths=widths lazyLoad=false wrapperClasses="o-teaser__image-placeholder" classes="o-teaser__image" sourceParam=@nTeaserPresenter.displayImage.sourceParam}}
{{#nImagePresenter srcSet=@nTeaserPresenter.displayImage.url placeholder=@nTeaserPresenter.displayImage.ratio colspan=colspan position=position widths=widths lazyLoad=false wrapperClasses="o-teaser__image-placeholder" classes="o-teaser__image" sourceParam=@nTeaserPresenter.displayImage.sourceParam}}
{{> n-image/templates/image}}
{{/nImagePresenter}}
{{else}}
{{#nImagePresenter srcSet=@nTeaserPresenter.displayImage.url placeholder=@nTeaserPresenter.displayImage.ratio alt=@nTeaserPresenter.data.title colspan=colspan position=position widths=widths lazyLoad=true wrapperClasses="o-teaser__image-placeholder" classes="o-teaser__image" sourceParam=@nTeaserPresenter.displayImage.sourceParam}}
{{#nImagePresenter srcSet=@nTeaserPresenter.displayImage.url placeholder=@nTeaserPresenter.displayImage.ratio colspan=colspan position=position widths=widths lazyLoad=true wrapperClasses="o-teaser__image-placeholder" classes="o-teaser__image" sourceParam=@nTeaserPresenter.displayImage.sourceParam}}
{{> n-image/templates/image}}
{{/nImagePresenter}}
{{/ifEquals}}
Expand Down

0 comments on commit a9dd8dd

Please sign in to comment.