瀏覽代碼

Add asset handling recommendations to inline user docs

Thanks @smcdougall for giving the hint about this
Daniel Rudolf 9 年之前
父節點
當前提交
636f27ae2f
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      content-sample/index.md

+ 6 - 0
content-sample/index.md

@@ -62,6 +62,12 @@ Instead of adding your own content to the `content-sample` folder, you should
 create your own `content` directory in Pico's root directory. You can then add
 create your own `content` directory in Pico's root directory. You can then add
 and access your contents as described above.
 and access your contents as described above.
 
 
+As a common practice, we recommend you to separate your contents and assets
+(like images, downloads etc.). We even deny access to your `content` directory
+by default. So if you want to use a asset (e.g. a image) in one of your content
+files, upload it to the (to be created) directory `assets` and use it as
+follows: <code>!\[Image Title\](&#37;base_url&#37;/assets/image.png)</code>
+
 ### Text File Markup
 ### Text File Markup
 
 
 Text files are marked up using [Markdown][]. They can also contain regular HTML.
 Text files are marked up using [Markdown][]. They can also contain regular HTML.