bastibe / org-static-blog

A static site generator using org-mode
BSD 3-Clause "New" or "Revised" License
341 stars 74 forks source link

Generate meta descriptions for posts for better SEO. #94

Closed whatacold closed 3 years ago

whatacold commented 3 years ago

https://en.wikipedia.org/wiki/Meta_element#The_description_attribute has some info about meta description of HTML.

bastibe commented 3 years ago

Thank you for the pull request! I like it!

Do you think we should add the #+description to the new-post template in org-static-blog-create-new-post as well? You might need to add a sanity check in org-static-blog-get-description that returns nil if the description is empty or contains only whitespace.

whatacold commented 3 years ago

Hmm, haven't noticed to org-static-blog-create-new-post.

Since #+filetags is also generated anyway, I think we can add an empty#+description there initially, but I'm not sure whether folks will be confused by it if they aren't familiar with it, it will add some mind burden to them.

whatacold commented 3 years ago

Hi Bastian,

I just polish it a bit, tell me what you think:)

bastibe commented 3 years ago

Brilliant, this looks good!

Tell me when you're ready, and I'll happily merge it. Thank you very much for your contribution!

whatacold commented 3 years ago

I think that's all, also thank you for this simple and intuitive package, I'm glad I can help:)