[ https://issues.apache.org/jira/browse/MSITE-801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16246975#comment-16246975 ]
Allen Wittenauer commented on MSITE-801: ---------------------------------------- I didn't try img because, yes, as you guessed, they are characters from a font. The way we implemented them on the Yetus site via Middleman was to use a CSS embedded in the a element. For example, like this (simplified to remove excess, irrelevant stuff): {code} <a href="https://twitter.com/ApacheYetus"><i class="fa fa-twitter"></i> @ApacheYetus</a> {code} While I recognize that the skin-specific custom section exists, it's kind of awful to have to effectively re-implement the built-in menu stuff just because we want to add a few custom characters to some of the menus. The easiest way to do this would (obviously) be to support html in the href of the menu item, especially since we want to be able to set different characters for different items. But I can understand why that might be problematic for any skins that are doing some sort of size calculation on the item length. So I agree that a custom attribute would be great and then skins can implement whatever custom features they want in that attribute. > Expand features in site.xml for menus > ------------------------------------- > > Key: MSITE-801 > URL: https://issues.apache.org/jira/browse/MSITE-801 > Project: Maven Site Plugin > Issue Type: New Feature > Reporter: Allen Wittenauer > Priority: Minor > > The short story is that I'm looking for a way to configure FontAwesome icons > in menu items. > (for an example, see https://yetus.apache.org/ 's Get Involved menu as built > with Middleman 3.) > Since that's rather specific :), there does seem to be a feature gap here. It > would be really useful if site.xml parsing could support either optional > fields to pass to skins, allow HTML elements in menu items, or some other way > that this could be accomplished. -- This message was sent by Atlassian JIRA (v6.4.14#64029)