2018-07-09 17:41:34 +00:00
|
|
|
{{ if or .Params.reward (and .Site.Params.reward.enable (ne .Params.reward false)) -}}
|
2017-08-27 14:38:42 +00:00
|
|
|
<div class="post-reward">
|
|
|
|
<input type="checkbox" name="reward" id="reward" hidden />
|
2018-01-31 14:07:50 +00:00
|
|
|
<label class="reward-button" for="reward">{{ T "reward" }}</label>
|
2017-08-27 14:38:42 +00:00
|
|
|
<div class="qr-code">
|
|
|
|
{{ $qrCode := .Site.Params.reward }}
|
2018-07-09 17:41:34 +00:00
|
|
|
{{ with $qrCode.wechat -}}
|
2017-08-27 14:38:42 +00:00
|
|
|
<label class="qr-code-image" for="reward">
|
2017-09-16 09:28:23 +00:00
|
|
|
<img class="image" src="{{ . }}">
|
2018-01-31 14:07:50 +00:00
|
|
|
<span>{{ T "rewardWechat" }}</span>
|
2017-08-27 14:38:42 +00:00
|
|
|
</label>
|
|
|
|
{{- end }}
|
2018-07-09 17:41:34 +00:00
|
|
|
{{ with $qrCode.alipay -}}
|
2017-08-27 14:38:42 +00:00
|
|
|
<label class="qr-code-image" for="reward">
|
2017-09-16 09:28:23 +00:00
|
|
|
<img class="image" src="{{ . }}">
|
2018-01-31 14:07:50 +00:00
|
|
|
<span>{{ T "rewardAlipay" }}</span>
|
2017-08-27 14:38:42 +00:00
|
|
|
</label>
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{- end }}
|