jor*_*gos 7 relative-path static-site pelican
我试图链接html文件名,但它的工作原理是因为它们在同一个文件夹中.
[Title](./this-is-the-file.html)
Run Code Online (Sandbox Code Playgroud)
但由于ARTICLE_URL模式,另一篇文章可能会出现在另一个文件夹中.例子:
[Title 1](/2014/02/article1.html)
[Title 2](/2014/01/25/article2.html)
Run Code Online (Sandbox Code Playgroud)
是否可以将您自己的文章与slug的引用链接起来?还有比生成的HTML文件名更好的解决方案?
Jus*_*yer 14
如文档中所述,您可以通过以下方式链接到其他源内容文件:
[a link relative to content root]({filename}/this-is-the-source-file.md)
Run Code Online (Sandbox Code Playgroud)
... 要么 ...
[a link relative to current file]({filename}../this-is-the-source-file.md)
Run Code Online (Sandbox Code Playgroud)
Pelican将合并您选择的URL方案,并自动确定链接到其他文章的正确方法.
归档时间: |
|
查看次数: |
2406 次 |
最近记录: |