提交 6aae618e 编写于 作者: Y Yujia Chen

Add pageview info for blog post

上级 2ed70184
......@@ -44,7 +44,11 @@ other ="https://dw.pcl.ac.cn/dwmain/main/"
[main_apply_sponsore]
other = " "
[main_blog_pageview]
other = " "
[main_blog_pageview_units]
other = " viewed"
[main_cards_title]
......
......@@ -23,6 +23,12 @@ other = "测试资源申请"
[main_postablog_source]
other = "写博客"
[main_blog_pageview]
other = "总浏览量"
[main_blog_pageview_units]
other = "次"
[main_apply_description]
other= "如果缺乏测试设备,可以尝试在此申请。"
......
......@@ -50,7 +50,7 @@
translation: "View All"
id: archivesTitle
translation: "归档"
translation: "Archives"
- id: readMore
translation: "Read more"
......
......@@ -21,8 +21,14 @@
<div class="row">
<div class="col-md-9" id="blog-post">
<p class="text-muted mb-small text-right">{{ if .Params.author }}{{ .Params.author }} |
{{ end }}{{ .Date.Format .Site.Params.date_format }}</p>
<p class="text-muted mb-small text-right">{{ if .Params.author }}{{ .Params.author }} |
{{ end }}{{ .Date.Format .Site.Params.date_format }}
<br>
<span id="busuanzi_container_page_pv">
{{i18n "main_blog_pageview"}}<span id="busuanzi_value_page_pv"></span>{{i18n "main_blog_pageview_units"}}
</span>
</p>
<div id="post-content">
{{ .Content }}
</div>
......
......@@ -57,7 +57,7 @@
<link href="{{ "css/owl.theme.css" | relURL}}" rel="stylesheet">
<link rel="alternate" href="{{ "/index.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<!-- Twitter Card meta tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@{{ .Site.Params.twitter }}">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册