复制MD文件
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 清空文件夹 | |
# rm -rf /home/_post/* | |
find /home/_post/ -name "*.md" -exec rm {} \; | |
# 导出3天前改动的文件到博客目录 | |
find /Users/mai/NutstoreFiles/我的坚果云/blog_posts/ -mtime -3d -type f -name "*.md" -exec cp {} /Users/mai/Projects/hexo/source/_posts/ \; | |
# 再复制到Hexo的Post目录 | |
# cp /home/_post/* /home/hexo_debug/source/_posts/ | |
rsync --exclude=README.* /home/_post/* /home/hexo_debug/source/_posts/ |
查找最新文件
1 | ls -t /Users/mai/Projects/hexo/source/_posts/*.md | head -1 | xargs ls -l | awk '{print $6 "-" $7 "-" $8 }' |
其它
Hexo 代码折叠
1 | {% fold 点击显/隐内容 %} |
参考文件
会导致编译奔溃的错误
大括号和井号连在一起
1 | {#、 #}、{#} 这三种情况都会导致系统奔溃 |