fix: fix missing spaces while using links in headlines (#224)

pull/225/head
Robert Kaussow 5 months ago committed by GitHub
parent 6dbc315a99
commit 85f5d63f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .gitignore
  2. 8
      layouts/_default/_markup/render-heading.html
  3. 2
      src/sass/_base.scss

1
.gitignore vendored

@ -8,6 +8,7 @@
/exampleSite/themes/
/exampleSite/public/
CHANGELOG.md
.hugo_build.lock
# auto-generated files
/data/

@ -3,13 +3,13 @@
<!-- prettier-ignore-start -->
{{- if $showAnchor -}}
<div class="gblog-post__anchorwrap">
<div class="gblog-post__anchorwrap flex align-center">
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
{{ .Text | safeHTML }}
<a data-clipboard-text="{{ .Page.Permalink }}#{{ .Anchor | safeURL }}" class="gblog-post__anchor gblog-post__anchor--right clip" aria-label="Anchor {{ .Text | safeHTML }}" href="#{{ .Anchor | safeURL }}">
<svg class="icon gblog_link"><use xlink:href="#gblog_link"></use></svg>
</a>
</h{{ .Level }}>
<a data-clipboard-text="{{ .Page.Permalink }}#{{ .Anchor | safeURL }}" class="gblog-post__anchor gblog-post__anchor--right clip" aria-label="Anchor {{ .Text | safeHTML }}" href="#{{ .Anchor | safeURL }}">
<svg class="icon gblog_link"><use xlink:href="#gblog_link"></use></svg>
</a>
</div>
{{- else -}}
<div class="gblog-post__anchorwrap">

@ -104,8 +104,6 @@ h4,
h5,
h6 {
font-weight: 600;
display: flex;
align-items: center;
}
h4,

Loading…
Cancel
Save