Hi @gettalong 👋🏻 Long time listener, first time caller. Love the gem.
Exploring header_links today, I have two questions:
-
Is there a way to specify what the content of the header_link's <a> will be?
# something like this:
header_links: { content: '@' }, …
-
Is there a way to specify putting the header_link's <a> after the heading tag's content?
# something like this:
header_links: { position: :end }, …
Currently
<h1 id='introduction'>
<a href='#introduction'>
Introduction
</h1>
Requested
header_links: { content: '@', position: :end }, …
<h1 id='introduction'>
Introduction
<a href='#introduction'>
</h1>
Defaults
content — default to '', as it is now
position — default to :start, as it is now
Attribute names
I'm indifferent to before/after, start/end, etc. And position, order, etc.
I used position and content just for demonstration.
Hi @gettalong 👋🏻 Long time listener, first time caller. Love the gem.
Exploring
header_linkstoday, I have two questions:Is there a way to specify what the content of the
header_link's<a>will be?Is there a way to specify putting the
header_link's<a>after the heading tag's content?Currently
# IntroductionRequested
# IntroductionDefaults
content— default to'', as it is nowposition— default to:start, as it is nowAttribute names
I'm indifferent to
before/after,start/end, etc. Andposition,order, etc.I used
positionandcontentjust for demonstration.