Skip to content

Commit

Permalink
Merge pull request #8 from 2color/patch-1
Browse files Browse the repository at this point in the history
Select the first leading element for draft titles
  • Loading branch information
jamischarles authored Sep 23, 2019
2 parents 830255c + b21496a commit e908b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async function gatherPostData(content, options, filePath) {
else {
// construct a canonical link
var canonicalLink = $('footer > p > a').attr('href');
var blogTitle = $(".graf--leading").text()
var blogTitle = $(".graf--leading").first().text()
var titleForSlug = convertToSlug(blogTitle)
}

Expand Down

0 comments on commit e908b65

Please sign in to comment.