mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
- Move out of line by using already defined css classes - Move paddings out of line - Move margins out of line - Move z-indexes out of line - Move center-relative-left out of line
11 lines
620 B
HTML
11 lines
620 B
HTML
{{ $anchor := anchorize .Anchor }}
|
|
<h{{ .Level }} class="relative group">{{ .Text | safeHTML }}
|
|
<div id="{{ $anchor }}" class="anchor"></div>
|
|
{{ if .Page.Params.showHeadingAnchors | default (.Page.Site.Params.article.showHeadingAnchors | default true) }}
|
|
<span
|
|
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
|
|
<a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#{{ $anchor }}" aria-label="{{ i18n "article.anchor_label" }}">#</a>
|
|
</span>
|
|
{{ end }}
|
|
</h{{ .Level }}>
|