Fetch the repository succeeded.
This action will force synchronization from 轩陌/xm-nuxtjs-wordpress, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
使用Nuxtjs + Wordpress Rest Api实现前后端分离,服务端渲染页面
service
目录为wordpress主题文件,需要拷贝到wordpress主题目录下,wp-content/themes
使用的时候请修改
nuxt.config.js
的配置项,改为自己的信息,修改注释的地方即可
修改
assets/scss/variable.scss
文件下的$color-theme
变量,可以更换博客的主体风格
原创不易,希望能够保留右下角的主题作者,谢谢
# install dependencies
$ yarn
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
# generate static project
$ yarn generate
For detailed explanation on how things work, checkout the Nuxt.js docs.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。