Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何让自己的文章不需要手动设置key #392

Open
Real-king-Ph opened this issue Apr 4, 2022 · 1 comment
Open

如何让自己的文章不需要手动设置key #392

Real-king-Ph opened this issue Apr 4, 2022 · 1 comment

Comments

@Real-king-Ph
Copy link

首先,我们在文档里发现,我们需要配上 key 才能完成浏览量的配置。

那么我的思路就是将所有的 key 替换为 url

我在这个思路上做了点特殊处理,将 / 替换为了 s

因此大家只需要替换如下两个文件即可实现不需要 key

https://github.com/Real-king-Ph/Real-king-Ph.GitHub.io/blob/master/_includes/article-info.html

https://github.com/Real-king-Ph/Real-king-Ph.GitHub.io/blob/master/_includes/pageview-providers/leancloud/post.html

之前写了很详细的一堆,刷新了一下没了。

可以访问我的博客查看效果.

有什么问题再补充。

希望作者可以提供一个类似的思路,不需要单独生成 key

@Real-king-Ph
Copy link
Author

我写了一份较为详细的blog,可以参阅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant