add view count

This commit is contained in:
lruler 2021-09-26 11:35:53 +08:00
parent 8c0f048a95
commit 8abef8c366
3 changed files with 11 additions and 2 deletions

View File

@ -133,4 +133,6 @@
- id: 'No'
translation: 'No'
- id: Msg-Thank
translation: Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.
translation: Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.
- id: Visitor-count
translation: 'The number of views: '

View File

@ -138,3 +138,5 @@
translation:
- id: Msg-Thank
translation: 感谢您的反馈。如果您有关于如何使用 KubeSphere 的具体问题,请在 Slack 上提问。如果您想报告问题或提出改进建议,请在 GitHub 存储库中打开问题。
- id: Visitor-count
translation: 本文总阅读量:

View File

@ -34,7 +34,10 @@
</div>
<div class='main-div middle-div'>
<div class='author'>{{ $context.Params.author }}</div>
<div class='date'>{{ i18n "Published on" }}{{ string $context.Params.createTime }}</div>
<span class='date'>{{ i18n "Published on" }}{{ string $context.Params.createTime }}</span>&nbsp;&nbsp;&nbsp;
<span style="font-size: 14px; color: #919aa3;" id="busuanzi_container_page_pv">
{{i18n "Visitor-count"}}<span id="busuanzi_value_page_pv"></span>
</span>
<h1>{{ $context.Title }}</h1>
<div class="share-1">
{{ partial "share.html" $context }}
@ -143,6 +146,8 @@
bindCloseBlog()
bindHideMessageBlog()
</script>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
</body>
</html>