diff --git a/_helpers/dropwrap.js b/_helpers/dropwrap.js new file mode 100644 index 0000000..744c6ae --- /dev/null +++ b/_helpers/dropwrap.js @@ -0,0 +1,22 @@ +var cheerio = require('cheerio') + +module.exports = (function (content) { + $ = cheerio.load(content) + + // var lead = $('p').get(0) + // var dropcap = lead.substring(0, 1) + // lead = dropcap + + // $('p:first-child').get(0).prepend($('').html(dropacp)) + + // $lead + // .html(dropcap.substring(1)) + // .addClass('dropcap-container') + // .attr('data-dropcap', $(dropcap).text()) + // .prepend($('') + // .html(dropcap) + // .addClass('dropcap js-dropcap')) + + + return $.html() +}) diff --git a/_templates/post.hbs b/_templates/post.hbs index 38a2111..b094883 100644 --- a/_templates/post.hbs +++ b/_templates/post.hbs @@ -27,7 +27,11 @@