mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-23 21:50:38 +00:00
fix: fix missing spaces while using links in headlines (#224)
This commit is contained in:
parent
6dbc315a99
commit
85f5d63f29
1
.gitignore
vendored
1
.gitignore
vendored
@ -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/
|
||||||
|
@ -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 }}
|
||||||
|
</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 }}">
|
<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>
|
<svg class="icon gblog_link"><use xlink:href="#gblog_link"></use></svg>
|
||||||
</a>
|
</a>
|
||||||
</h{{ .Level }}>
|
|
||||||
</div>
|
</div>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<div class="gblog-post__anchorwrap">
|
<div class="gblog-post__anchorwrap">
|
||||||
|
@ -104,8 +104,6 @@ h4,
|
|||||||
h5,
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h4,
|
h4,
|
||||||
|
Loading…
Reference in New Issue
Block a user