问题标签 [wintersmith]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
pug - 温特史密斯服务 /manifest.json
我正在尝试提供一个 /manfest.json 文件 - 它有一些适用于 android 的图标信息。
当我将文件放入 /contents 时,Wintersmith 会将其呈现到 /manifest.html。不好。
在 /contents/manifest.json 中有这个:
使用模板,但我还没有找到让 Jade 输出 json 的语法。有没有更好的办法?我觉得我错过了一些更容易的东西。
pug - need to access location.hash in jade, wintersmith
I am using Wintersmith and need to access the location.hash
as a variable.
This is what I tried, but it is producing a Cannot read property 'location' of undefined
error:
pug - 替换 Wintersmith 中的页面元描述
我在 Wintersmith 中有以下行layout.pug
:
我知道我可以添加article.pug
到模板中的 head 块中,如下所示:
但现在我有description
两次元标题:
有没有办法在 Wintersmith 的哈巴狗模板中替换标签?我想避免实际上必须在我的每个模板中手动添加元标记。