自定义Tumblr他们与Handlebars [英] Custom Tumblr them with Handlebars

查看:118
本文介绍了自定义Tumblr他们与Handlebars的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止还没有找到任何答案,但我试图在tumblr的主题系统中使用句柄,看起来我的{{variables}}被tumblr覆盖,然后我的内容永远不会显示。

Haven't been able to find out any answers to this so far but I'm trying to use handlebars within tumblr's theme system and it looks like my {{variables}} are getting overwritten from tumblr and then my content is never displayed.

例如我的句柄模板有

For example my handlebars template has

<img src="{{bgimage}}" class="img-responsive">

但它会输出为

But it will output as

<img src="{}" class="img-responsive">

所以它看起来像tumblr只是删除它。我已经看到其他人在主题中使用车把,但我无法弄清楚他们是如何绕过它的。任何帮助都会很棒,谢谢!

So it looks like tumblr is just removing it. I have seen others use handlebars within a theme however I just can't figure out how they got around it. Any help would be awesome, thanks!

推荐答案

我只需要添加一个空格您的车把模板:

I think you just need to add a space to your handlebars template:

<img src="{{ bgimage }}" class="img-responsive">



Tumblr然后呈现为:

Tumblr then renders it as:

<img src="{{ bgimage }}" class="img-responsive">

Handlebars.js 应该是免费的它的东西。

Handlebars.js should be free to do its thing.

这篇关于自定义Tumblr他们与Handlebars的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆