We need to update the docs to mention that the :post|:page :description is available, to document the config option description-include-elements and its default of #{:p :h1 :h2 :h3 :h4 :h5 :h6}, and to document that you can specify a custom :description in the page metadata block or :description false to disable it.
LGTM. Will you be doing the template and doc updates as well? I'm happy to merge this in now, but want to hold off on publishing to clojars until we get those two things done.
so that they can use it in
<meta name=description ..>
and for previews on Fb/Slack/.. e.g. via<meta property=og:description ...>
.The new post/page
:description
is derived from the HTML previews, by default including text fromp
andhN
tags.You want to use it as
{{post.description}}
in a template.Updating templates
When this is merged, we should update templates as follows:
Updating docs
We need to update the docs to mention that the
:post|:page :description
is available, to document the config optiondescription-include-elements
and its default of#{:p :h1 :h2 :h3 :h4 :h5 :h6}
, and to document that you can specify a custom:description
in the page metadata block or:description false
to disable it.