Make Fun with RnMaterial on WordPress.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hjthjthjt e68ede7880 Move project from Github to my own Git service 3 weeks ago
css Move project from Github to my own Git service 3 weeks ago
fonts Move project from Github to my own Git service 3 weeks ago
img Move project from Github to my own Git service 3 weeks ago
inc Move project from Github to my own Git service 3 weeks ago
js Move project from Github to my own Git service 3 weeks ago
pages Move project from Github to my own Git service 3 weeks ago
.gitignore Move project from Github to my own Git service 3 weeks ago
LICENSE Move project from Github to my own Git service 3 weeks ago
README.md Move project from Github to my own Git service 3 weeks ago
comments-ajax.js Move project from Github to my own Git service 3 weeks ago
comments-ajax.php Move project from Github to my own Git service 3 weeks ago
comments.php Move project from Github to my own Git service 3 weeks ago
favicon.ico Move project from Github to my own Git service 3 weeks ago
footer.php Move project from Github to my own Git service 3 weeks ago
functions.php Move project from Github to my own Git service 3 weeks ago
header.php Move project from Github to my own Git service 3 weeks ago
index.php Move project from Github to my own Git service 3 weeks ago
nav.php Move project from Github to my own Git service 3 weeks ago
optionjs.php Move project from Github to my own Git service 3 weeks ago
options.php Move project from Github to my own Git service 3 weeks ago
page.php Move project from Github to my own Git service 3 weeks ago
screenshot.png Move project from Github to my own Git service 3 weeks ago
search.php Move project from Github to my own Git service 3 weeks ago
single.php Move project from Github to my own Git service 3 weeks ago
style.css Move project from Github to my own Git service 3 weeks ago

README.md

RnMaterial For WordPress

RnMaterial 是一款基于 hexo-theme-material 的 WordPress 主题。

演示站点

甲烃气瓶

2.0.1 更新日志

  • (修复)搜索页面的头像
  • (修复)侧边栏头图
  • (新增)未设置特色图片的文章将随机设置为 Material Design 图片
  • (新增)设置文章列表显示文章数(优先于 WordPress 本身设置)

关于 Prism 代码语法高亮

去除了主题原本的样式,理论兼容其他 Prism 语法高亮 目前测试了 WP Editor.MD Markdown 编辑器,正常工作,其他编辑器或单独语法高亮暂未测试,若失败请发 issue 推荐使用 Prism 的 default 主题

如果 WP Editor.MD 中的语法高亮不工作,请尝试以下两种解决方式:

  1. 进入 WP Editor.MD 插件后台,在语法高亮选项语法高亮加载模式自动加载模式改为自定义加载模式,保存并刷新任意文章后,再次设置为自动加载模式并保存,似乎可以正常工作
  2. 保证文章中的代码块均选择了正确的渲染语言,例如 npm install -g hexo-cli 应正确选择为 Bash 而不是 Shell,貌似只要文章中有正确的渲染,其他就算不正确也会正确加载代码样式(但是没有对应的高亮)

使用须知

  • 建议在 仪表盘>设置>阅读 中将 博客页面至多显示 改为 5篇文章
  • 主题在Microsoft Edge浏览器上会无法显示图标字体,不修,谢谢,我不喜欢 Edge

已知问题

  • 侧边栏大部分已可通过 WordPress 后台控制,但目前无法折叠二级菜单(鼠标移动至该处时会自动展开二级菜单)

非必要性提示

  • 主题默认你的博客放在域名根目录(即 //domain.com/ 即可打开你的博客,而不是例如 //domain.com/wp)。如果你的博客状态属于后者,影响仅限加入的 OwO表情,请自行更改 js/OwO.json 中内容,一般情况下,如果你放置在例如 wp 的目录中,你应该将 /wp-content/themes/rnmaterial/img 改为 /wp/wp-content/themes/rnmaterial/img(当然,如果你在设置中关闭了 OwO 表情,你可无视这条提示)