hugo-theme-even/layouts/partials/post/reward.html

22 lines
789 B
HTML
Raw Normal View History

{{ 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">
{{- $lang := .Site.Data.even.default }}
2017-08-27 14:38:42 +00:00
<input type="checkbox" name="reward" id="reward" hidden />
<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">
<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">
<img class="image" src="{{ . }}">
<span>{{ $lang.posts.rewardAlipay }}</span>
2017-08-27 14:38:42 +00:00
</label>
{{- end }}
</div>
</div>
{{- end }}