mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
feat(article): add render-link hook
This commit is contained in:
parent
a4d388c0f0
commit
a1250ee75f
2 changed files with 4 additions and 2 deletions
|
@ -301,8 +301,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a.link {
|
||||||
border-bottom: 1px solid var(--accent-color);
|
|
||||||
box-shadow: 0px -2px 0px var(--accent-color) inset;
|
box-shadow: 0px -2px 0px var(--accent-color) inset;
|
||||||
|
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
|
3
layouts/_default/_markup/render-link.html
Normal file
3
layouts/_default/_markup/render-link.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<a class="link" href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"
|
||||||
|
{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"
|
||||||
|
{{ end }}>{{ .Text | safeHTML }}</a>
|
Loading…
Reference in a new issue