2017-12-06 12:34:22 +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">
|
2017-09-16 09:28:23 +00:00
|
|
|
{{- $lang := .Site.Data.even.default }}
|
2017-08-27 14:38:42 +00:00
|
|
|
<input type="checkbox" name="reward" id="reward" hidden />
|
2017-09-16 09:28:23 +00:00
|
|
|
<label class="reward-button" for="reward">{{ $lang.posts.reward }}</label>
|
2017-08-27 14:38:42 +00:00
|
|
|
<div class="qr-code">
|
|
|
|
{{ $qrCode := .Site.Params.reward }}
|
|
|
|
{{ with $qrCode.wechat }}
|
|
|
|
<label class="qr-code-image" for="reward">
|
2017-09-16 09:28:23 +00:00
|
|
|
<img class="image" src="{{ . }}">
|
|
|
|
<span>{{ $lang.posts.rewardWechat }}</span>
|
2017-08-27 14:38:42 +00:00
|
|
|
</label>
|
|
|
|
{{- end }}
|
|
|
|
{{ with $qrCode.alipay }}
|
|
|
|
<label class="qr-code-image" for="reward">
|
2017-09-16 09:28:23 +00:00
|
|
|
<img class="image" src="{{ . }}">
|
|
|
|
<span>{{ $lang.posts.rewardAlipay }}</span>
|
2017-08-27 14:38:42 +00:00
|
|
|
</label>
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{- end }}
|