Skip to content

Conversation

@mkgl
Copy link
Member

@mkgl mkgl commented Jul 10, 2025

e.g. when pasting links into Confluence, Slack, etc. (previously they would all show "Magnolia CMS docs")

this PR also aims to support standard Asciidoc :description: and :keywords: attributes if set on pages.

mkgl added 6 commits July 10, 2025 15:22
…late adds meta tags as it should

* Align meta tags with standard Asciidoctor compilation
* Rebase head-info template from antora-ui-default (detag, triple braces)
* Remove description from head-meta
* Set Open Graph og:title and og:description meta tags
* Align with page title
uiModel.page.layout = doc.getAttribute('page-layout', 'default')
uiModel.page.title = doc.getDocumentTitle()
uiModel.page.description = doc.getAttribute('description')
uiModel.page.keywords = doc.getAttribute('keywords')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to do add description, keywords etc. into uiModel in this preview-site, specifically. Not sure where that would go in the real Antora deal, based on the docs, those attributes should be present, need to verify that. 🤞

https://docs.antora.org/antora/latest/page/title-and-metadata/#page-description-and-keywords

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants