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

This commit is contained in:
Robert Kaussow 2022-03-23 21:20:40 +01:00 committed by GitHub
parent 6dbc315a99
commit 85f5d63f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

1
.gitignore vendored
View File

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

View File

@ -3,13 +3,13 @@
<!-- prettier-ignore-start --> <!-- prettier-ignore-start -->
{{- if $showAnchor -}} {{- if $showAnchor -}}
<div class="gblog-post__anchorwrap"> <div class="gblog-post__anchorwrap flex align-center">
<h{{ .Level }} id="{{ .Anchor | safeURL }}"> <h{{ .Level }} id="{{ .Anchor | safeURL }}">
{{ .Text | safeHTML }} {{ .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 }}> </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> </div>
{{- else -}} {{- else -}}
<div class="gblog-post__anchorwrap"> <div class="gblog-post__anchorwrap">

View File

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