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

关于 #1

Open
Meekdai opened this issue Mar 18, 2021 · 18 comments
Open

关于 #1

Meekdai opened this issue Mar 18, 2021 · 18 comments
Labels
about 关于页面

Comments

@Meekdai
Copy link
Owner

Meekdai commented Mar 18, 2021

本人硬件攻城狮一枚,会用点micropython写嵌入式代码,平时也喜欢折腾网站,学一点前端知识。

  • 2012年的第一个域名djydiy.com(弃用),服务器用的新浪的SAE。
  • 2015年注册域名meekdai.com,服务器用Hostker,很长一段时间用卜卜口大佬的imouto框架
  • 2019年转用Typecho博客框架,并且购买了Mirages主题
  • 2020年购买了阿里云的ECS,新用户3年比较便宜
  • 2023年由于没有米续费阿里云的ECS,Gmeek被我瞎折腾出来了
❤️感谢第小伙伴的次访问关于页面。
@Meekdai Meekdai changed the title Micropython markdown测试页面 Jul 3, 2023
Copy link
Owner Author

Meekdai commented Jul 5, 2023

cool

import request
print("Hello world")

def get_repo(user: Github, repo: str):
    return user.get_repo(repo)

Copy link
Owner Author

Meekdai commented Jul 5, 2023

😄😄😄😄😄

@Meekdai Meekdai added link 友情链接 about 关于页面 and removed link 友情链接 labels Jul 11, 2023
@Meekdai Meekdai changed the title markdown测试页面 关于 Jul 11, 2023
Copy link

fojno commented Nov 14, 2023

冒昧地问一下最下面那个记数的代码是啥啊,能给我copy一下嘛

@Meekdai
Copy link
Owner Author

Meekdai commented Nov 14, 2023

冒昧地问一下最下面那个记数的代码是啥啊,能给我copy一下嘛

Gmeek的readme中有一个自定义cssscript的说明,我这里用的就是busuanzi,你可以参考下面的链接:
https://busuanzi.ibruce.info/

Copy link

来自v社求个人博客萌新,前来打卡😁

1 similar comment
Copy link

来自v社求个人博客萌新,前来打卡😁

@cqmzgg
Copy link

cqmzgg commented Apr 9, 2024

?issues可以加不蒜子代码吗?

@Meekdai
Copy link
Owner Author

Meekdai commented Apr 9, 2024

?issues可以加不蒜子代码吗?

issues当然不支持,通过自定义script的功能添加的。

Copy link

cqmzgg commented Apr 9, 2024

为啥看到引入了js的代码,根本不能计数。是代码有问题么?
issues 代码部分是怎么设置的?直接贴么

Copy link

cqmzgg commented Apr 9, 2024

Copy link

cqmzgg commented Apr 9, 2024

1712637415644.png
1712637415644.png

Copy link

cqmzgg commented Apr 9, 2024

找了下原因,我的 sapn id 前面加了个 “user-content-”,是怎么回事呢?issues 的问题么
这是 issues
1712641392052.png
这是生成的源码
1712641445088.png

@Meekdai
Copy link
Owner Author

Meekdai commented Apr 9, 2024

下面是我在关于页面的配置,你可以参考一下。

<span id="busuanzi">
:heart:感谢第<span></span>小伙伴的<span></span>次访问关于页面。
</span>

<!-- ##{"script":"<script>document.getElementById('user-content-busuanzi').id='busuanzi_container_site_uv';busuanzi=document.getElementById('busuanzi_container_site_uv');busuanzi.style.display='none';busuanzi.childNodes[1].id='busuanzi_value_site_uv';busuanzi.childNodes[3].id='busuanzi_value_site_pv';</script><script async src='//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js'></script>","style":"<style>#busuanzi_value_site_uv{color:red}#busuanzi_value_site_pv{color:red}</style>"}## -->

Copy link

cqmzgg commented Apr 10, 2024

去掉这个 user-content- 真复杂,还经常不行,有简单点的方法吗?

Copy link

cqmzgg commented Apr 10, 2024

该doc下面html有用吗?

@Meekdai
Copy link
Owner Author

Meekdai commented Apr 10, 2024

去掉这个 user-content- 真复杂,还经常不行,有简单点的方法吗?

为什么要去掉user-content- ,你直接拷贝我的代码,放到你文章的最后就行了。

<span id="busuanzi">
:heart:感谢第<span></span>小伙伴的<span></span>次访问关于页面。
</span>

<!-- ##{"script":"<script>document.getElementById('user-content-busuanzi').id='busuanzi_container_site_uv';busuanzi=document.getElementById('busuanzi_container_site_uv');busuanzi.style.display='none';busuanzi.childNodes[1].id='busuanzi_value_site_uv';busuanzi.childNodes[3].id='busuanzi_value_site_pv';</script><script async src='//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js'></script>","style":"<style>#busuanzi_value_site_uv{color:red}#busuanzi_value_site_pv{color:red}</style>"}## -->

你现在这样明显不行的啊,自定义参数需要写在一行内的。

<span id="busuanzi">
  :heart:感谢第<span id="busuanzi_value_site_uv"></span>位小伙伴的<span id="busuanzi_value_site_pv"></span>次访问。
</span>
<!-- ##
<style>
  #busuanzi_value_site_uv, #busuanzi_value_site_pv {
    color: red;
  }
</style>
<script>
  document.getElementById('busuanzi').id = 'busuanzi_container_site_uv';
  // Assuming the Busuanzi library will populate the child nodes with the actual counts
</script>
<script async src='//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js'></script>
## -->

Copy link

cqmzgg commented Apr 10, 2024

user-content-能直接去掉吗?引用的js 都不需要这个吧

@Meekdai
Copy link
Owner Author

Meekdai commented Apr 10, 2024

@cqmzgg 去不掉的,github自动添加的,我之前也弄了好久才弄出来这么个解决办法的。你如果想要所有文章都添加这个统计。可以把内容添加到bottomText中应该也是可以的。

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

No branches or pull requests

4 participants