ppoffice / hexo-component-inferno

A collection of Inferno.js layout components and utility scripts for Hexo
https://ppoffice.github.io/hexo-component-inferno/
24 stars 30 forks source link

waline评论的问题 #36

Closed kuzen closed 2 years ago

kuzen commented 2 years ago

a/index.htmla/ 会被是为不同的网页,其评论不通用。虽然可以通过设置waline的path来解决(如下)

Waline({
  path: location.pathname.endsWith('/index.html')?location.pathname.substring(0,(location.pathname.lastIndexOf('/')+1)):location.pathname
})

但是 hexo-component-inferno 并没有提供设置 path 的接口,希望能提供一个设置path的接口。(虽然现在直接改js也能用

相关issue: ppoffice/hexo-theme-icarus#1021, walinejs/waline#748

kuzen commented 2 years ago

草,发现此仓库6天前的更新已经加了