middleman / middleman-asciidoc

:beginner: AsciiDoc support for Middleman 4. (In Middleman 3, AsciiDoc support is provided by a core extension).
https://middlemanapp.com
Other
27 stars 12 forks source link

Method to promote custom AsciiDoc attributes to page data #94

Closed FiveYellowMice closed 8 months ago

FiveYellowMice commented 3 years ago

Right now, attributes other than doctitle, author, authors, email, revdate, keywords, description can only become page data if they are prepend with page-. But it would be nice to have an extension option of additional attributes to promote to page data without the page- prefix. For example, writing page-tags attributes in a blog article feels weird because tags feel like properties of the article itself rather than properties of the generated webpage (unlike page-layout).

mojavelinux commented 3 years ago

Yes, I like the idea of having the ability to specify additional attributes to auto promote.

FiveYellowMice commented 3 years ago

Hi, I have created a PR on #98, do you mind reviewing it?