前言
一、设置伪静态
-
xiuno后台插件中心安装插件:拓展设置
- 进入 扩展设置插件的设置,开启:伪静态
-
BT宝塔面板,进入网站设置
- nginx伪静态添加代码
location ~* \.(htm)$ {
rewrite "^(.*)/(.+?).htm(.*?)$" $1/index.php?$2.htm$3 last;
}
- 重启/重载下nginx、php
xiuno后台插件中心安装插件:拓展设置
- 进入 扩展设置插件的设置,开启:伪静态
BT宝塔面板,进入网站设置
- nginx伪静态添加代码
location ~* \.(htm)$ {
rewrite "^(.*)/(.+?).htm(.*?)$" $1/index.php?$2.htm$3 last;
}
二、MarkDown语法
- 安装插件
- 超链接若以
新窗口打开,请直接在编辑器使用html语法:
<a href="url" target="_blank">Text</a>
新窗口打开,请直接在编辑器使用html语法: <a href="url" target="_blank">Text</a>
三、MarkDown和html编辑器下加入路过图床上传图片
- 编辑xiuno程序文件夹/view/htm/post.htm;
- MarkDown语法,底部
<!--{hook post_js.htm}-->前加入以下代码
<script async src="https://imgchr.com/sdk/pup.js" data-url="https://imgchr.com/upload" data-auto-insert="markdown-embed-medium"></script>
- html语法
- xiuno插件中心安装:UMEditor百度编辑器;
- 编辑xiuno程序文件夹/view/htm/post.htm;
- 底部
<!--{hook post_js.htm}-->前加入以下代码
<script async src="https://imgchr.com/sdk/pup.js" data-url="https://imgchr.com/upload" data-auto-insert="html-embed-medium"></script>
- 但是在上传图片时请先在编辑器切换为html;
<!--{hook post_js.htm}-->前加入以下代码 <script async src="https://imgchr.com/sdk/pup.js" data-url="https://imgchr.com/upload" data-auto-insert="markdown-embed-medium"></script>
- xiuno插件中心安装:UMEditor百度编辑器;
- 编辑xiuno程序文件夹/view/htm/post.htm;
- 底部
<!--{hook post_js.htm}-->前加入以下代码
<script async src="https://imgchr.com/sdk/pup.js" data-url="https://imgchr.com/upload" data-auto-insert="html-embed-medium"></script>