feat(author): add author_link and fix highlight bug

This commit is contained in:
Dillon
2020-02-01 01:52:27 +08:00
parent 2a7611b5ae
commit 8aa4b6dce6
22 changed files with 136 additions and 110 deletions

View File

@@ -1,10 +1,10 @@
<a href="{{ .Destination | safeURL }}"
{{- with .Title -}}
{{ with .Title -}}
title="{{ . }}"
{{- end -}}
{{- if strings.HasPrefix .Destination "http" -}}
{{ end -}}
{{ if strings.HasPrefix .Destination "http" -}}
target="_blank"
{{- end -}}
{{ end -}}
>
{{- .Text -}}
</a>