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

Commit

Permalink
Merge pull request #896 from Financial-Times/fix-article-syndication
Browse files Browse the repository at this point in the history
Fix syndication on article pages
  • Loading branch information
leafrogers committed Mar 29, 2017
2 parents 899c85f + b737bef commit d83a813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/n-ui/syndication/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ function updateTeaser (teaser, createSyndicator){

function updateMainArticle (article, createSyndicator){
const syndicationStatus = article.getAttribute('data-syndicatable');
const container = article.querySelector('.article-headline');
//TODO: Use data-attributes instead of relying on HTML classes
const container = article.querySelector('.topper__headline') || article.querySelector('.article-headline');
const title = container.querySelector('.article-classifier__gap');
const uuid = article.getAttribute('data-content-id');
container.insertBefore(createSyndicator(uuid, title, syndicationStatus), title);
Expand Down

0 comments on commit d83a813

Please sign in to comment.