🏗️ Finish post reward widget coding.
This commit is contained in:
@@ -9,8 +9,9 @@
|
||||
{{- end }}
|
||||
<div class="post-eof"></div>
|
||||
{{- else }}
|
||||
{{ partial "post/post_copyright.html" . }}
|
||||
{{ partial "post/post_followme.html" . }}
|
||||
{{ partial "post/post_footer/post_reward.html" . }}
|
||||
{{ partial "post/post_footer/post_copyright.html" . }}
|
||||
{{ partial "post/post_footer/post_followme.html" . }}
|
||||
<div class="post-nav">
|
||||
<div class="post-nav-next post-nav-item">
|
||||
{{- with .NextInSection }}
|
||||
|
||||
21
layouts/partials/post/post_footer/post_reward.html
Normal file
21
layouts/partials/post/post_footer/post_reward.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- with .Site.Params.rewardSets }}
|
||||
{{- if .enable }}
|
||||
<div class="reward-container">
|
||||
<div>{{- .comment | safeHTML -}}</div>
|
||||
<button>
|
||||
{{- T "RewardDonate" -}}
|
||||
</button>
|
||||
<div class="post-reward">
|
||||
{{- range $name,$img := $.Site.Params.reward }}
|
||||
{{- $fw := substr $name 0 1 }}
|
||||
{{- $pay := replace $name $fw ($fw | upper) 1 }}
|
||||
{{- $payName := T (printf "Reward%s" $pay) }}
|
||||
<div class="post-reward-item">
|
||||
<img src="{{ $img }}" alt="{{ $.Site.Params.author }} - {{ $payName }}">
|
||||
<span>{{ $payName }}</span>
|
||||
</div>
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user