Open lday0321 opened 7 years ago
有时候希望通过chrome的另存将页面保存成pdf,如果侧边栏存在,输出的pdf有很大一部分是侧边栏信息。实际只想保存正文内容,所以想是否能够让用户选择隐藏侧边栏,这样阅读文章,或者打印输出也会更方便些。
你说的是隐藏左侧栏吗,我的博客 https://wangriyu.github.io 加了这个功能,你可以参考一下,具体修改部分在这里面 https://github.com/wangriyu/hexo-theme-yelee/commit/d3ec57b1cb8e8dde829514f6966477a4e813bad5
@wangriyu 多谢回复, 能提交一个PR吗?
有时候希望通过chrome的另存将页面保存成pdf,如果侧边栏存在,输出的pdf有很大一部分是侧边栏信息。实际只想保存正文内容,所以想是否能够让用户选择隐藏侧边栏,这样阅读文章,或者打印输出也会更方便些。