You can use the editor on GitHub to maintain and preview the content for your website in Markdown files.
Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for
Syntax highlighted code block
# Header 1
## Header 2
### Header 3
- Bulleted
- List
1. Numbered
2. List
**Bold** and _Italic_ and `Code` text
[Link](url) and ![Image](src)
- 从码云仓库下载媒体工程 - 需要的视频,音频等写作需要的资源可以放到这个下面,国内访问速度快 地址 https://gitee.com/moredos/ChuanPoXie_Media - 共有目录,公开才可以访问
- 从github下载hexo工程 - hexo博客系统语言等基础配置以及 hexo工程是主题(轮播,颜色,推荐,文章相关属性等)相关配置 地址 https://github.com/chuanpoxie/Hexo
- 从github下载穿破鞋发布工程 - 这个本质上就是我们hexo工程执行hexo g发布生成的博客相关页面 地址 https://github.com/chuanpoxie/chuanpoxie.github.io
以上三个工程可以下载到本地。
-
之后进入到hexo工程下,执行创建文件命令 hexo new "文章名称", 进入到D:\MEME\穿破鞋\hexo\source_posts找到生成的文章.md文件,然后开始你的Markdown写作之旅吧!
-
写后,可以hexo根目录下,直接执行hexo s,启动运行http://localhost:4000,就可以看到效果了。 第4步前记得更新下工程,这样运行起来才能看到别人的文章哟
-
预览没问题后,接下来执行hexo g (之前可以考虑执行下hexo clean,看情况吧,一般不用清理), 然后把D:\MEME\穿破鞋\hexo\public下的所有文件拷贝替换到穿破鞋工程D:\MEME\穿破鞋\github下去,就是你第3步下载的工程下去, 然后提交成功后即可 http://chuanpoxie.com
-
遇到问题,作者之间可以相互沟通!其他命令不会的建议提前做了解....
a. 提示:如果要自定义页面,可以在hexo new page "Tools"之后,生成了D:\MEME\穿破鞋\hexo\source\tools文件夹,这个里面可以直接放index.html文件(建议直接拷贝public生成的某个菜单首页的index.html,然后改样式,这样融合感更好) 此时添加这个文件夹到过滤渲染配置D:\MEME\穿破鞋\hexo_config.yml: skip_render:
- "tools/**" --然后配置菜单到主题的_config.yml下面(其他菜单名称添加暂时未知): menu: ... 工具: url: /tools icon: ... 运行则会走我们自己的界面 http://chuanpoxie.com/tools/
b. 额外: 遇到搜索无效这些,记得本地安装下插件,网上有相关搜索,高亮的一些配置...