摘要: 概述 刚接触前端的时候,师傅就给我推荐了Handlebars,自己也蛮喜欢它的语法。到现在,Handlebars都已经更新到3.0.3了,是时候重新过一遍文档了。 引入 要使用Handlebars,首先你得download,然后再页面引入,就像这样 如果你使用了模块化的管理工具,如requirejs 阅读全文
posted @ 2019-12-24 20:07 QDuck 阅读(2901) 评论(0) 推荐(1) 编辑
摘要: Further Reading Further Reading Where you go from here is up to you, the world is your router1 Ghost's dynamic routing system is an extremely powerful 阅读全文
posted @ 2019-12-22 22:54 QDuck 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Properties Properties This is a full list of all the available properties that can be used within your routes.yaml config file to manipulate your URL 阅读全文
posted @ 2019-12-22 22:53 QDuck 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Redirects Redirects In addition to creating routes, you can also create redirects for any time there are any changes in your URLs and you need to forw 阅读全文
posted @ 2019-12-22 22:53 QDuck 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Channels Channels If you want something more flexible than taxonomies, but less rigid than collections, then channels might be for you. A channel is a 阅读全文
posted @ 2019-12-22 22:52 QDuck 阅读(304) 评论(0) 推荐(0) 编辑
摘要: Content Collections Content Collections Collections are the backbone of how posts on a Ghost site are organised, as well as what URLs they live on. Yo 阅读全文
posted @ 2019-12-22 22:51 QDuck 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Content Taxonomies Content Taxonomies Taxonomies are groupings of posts based on a common relation. In Ghost, this is always defined by the post's aut 阅读全文
posted @ 2019-12-22 22:51 QDuck 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Custom Routes Custom Routes Template routes allow you to map individual URLs to specific template files within a Ghost theme. For example: make /custo 阅读全文
posted @ 2019-12-22 22:50 QDuck 阅读(295) 评论(0) 推荐(0) 编辑
摘要: Google AMP Google AMP Ghost supports AMP Accelerated Mobile Pages for the posts in your publication. Overview The AMP project is a Google led initiati 阅读全文
posted @ 2019-12-22 22:49 QDuck 阅读(1) 评论(0) 推荐(0) 编辑
摘要: URLs & Dynamic Routing URLs & Dynamic Routing Routing is the system which maps URL patterns to data and templates within Ghost. It comes pre-configure 阅读全文
posted @ 2019-12-22 22:49 QDuck 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Responsive Images Responsive Images Optimise the performance of your site by outputting images at different sizes depending on where they appear Overv 阅读全文
posted @ 2019-12-22 22:48 QDuck 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Editor Editor The open-source Ghost editor is robust and extensible. 开源Ghost编辑器是健壮的和可扩展的。 Overview More than just a formatting toolbar, the rich editi 阅读全文
posted @ 2019-12-22 22:47 QDuck 阅读(1069) 评论(0) 推荐(0) 编辑
摘要: Utility Helpers Utility Helpers Utility helpers are used to perform minor, optional tasks. Use this reference list to discover what each handlebars he 阅读全文
posted @ 2019-12-22 22:46 QDuck 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Data Helpers Data Helpers Data helpers are used to output data from your site. Use this reference list to discover what each handlebars helper can do 阅读全文
posted @ 2019-12-22 22:41 QDuck 阅读(502) 评论(0) 推荐(0) 编辑
摘要: Functional Helpers Functional Helpers Functional helpers are used to work with data objects. Use this reference list to discover what each handlebars 阅读全文
posted @ 2019-12-22 22:32 QDuck 阅读(286) 评论(0) 推荐(0) 编辑
摘要: Tag Tag Use: {{#is "tag"}}{{/is}} to detect this context Description Tags in Ghost each get their own page which lists out the associated posts. You a 阅读全文
posted @ 2019-12-22 22:28 QDuck 阅读(380) 评论(0) 推荐(0) 编辑
摘要: Author Author Functional helpers are used to work with data objects Use: {{#is "author"}}{{/is}} to detect this context Description Authors in Ghost e 阅读全文
posted @ 2019-12-22 22:27 QDuck 阅读(285) 评论(0) 推荐(0) 编辑
摘要: Page Page Use: {{#is "page"}}{{/is}} to detect this context Description Whenever you're viewing a static page, you're in the page context. The page co 阅读全文
posted @ 2019-12-22 22:26 QDuck 阅读(302) 评论(0) 推荐(0) 编辑
摘要: Post Post Use: {{#is "post"}}{{/is}} to detect this context 使用:{{#is "post"}}{{/is}}检测此上下文 Description Whenever you're viewing a single site post, you 阅读全文
posted @ 2019-12-22 22:25 QDuck 阅读(389) 评论(0) 推荐(0) 编辑
摘要: Index Index Use: {{#is "index"}}{{/is}} to detect this context. 使用:{{#is "index"}}{{/is}}来检测这个上下文。 Description描述 index is the name for the main post l 阅读全文
posted @ 2019-12-22 17:42 QDuck 阅读(265) 评论(0) 推荐(0) 编辑