<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[生活记录]]></title><description><![CDATA[Thoughts, stories and ideas.]]></description><link>http://www.itcaller.com/</link><image><url>http://www.itcaller.com/favicon.png</url><title>生活记录</title><link>http://www.itcaller.com/</link></image><generator>Ghost 3.2</generator><lastBuildDate>Tue, 21 Oct 2025 19:09:11 GMT</lastBuildDate><atom:link href="http://www.itcaller.com/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Creating a custom theme]]></title><description><![CDATA[Ghost comes with a beautiful default theme called Casper, which is designed to be a clean, readable publication layout and can be easily adapted for most purposes.]]></description><link>http://www.itcaller.com/themes/</link><guid isPermaLink="false">5d80c877f4e92700012134a2</guid><category><![CDATA[Getting Started]]></category><dc:creator><![CDATA[Ghost]]></dc:creator><pubDate>Tue, 17 Sep 2019 11:50:15 GMT</pubDate><media:content url="https://static.ghost.org/v2.0.0/images/creating-a-custom-theme.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://static.ghost.org/v2.0.0/images/creating-a-custom-theme.jpg" alt="Creating a custom theme"><p>Ghost comes with a beautiful default theme called Casper, which is designed to be a clean, readable publication layout and can be adapted for most purposes. However, Ghost can also be completely themed to suit your needs. Rather than just giving you a few basic settings which act as a poor proxy for code, we just let you write code.</p><p>There are a huge range of both free and premium pre-built themes which you can get from the <a href="https://ghost.org/marketplace/">Ghost Theme Marketplace</a>, or you can create your own from scratch.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://static.ghost.org/v1.0.0/images/marketplace.jpg" class="kg-image" alt="Creating a custom theme"><figcaption>Anyone can write a completely custom Ghost theme with some solid knowledge of HTML and CSS</figcaption></figure><p>Ghost themes are written with a templating language called handlebars, which has a set of dynamic helpers to insert your data into template files. For example: <code>{{author.name}}</code> outputs the name of the current author.</p><p>The best way to learn how to write your own Ghost theme is to have a look at <a href="https://github.com/TryGhost/Casper">the source code for Casper</a>, which is heavily commented and should give you a sense of how everything fits together.</p><ul><li><code>default.hbs</code> is the main template file, all contexts will load inside this file unless specifically told to use a different template.</li><li><code>post.hbs</code> is the file used in the context of viewing a post.</li><li><code>index.hbs</code> is the file used in the context of viewing the home page.</li><li>and so on</li></ul><p>We've got <a href="https://docs.ghost.org/api/handlebars-themes/">full and extensive theme documentation</a> which outlines every template file, context and helper that you can use.</p><p>If you want to chat with other people making Ghost themes to get any advice or help, there's also a <strong>themes</strong> section on our <a href="https://forum.ghost.org/c/themes">public Ghost forum</a>.</p>]]></content:encoded></item></channel></rss>