mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-11-29 15:08:46 +03:00
improve: add fixes/suggestions from panr
This commit is contained in:
parent
e8fdb4e084
commit
ff3aa2316b
7 changed files with 9 additions and 8 deletions
|
@ -28,7 +28,7 @@
|
|||
{{ end }}
|
||||
|
||||
<div class="post-content">
|
||||
{{- with .Content -}}
|
||||
{{- with .Content -}}
|
||||
<div>
|
||||
{{ . | replaceRE "(<h[1-9] id=\"([^\"]+)\".+)(</h[1-9]+>)" `${1}<a href="#${2}" class="hanchor" ariaLabel="Anchor"> ⌗</a> ${3}` | safeHTML }}
|
||||
</div>
|
||||
|
|
|
@ -100,9 +100,10 @@
|
|||
}
|
||||
|
||||
.hanchor {
|
||||
font-size: 100%;
|
||||
color: color-mod(var(--accent) alpha(90%));
|
||||
text-decoration: none;
|
||||
margin-left: 10px;
|
||||
visibility: hidden;
|
||||
color:silver;
|
||||
}
|
||||
|
||||
h1:hover a, h2:hover a, h3:hover a, h4:hover a {
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue