stylesheet
根据给定的 CSS 资源 URL 生成 <link /> 标签。
{{#stylesheet url [preload=boolean] [media=string] /}}
必选参数
url string:CSS 资源 URL。
可选参数
-
preloadboolean:是否启用预加载。设为true时,会将该资源 URL 添加到 HTTP 的Link响应头中;设为false时则不添加。 -
mediastring:媒体查询条件,例如screen、print或(max-width: 600px)。
例子
为主题中的 CSS 文件生成样式表链接。
{{#stylesheet "base/index.css" | asset_url() /}}
这篇文章对你有帮助吗?
SHOPLINE