Feat: add local avatar and gravatar support for post author (#125)

This commit is contained in:
Cell
2022-04-27 18:04:00 +08:00
parent 6682ceb4a2
commit e0bbd7f7b8
8 changed files with 68 additions and 15 deletions
+1 -6
View File
@@ -24,12 +24,7 @@
{{- /* Meta */ -}}
<div class="post-meta">
{{- $author := $params.author | default .Site.Author.name | default (T "author") -}}
{{- $authorLink := $params.authorlink | default .Site.Author.link | default .Site.Home.RelPermalink -}}
<span class="post-author">
{{- $options := dict "Class" "author" "Destination" $authorLink "Title" "Author" "Rel" "author" "Icon" (dict "Class" "fas fa-user-circle fa-fw") "Content" $author -}}
{{- partial "plugin/link.html" $options -}}
</span>
{{- partial "single/post-author.html" . -}}
{{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}}
&nbsp;<span class="post-publish" title='{{ "2006-01-02 15:04:05" | $.PublishDate.Format }}'>