如何在 SquareSpace 中编辑我的模板?
我在 SquareSpace 中托管我的博客,我需要添加一个
在这个
因此,在我的主页中,我显示了 5 个帖子,我需要这个
在 WordPress 中,我可以直接编辑帖子的 HTML,我可以这样做:
<script type="text/javascript">
var myVar = "<?php the_permalink() ?>";
... more code ...
</script>
如何使用 SquareSpace 做到这一点?
我还没有找到直接编辑模板的地方。
谢谢!
丹尼尔
I'm hosting my blog in SquareSpace, and I need to add a <Script> tag at the footer of every post.
In the middle of this <Script> tag, I need to replace a value with the permalink for the current post.
So, in my home page, where I'm showing 5 posts, I need this <Script> to show up 5 times, each time with the permalink of the corresponding post inside it.
In wordpress, I can directly edit the HTML of posts, and I can do:
<script type="text/javascript">
var myVar = "<?php the_permalink() ?>";
... more code ...
</script>
How can I do this with SquareSpace?
I haven't found anywhere to edit the templates directly.
Thanks!
Daniel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太确定您想要做什么或如何在 Squarespace 中执行此操作,但这里有一些提示/资源:
如果您登录并转到您的博客页面,则通过单击立方体图标切换到“结构编辑模式”在屏幕右上角,您可以访问博客页面的“配置此页面”按钮。在博客的配置设置中,您可以将永久链接按钮添加到每个帖子的底部。
如果您登录并转到左上角的“网站配置”,然后转到“网站设置>”代码注入'您可以选择不同的区域进行编辑。您也许可以在这里做您需要做的事情。您可能需要升级您的帐户才能访问您要编辑的特定代码注入点。
另一种选择是仅使用代码注入点(无需帐户升级)以某种方式应用脚本。
一个很棒的 Squarespace 资源是开发者论坛 http://developers.squarespace.com
我希望这会有所帮助!
I'm not exactly sure what you want to do or how to do it in Squarespace but here are a couple tips / resources:
If you login and go to your blog page, then switch to 'Structure Editing Mode' by clicking the cubes icon at the top right of the screen, you can then access the 'Configure this page' button for the blog page. In the configuration settings for the blog you can add the Permalink button to the bottom of every post.
If you login and go to 'Website Configuration' at the top left, then go to 'Website Settings > Code Injection' you can select different areas to edit. You might be able to do what you need here. You may need to upgrade your account to access the particular Code Injection Point you want to edit.
Another option is to just use the code injection point (no account upgrade needed) to apply the script in some way.
A great Squarespace resource is the Developers Forum at http://developers.squarespace.com
I hope this helps!!