Skip to content

Commit

Permalink
fix: only use entry-title selector when only one entry-title exists (#…
Browse files Browse the repository at this point in the history
…178)

* fix: only use entry-title selector when only one entry-title exists

* Update index.js
  • Loading branch information
StevenFrostwick authored and Kikobeats committed Jun 8, 2019
1 parent 3d9f0ae commit 83aec6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metascraper-title/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = () => ({
wrap($ => $('meta[property="og:title"]').attr('content')),
wrap($ => $('meta[name="twitter:title"]').attr('content')),
wrap($ => $('.post-title').text()),
wrap($ => $('.entry-title').text()),
wrap($ => $filter($, $('.entry-title'))),
wrap($ => $('h1[class*="title" i] a').text()),
wrap($ => $('h1[class*="title" i]').text()),
wrap($ => $filter($, $('title')))
Expand Down

0 comments on commit 83aec6f

Please sign in to comment.