From 84bb22878fc412ecbfe349842d1bf671ddfa9649 Mon Sep 17 00:00:00 2001 From: filesite Date: Sat, 4 Jan 2025 17:28:34 +0800 Subject: [PATCH] doc of filesite update --- www/content/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/content/README.md b/www/content/README.md index 26c641b..651227e 100644 --- a/www/content/README.md +++ b/www/content/README.md @@ -123,7 +123,8 @@ 'filename' => '第一章', 'realpath' => '/www/webroot/content/倚天屠龙记/第一章.md', 'path' => '/view/?id={id}', - 'extension' => 'md', + 'extname' => 'md', + 'extension' => 'MD', 'fstat' => [...], //同php方法fstat: https://www.php.net/manual/en/function.fstat.php 'content' => '文章内容...', 'description' => '文章简介...', @@ -132,6 +133,10 @@ ] ``` +其中: +extension区分大小写,extname只有小写。 + + .txt,.md和.url 3 种文件说明: * .txt文件是其它所有文件的描述文件,不会出现在文件列表里; * .md会读取文件内容并存储在属性content里; @@ -149,6 +154,7 @@ 'filename' => 'filesite.io', 'realpath' => '/www/webroot/content/网址导航/filesite.io.url', 'path' => '/link/?id={id}', + 'extname' => 'url', 'extension' => 'url', 'fstat' => [...], //同php方法fstat: https://www.php.net/manual/en/function.fstat.php 'shortcut' => [