mythsman / hexo-douban

:cd: a Hexo plugin that helps you generate content for Douban books, movies, music, and games.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

通过侧栏进入页面 刷新才会显示内容 直接转到该路径没问题

reinshift opened this issue · comments

版本:2.2.1

网站:https://reinshift.cn

  您好,想请问一下这个问题,首先我看到了#108中的问题可能和我类似,按照该博主设置pjax参数后发现依然没有解决,而我又是个刚建站不久的小白,不具备相关知识qwq,遂再次麻烦您指教

  • 站点配置文件:
#douban
douban:
  id: 216328359
  builtin: true
  item_per_page: 10
  meta_max_line: 4
  #book:
    #title: 'This is my book title'
    #quote: 'This is my book quote'
  movie:
    path: movies/index.html
    title: '我与电影'
    quote: '一部好电影如若触动了你的灵魂,你一生的轨迹就有可能因此发生变化。'
  #game:
    #title: 'This is my game title'
    #quote: 'This is my game quote'
  timeout: 10000 
  • 主题配置文件:
menu:
  movies: /movies/ || fa fa-film

pjax: 
  enable: true
  exclude: 
  - /movies/

从网站侧栏进入该页面:
屏幕截图 2023-05-19 165358

刷新后:
屏幕截图 2023-05-19 165405

感谢开发者的插件 good work: )

看起来是 人家是 butterfly 主题透传了 pjax 的配置,你这个主题的 pjax 配置没有用 。

尝试加下 pjax : false 看看 (参考https://github.com/theme-next/hexo-theme-next#plugins)。

感谢,虽然不知道原理,但还是解决了qwq