AI代码解释 ---title:testdate:2023-01-3114:30:55tags:---include_code:{%include_code../../../../../../../etc/passwd%} 漏洞修复▸ https://github.com/y1nglamore/hexo/blob/a3e68e7576d279db22bd7481914286104e867834/lib/p
code_dir Include code文件夹(需要双向加密认证)downloads/code i18n_dir 国际化(i18n)文件夹:lang skip_render 跳过指定文件的渲染,您可使用glob(https://github.com/isaacs/node-glob)表达式来匹配路径。 # 文章 # new_post_name 新文章的文件名称:title.md default_layout 预设布局 post auto_spacing 在中文...
categories #分类文件夹 code_dir: downloads/code #Include code 文件夹 i18n_dir: :lang #国际化文件夹 skip_render: #跳过指定文件的渲染,您可使用 glob 来配置路径 # Writing 写作配置 new_post_name: :title.md # 新文章的文件名称 default_layout: post #默认布局 titlecase: false # Transform title...
功能同codeblock一样,插入source/downloads/code文件夹内的代码文件,文件路径取决于code_dir的配置。语法结构如下: {% include_code [title] [lang:language] [from:line] [to:line] path/to/file %} 1. 例子如下,test.js位于source/downloads/code文件夹下: {% include_code lang:javascript test.js %} ...
# Include code 文件夹,source_dir 下的子目录 code_dir: downloads/code # 国际化(i18n)文件夹 i18n_dir: ':lang' # 跳过指定文件的渲染。匹配到的文件将会被不做改动地复制到 public 目录中。 # 您可使用 glob 表达式来匹配路径。 skip_render: null ...
{% fold 点击显/隐内容 %} something you want to fold, include code block. {% endfold %} 参考https://www.oyohyee.com/post/Note/fold.html__EOF__ 本文作者: Ryan Miao 本文链接: https://www.cnblogs.com/woshimrf/p/hexo-fold-block.html 关于博主: 评论和私信会在第一时间回复。或者...
/ Exclude file(s)## include:/exclude: options only apply to the 'source/' folderinclude:...
{%include'_third-party/bookmark.swig'%} {%include'_third-party/copy-code.swig'%} + {%include'_custom/custom.swig'%} </body> </html> 修改主题配置文件themes\next\_config.yml: footer:...+ages:+# site running time+enable:true+# birthday of your site+birthday:20181001#这里的birthday要...
#include /etc/nginx/conf.d/*.conf; server { listen 80; server_name chanchun.net; #记得改成自己的域名 location / { root /var/www/hexo; #要和刚刚的Githooks目录对应上 index index.html index.htm; } error_page 500 502 503 504 /50x.html; ...
<div>{% if not is_index %} {% include 'passage-end-tag.swig' %} {% endif %}</div> 打开主题配置文件,在最后位置添加以下代码:post_end_tag:enabled: true # 是否开启文末的本文结束标记 保存后本地预览,打开文章后会发现文章结束时出现以下效果。5.设置标题样式 打开文件,路径:themes\...