feat(article): add render-link hook
This commit is contained in:
@@ -301,8 +301,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
border-bottom: 1px solid var(--accent-color);
|
||||
a.link {
|
||||
box-shadow: 0px -2px 0px var(--accent-color) inset;
|
||||
|
||||
transition: all 0.3s ease;
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user