52ky 发表于 2023-1-5 14:25:04

树洞外链更新到2.4 - 支持本地/远程存储,新增用户系统

详细更新:

新材料设计主题响应式布局
修复 XSS 漏洞
修复几个注入错误
更新首页静态文件调用方式
背景和默认模板调用文件分离
添加自定义页面机制
图片上传后,即可获取Markdown代码
主题升级说明
由于2.4版本启用了新主题,旧版本的主题无法适配新版本,但主题文件仍会保留在/content/themes下。您可以进行简单的修改以适应旧版本“2.3”。新版本的主题:

打开旧主题 index.html 并找到 ~$head~~ 标签。在旧版本中,这个标签将被替换为导入头静态文件(如jquery)和关键字等搜索引擎的元数据。之后直接加上~$static~~

(Detailed update:

New material design theme responsive layout
Fix XSS vulnerability
Fix several injection bugs
Update the home page static file calling method
Background and default template call files separated
Add custom page mechanism
After the image is uploaded, you can get the Markdown code
Theme Upgrade Instructions
Since the new theme is enabled in version 2.4, the theme of the old version cannot be adapted to the new version, but the theme file will still be kept under /content/themes. You can make a simple modification to accommodate older version "2.3". Theme for the new version:

Open the old theme index.html and find the ~$head~~ tag. In the old version, this tag will be replaced by import header static files (such as jquery) and search engine metadata such as keywords. Then directly add ~$static~~)




页: [1]
查看完整版本: 树洞外链更新到2.4 - 支持本地/远程存储,新增用户系统