pixelastic / norska

🏔️ Custom SSG using Pug, Webpack, PostCSS and Tailwind.
https://projects.pixelastic.com/norska/
MIT License
8 stars 0 forks source link

Automatically add excerpt in description for markdown files #121

Open pixelastic opened 3 years ago

pixelastic commented 3 years ago

The markdown conversion should automatically create an excerpt from the file and set it as the description meta tag.

I should grab all paragraphs of the page, extract the text from each (thus excluding images and other tags), then truncate it.