mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
866203a4ce
* ✨ Feat: add instant page * 🐛 Fix: donate images without lazy loading * 🔧 Chore: update waline plugin version
25 lines
890 B
HTML
25 lines
890 B
HTML
{{- $reward := .Reward -}}
|
|
{{- $id := .Id -}}
|
|
{{- $author := .Author -}}
|
|
|
|
{{- if $reward.enable -}}
|
|
<div class="post-reward">
|
|
<div class="comment">{{- $reward.comment -}}</div>
|
|
<input type="checkbox" class="reward-input" name="reward" id="{{ $id }}" hidden />
|
|
<label class="reward-button" for="{{ $id }}">{{- T "single.reward.donate" -}}</label>
|
|
<div class="reward-ways">
|
|
{{- range $way, $image := $reward.ways -}}
|
|
{{- with T (printf "single.reward.%v" $way) -}}
|
|
{{- $way = . -}}
|
|
{{- end -}}
|
|
{{- if $image -}}
|
|
<div>
|
|
{{- dict "Src" $image "Alt" (printf "%v %v" $author $way) "Resources" $.Resources | partial "plugin/image.html" -}}
|
|
<span{{- if $reward.animation }} data-animation{{- end -}}>{{- $way -}}</span>
|
|
</div>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</div>
|
|
</div>
|
|
{{- end -}}
|