punch-blog icon indicating copy to clipboard operation
punch-blog copied to clipboard

custom helper for post page

Open constantx opened this issue 11 years ago • 1 comments

hi @laktek,

I'm trying to write a custom helper that will return the first paragraph on a individual post page, (to be used in a <meta name="description"). Looking at index_helper.js, I kinda know how to do it, but not sure how to hook it into the individual post content page.

Any hint?


#chargedByZenHub

constantx avatar Feb 14 '14 04:02 constantx

My attempt with a block helper, though I feel it's a bit clumsy: https://github.com/axiomzen/axioms.io/commit/415fab1f943fc132bcc5b29b76c2036dc910b8ad

Would love your feedback ;)

constantx avatar Feb 15 '14 01:02 constantx