theme-ad
theme-ad copied to clipboard
🔨 Art design theme for write and show.
pagination_dir 主页不能分页不然一直报错,pagination_dir undefined
文章加密要在文章Front-matter中设置 lock: true
文章加密
#### Do you want to request a _feature_ or report a _bug_ or just a _question_? #### What's the current behavior? #### What's the expected behavior? 你好,文章加密功能好像不起作用
#### Do you want to request a _feature_ or report a _bug_ or just a _question_? 虽然问题不大,还是提一下。 #### What's the current behavior? #### What's the expected behavior?
#### Do you want to request a _feature_ or report a _bug_ or just a _question_? 手动加入简繁转换脚本([例如这个](https://www.arao.me/website/hexo-support-jian-fan-language.html))的话,现有的页面布局必需手动调整才能新增简繁转换按钮。希望能将简繁转换整合到主题内。 #### What's the current behavior? #### What's the expected behavior?
提了pr,麻烦看一下啦 :)
我希望在自己的blog中增加一个“备忘录”页面,使用 ```bash hexo new page memorandums ``` 增加页面后却无法渲染,检查发现是因为`layout`文件夹下没有提供page类型的渲染模板`page.ejs`,而`layout\post.ejs`中使用`is_post`过滤掉了page类型的文章内容。 我自己增加了`page.ejs`,内容为 ```ejs ``` 结果渲染错误。 按照[https://hexo.io/docs/variables#Page-Variables](https://hexo.io/docs/variables#Page-Variables)的描述,page类型的页面的`page`变量是没有`categories`和`tags`属性的,直接访问会得到`undefined`,而`layout/passage.ejs`及其引用的文件中多次直接使用`page.categories`和`page.tags`,导致渲染错误。 引发错误的代码样本如下: https://github.com/dongyuanxin/theme-ad/blob/63b341617ea8ed947d449aaa0a8dd0762e337474/layout/passage.ejs#L6 建议把所有相关处的`page.categories`改成如 ```ejs if (page.categories && page.categories.length>0) ``` 以及增加一个`page.ejs`的模板,如果您同意的话我可以帮您提一个PR。
希望能根据markdown的标题生成多级目录结构 吗,比如typora的这种目录: 