diff --git a/_config.yml b/_config.yml index 2f63b1809..87d50e8e1 100755 --- a/_config.yml +++ b/_config.yml @@ -432,14 +432,14 @@ gitment: # Evernote,Friendfeed,Vkontakte,Odnoklassniki,Mailru needmoreshare2: enable: false - postbottom: + postbottom: enable: false options: iconStyle: box boxForm: horizontal position: bottomCenter networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook - float: + float: enable: false options: iconStyle: box @@ -522,6 +522,15 @@ leancloud_visitors: app_id: # app_key: # +# Another tool to show number of visitors to each article. +# visit https://console.firebase.google.com/u/0/ to get apiKey and projectId +# visit https://firebase.google.com/docs/firestore/ to get more information about firestore +firestore: + enable: false + collection: articles #required, a string collection name to access firestore database + apiKey: #required + projectId: #required + # Show PV/UV of the website/page with busuanzi. # Get more information on http://ibruce.info/2015/04/04/busuanzi/ busuanzi_count: diff --git a/layout/_layout.swig b/layout/_layout.swig index a33555a3b..9b5267166 100644 --- a/layout/_layout.swig +++ b/layout/_layout.swig @@ -81,6 +81,7 @@ {% include '_third-party/comments/index.swig' %} {% include '_third-party/search/index.swig' %} {% include '_third-party/analytics/lean-analytics.swig' %} + {% include '_third-party/analytics/firestore.swig' %} {% include '_third-party/seo/baidu-push.swig' %} {% include '_third-party/needsharebutton.swig' %} {% include '_third-party/rating.swig' %} diff --git a/layout/_third-party/analytics/firestore.swig b/layout/_third-party/analytics/firestore.swig new file mode 100644 index 000000000..3cd5f7c7f --- /dev/null +++ b/layout/_third-party/analytics/firestore.swig @@ -0,0 +1,54 @@ +{% if theme.firestore.enable %} + + + +{% endif %}