style: add description for reward images

release 2.6.1
This commit is contained in:
olOwOlo 2017-09-16 17:28:23 +08:00
parent 247621ee56
commit 2b282fc57c
No known key found for this signature in database
GPG key ID: 456394B6E7A15EA6
11 changed files with 25 additions and 8 deletions

View file

@ -14,6 +14,8 @@ categories = "分类"
toc = "文章目录"
readmore = "阅读更多"
reward = "赞赏支持"
rewardAlipay = "支付宝打赏"
rewardWechat = "微信打赏"
seeMarkDown = "查看本文 Markdown 版本 »"
[posts.header]

View file

@ -14,6 +14,8 @@ categories = "Categories"
toc = "Contents"
readmore = "Read more.."
reward = "Reward"
rewardAlipay = "alipay"
rewardWechat = "wechat"
seeMarkDown = "The Markdown version »"
[posts.header]

View file

@ -14,6 +14,8 @@ categories = "分类"
toc = "文章目录"
readmore = "阅读更多"
reward = "赞赏支持"
rewardAlipay = "支付宝打赏"
rewardWechat = "微信打赏"
seeMarkDown = "查看本文 Markdown 版本 »"
[posts.header]

View file

@ -14,6 +14,8 @@ categories = "Categories"
toc = "Contents"
readmore = "Read more.."
reward = "Reward"
rewardAlipay = "alipay"
rewardWechat = "wechat"
seeMarkDown = "The Markdown version »"
[posts.header]

View file

@ -51,7 +51,7 @@
<link rel="mask-icon" href="{{ "safari-pinned-tab.svg" | relURL }}" color="#5bbad5">
<!-- Styles -->
<link href="{{ "dist/even.min.css?v=2.6.0" | relURL }}" rel="stylesheet">
<link href="{{ "dist/even.min.css?v=2.6.1" | relURL }}" rel="stylesheet">
{{ if .Site.Params.bootcdn -}}
{{ if .Site.Params.fancybox }}<link href="https://cdn.bootcss.com/fancybox/3.1.20/jquery.fancybox.min.css" rel="stylesheet" crossorigin="anonymous">{{ end }}
{{- else if .Site.Params.publicCDN.enable -}}

View file

@ -1,17 +1,20 @@
{{ if and .Site.Params.reward.enable (ne .Params.reward false) }}
<div class="post-reward">
{{- $lang := .Site.Data.even.default }}
<input type="checkbox" name="reward" id="reward" hidden />
<label class="reward-button" for="reward">{{ .Site.Data.even.default.posts.reward }}</label>
<label class="reward-button" for="reward">{{ $lang.posts.reward }}</label>
<div class="qr-code">
{{ $qrCode := .Site.Params.reward }}
{{ with $qrCode.wechat }}
<label class="qr-code-image" for="reward">
<img class="image" src="{{ . }}" title="wechat">
<img class="image" src="{{ . }}">
<span>{{ $lang.posts.rewardWechat }}</span>
</label>
{{- end }}
{{ with $qrCode.alipay }}
<label class="qr-code-image" for="reward">
<img class="image" src="{{ . }}" title="alipay">
<img class="image" src="{{ . }}">
<span>{{ $lang.posts.rewardAlipay }}</span>
</label>
{{- end }}
</div>

View file

@ -13,7 +13,7 @@
<script type="text/javascript" src="{{ "lib/slideout/slideout-1.0.1.min.js" | relURL }}"></script>
{{ if .Site.Params.fancybox }}<script type="text/javascript" src="{{ "lib/fancybox/jquery.fancybox-3.1.20.min.js" | relURL }}"></script>{{ end }}
{{- end }}
<script type="text/javascript" src="{{ "dist/even.min.js?v=2.6.0" | relURL }}"></script>
<script type="text/javascript" src="{{ "dist/even.min.js?v=2.6.1" | relURL }}"></script>
{{- if and (and .Site.Params.mathjax (ne .Params.mathjax false)) (or .IsPage .IsHome) }}
<script type="text/javascript">

View file

@ -38,6 +38,12 @@
min-width: 200px;
width: 40%;
margin-top: 15px;
span {
display: inline-block;
width: 100%;
margin: 8px 0;
}
}
.image {

View file

@ -1,6 +1,6 @@
{
"name": "even-src",
"version": "2.6.0",
"version": "2.6.1",
"description": "even source file",
"main": "index.js",
"scripts": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long