layout | title | permalink |
---|---|---|
page |
Ghost |
/ghost/ |
$ npm install --production
$ npm start
http://127.0.0.1:2368 & http://127.0.0.1:2368/ghost
-
Stop Ghost service
sudo service ghost stop
-
Backup the following files/folders:
content/images/
content/themes/custom_themes
content/themes/data/*.db
config.js
-
Download latest Ghost version:
wget http://ghost.org/zip/ghost-latest.zip
-
Delete and replace old Ghost directory with new Ghost files
cd /var/www/Ghost rm -rf * # copy the backup files to Ghost directory
-
Copy backup files in Step 2 to Ghost directory
-
Start Ghost
sudo service ghost start
.
├── /assets
├── /css
├── screen.css
├── /fonts
├── /images
├── /js
├── /partials
├── list-post.hbs
├── default.hbs
├── index.hbs [required]
└── post.hbs [required]
└── package.json [required]
- index.hbs
- home.hbs
- post.hbs
- page.hbs, page-{% raw %}{{slug}}{% endraw %}.hbs
- tag.hbs, tag-{% raw %}{{slug}}{% endraw %}.hbs
- author.hbs, author-{% raw %}{{slug}}{% endraw %}.hbs
- private.hbs
- error.hbs
Partials allow you to create small reusable templates which you include in other template files. For example, you might create a loop.hbs
partial which you use on all of the listing templates to output a short post excerpt. Partials have to live in the /partials/
directory, and are output with the {% raw %}{{> loop}}{% endraw %}
partial helper. The partial helper will also take a string path if you have subdirectories inside your partials directory, e.g. {% raw %}{{> 'author/mini-bio'}}{% endraw %}.
{% raw %}
{{> loop}}
{% endraw %}