2012-10-31 33 views

回答

6

只需使用include語句包含的內容:

<style type="text/css"> 
{% include "your.css" %} 
</style> 
+4

注意,路徑從任何文件夾被指定爲模板目錄(通常只是「模板/」)是相對的,也就是說如果你'在子文件夾中,您需要用子文件夾路徑「包含」。例如要在「about/contact.html」中包含「about/hours.html」,那麼include將包含「{%include」about/hours.html「%}' – 2014-10-18 13:55:00