Skip to content

Commit

Permalink
🔧 Chore: delete deprecated parameters home.profile.gravatarSite and…
Browse files Browse the repository at this point in the history
… `ibruce.siteTime`
  • Loading branch information
Lruihao committed May 19, 2022
1 parent 179cdbe commit a7c3055
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 2 additions & 3 deletions layouts/partials/assets.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,8 @@
{{- end -}}

{{- /* Site creation time */ -}}
{{- /* TODO: The parameter `ibruce.siteTime` will be deleted in v0.2.15 */ -}}
{{- if .Site.Params.ibruce.siteTime | or .Site.Params.footer.siteTime -}}
{{- $config = dict "siteTime" (.Site.Params.ibruce.siteTime | default .Site.Params.footer.siteTime) | merge $config -}}
{{- if .Site.Params.footer.siteTime -}}
{{- $config = dict "siteTime" .Site.Params.footer.siteTime | merge $config -}}
{{- end -}}

{{- /* PWA */ -}}
Expand Down
5 changes: 2 additions & 3 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@
</div>
{{- end -}}

{{- /* TODO: The parameter `ibruce.siteTime` will be deleted in v0.2.15 */ -}}
{{- if .Site.Params.ibruce.siteTime | or .Site.Params.footer.siteTime | or .Site.Params.footer.wordCount -}}
{{- if .Site.Params.footer.siteTime | or .Site.Params.footer.wordCount -}}
<div class="footer-line statistics">
{{- if .Site.Params.ibruce.siteTime | or .Site.Params.footer.siteTime -}}
{{- if .Site.Params.footer.siteTime -}}
<span class="site-time" title='{{ T "siteRunning" }}'><i class="fa-solid fa-heartbeat fa-fw animate-icon"></i>&nbsp;<span class="run-times">{{- T "siteRunning" -}}</span></span>
{{- end -}}

Expand Down
3 changes: 1 addition & 2 deletions layouts/partials/home/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
{{- $avatar := $profile.avatarURL -}}
{{- if $profile.gravatarEmail -}}
{{- $gravatar := .Site.Params.gravatar -}}
{{- /* TODO: The parameter `home.profile.gravatarSite` will be deleted in v0.2.15 */ -}}
{{- with $gravatar -}}
{{- $avatar = printf "https://%v/avatar/%v?s=240&d=%v"
($profile.gravatarSite | default .Host | default "www.gravatar.com")
(.Host | default "www.gravatar.com")
(md5 $profile.gravatarEmail)
(.Style | default "mp")
-}}
Expand Down

0 comments on commit a7c3055

Please sign in to comment.