:lipstick:🔧 Update the post meta info.

This commit is contained in:
凡梦星尘
2023-01-01 22:06:59 +08:00
parent 85b7dc11ca
commit dca196c315
11 changed files with 65 additions and 78 deletions

View File

@@ -1,7 +1,7 @@
{{ with .ctx }}
{{ if $.IsHome }} <h2 {{ else }} <h1 {{ end }} class="post-title" itemprop="name headline">
{{ if and .Weight (gt .Weight 0) }}
<span class="post-sticky-flag" title="{{ T "PostStickyTitle" }}">
<span class="post-sticky-flag" title="{{ T "PostMeta.sticky" }}">
<i class="fa fa-thumbtack"></i>
</span>
{{ end }}
@@ -18,7 +18,7 @@
{{ .Title }}
{{ if .Site.Params.postEdit.enable }}
{{ $editURL := printf "%s%s" .Site.Params.postEdit.url (path.Clean .File.Path) }}
<a href="{{ $editURL }}" rel="noopener external nofollow noreferrer" target="_blank" class="exturl post-edit-link" title="{{ T "PostEditTitle" }}"><i class="fa fa-pen-nib"></i></a>
<a href="{{ $editURL }}" rel="noopener external nofollow noreferrer" target="_blank" class="exturl post-edit-link" title="{{ T "PostMeta.edit" }}"><i class="fa fa-pen-nib"></i></a>
{{ end }}
{{ end }}
{{ if $.IsHome }} </h2> {{ else }} </h1> {{ end }}