This commit is contained in:
parent
4b35583782
commit
e77051ccc4
1987 changed files with 1147290 additions and 5648 deletions
19
themes/blowfish/layouts/partials/meta/edit.html
Normal file
19
themes/blowfish/layouts/partials/meta/edit.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{{ $url := .Params.editURL | default (.Site.Params.article.editURL | default "#") }}
|
||||
{{ $slash := "" }}
|
||||
{{ if .Params.editAppendPath | default ( .Site.Params.article.editAppendPath | default false ) }}
|
||||
{{ if ne (substr $url -1 1) "/" }}
|
||||
{{ $slash = "/" }}
|
||||
{{ end }}
|
||||
{{ $url = printf "%s%s%s" $url $slash (path.Join .File.Path) }}
|
||||
{{ end }}
|
||||
<span class="mb-[2px]">
|
||||
<a
|
||||
href="{{ $url }}"
|
||||
class="text-lg hover:text-primary-500"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
title="{{ i18n "article.edit_title" }}"
|
||||
><span class="inline-block align-text-bottom">{{ partial "icon.html" "edit" }}</span></a
|
||||
>
|
||||
</span>
|
||||
{{- /* Trim EOF */ -}}
|
Loading…
Add table
Add a link
Reference in a new issue