Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de49e16

Browse files
committed
资源也加上
1 parent 617637d commit de49e16

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

template/common/promotion.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<p>入群交流(和以上内容无关):Go中文网 QQ 交流群:798786647 或加微信入微信群:274768166 备注:入群;关注公众号:<a href="javascript:void(0)" title="" target="_self">Go语言中文网<img width="16" src="https://weixin.sogou.com/new/pc/images/ico_ewm.png"></a></p>
33
<span style="display: none;" class="qrcode-pop">
44
关注Go语言中文网<br>
5-
<img src="{{.static.domain}}/static/img/wx_sg_qrcode.jpg?imageView2/2/w/280" alt="关注微信" class="img-responsive">
5+
<img src="{{.static_domain}}/static/img/wx_sg_qrcode.jpg?imageView2/2/w/280" alt="关注微信" class="img-responsive">
66
<span style="color: red;">领全套学习资料</span>
77
</span>
88
</div>

template/resources/detail.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ <h1>
3535
<div class="content">{{if eq .resource.form "只是链接"}}传送门: {{if hasPrefix .resource.url "/r/golang/"}}https://reddit.com{{end}}{{.resource.url}}{{else}}{{.resource.content}}{{end}}</div>
3636
</div>
3737

38+
<!-- 加群等 -->
39+
{{include "common/promotion.html" .}}
40+
3841
<div class="content-buttons">
3942
<div class="pull-right c9 f11" style="line-height: 12px; padding-top: 3px; text-shadow: 0px 1px 0px #fff;">{{add .resource.viewnum 1}} 次点击 &nbsp;{{if .resource.likenum}}∙&nbsp; {{.resource.likenum}} 赞 &nbsp; {{end}}</div>
4043
<a class="tb collect" href="javascript:;" title="{{if .hadcollect}}取消收藏{{else}}加入收藏{{end}}" data-objid="{{.resource.id}}" data-objtype="2" data-collect="{{.hadcollect}}">{{if .hadcollect}}取消收藏{{else}}加入收藏{{end}}</a>
@@ -139,6 +142,13 @@ <h1>
139142
var url = $(this).attr('href');
140143
$(this).attr('target', '_blank');
141144
});
145+
146+
$('.qrcode').on('mouseover', function(evt) {
147+
$('.qrcode-pop').show();
148+
});
149+
$('.qrcode').on('mouseout', function(evt) {
150+
$('.qrcode-pop').hide();
151+
});
142152
});
143153
</script>
144154

template/sidebar/concern.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h3 class="title"><i class="glyphicon glyphicon-qrcode"></i>&nbsp;&nbsp;关注
55
<div class="sb-content">
66
<div>
77
<ul class="list-unstyled">
8-
<li><img src="{{.static.domain}}/static/img/wx_sg_qrcode.jpg?imageView2/2/w/280" alt="关注微信" class="img-responsive"></li>
8+
<li><img src="{{.static_domain}}/static/img/wx_sg_qrcode.jpg?imageView2/2/w/280" alt="关注微信" class="img-responsive"></li>
99
<li class="text-center">加入我们的 QQ 群:192706294(已满) 2群:731990104(已满) 3群:798786647</li>
1010
<li class="text-center">也欢迎加入我们的知识星球 <a href="https://t.zsxq.com/r7AUN3B" target="_blank">Go粉丝们(免费)</a></li>
1111
</ul>

template/topics/detail.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ <h1>
8282
{{end}}
8383

8484
<!-- 加群等 -->
85-
{{include "common/promotion.html" .}}
85+
{{include "common/promotion.html" .}}
8686

8787
<div class="content-buttons">
8888
<div class="pull-right c9 f11" style="line-height: 12px; padding-top: 3px; text-shadow: 0px 1px 0px #fff;">{{add .topic.view 1}} 次点击 &nbsp;{{if .topic.like}}∙&nbsp; {{.topic.like}} 赞 &nbsp; {{end}}</div>
@@ -215,12 +215,12 @@ <h1>
215215
return false;
216216
});
217217

218-
$('.qrcode').on('mouseover', function(evt) {
219-
$('.qrcode-pop').show();
220-
});
221-
$('.qrcode').on('mouseout', function(evt) {
222-
$('.qrcode-pop').hide();
223-
});
218+
$('.qrcode').on('mouseover', function(evt) {
219+
$('.qrcode-pop').show();
220+
});
221+
$('.qrcode').on('mouseout', function(evt) {
222+
$('.qrcode-pop').hide();
223+
});
224224
});
225225
</script>
226226

0 commit comments

Comments
 (0)