Ghost (Blogging Platform)
|Current Maintainer(s):||anak1n c|
|Source Repository:||Funtoo Overlay|
Summary: Ghost allows you to write and publish your own blog, giving you the tools to make it easy and even fun to do.
Subarch Profiles are coming...Subarch profiles are on their way! Learn more here.
RSS/Atom SupportYou can now follow this news feed at http://www.funtoo.org/news/atom.xml .
Creating a Friendly Funtoo CultureThis news item details some recent steps that have been taken to help ensure that Funtoo is a friendly and welcoming place for our users.
Ghost (Blogging Platform)
Ghost is an easy to use, quick, and light blogging platform that uses nodejs and is ready to go in minutes. You can configure it to do anything from a self hosted blog for yourself, a blog that uses multiple users with their own usernames and profile pages.
To use Ghost in production (as opposed to development mode) you simply first run:
# emerge ghost # npm install --production
Then configure your options in
/usr/share/webapps/ghost/config.example.js and rename it to
You don't need to use Gmail as your mail, just an example. E-mail is only used for when you add users to the blog, it sends a notice so they can set up their own username and their own password, or if you forget your password and need to reset.
After you've completed setting up your
config.js, you can start Ghost from:
# npm start --production
Once you confirm that it has started, you use the URL and port you provided in your browser:
If you use Gravatar and use the e-mail used for that, it will automatically enable your Gravatar as your users avatar. You can disable this if you'd like by adding the following to your config.js
If you'd like to add SSL support for your blog, you can do so in
After this is all done, you can start using your blog. To use it you go to the domain your provided in
blog.somedomain.com:2368/ghost and you will be able to publish, write drafts, and edit any posts.
Themes, adding Disqus and Google Analytics
After changing any of the
*.hbs files you need to restart your blogs instance.
The default theme for Ghost is called
Casper which is located in
/usr/share/webapps/ghost/content/themes/. If you'd like to keep this them and edit it, it is recommended that you copy it to a different name, to change the name for picking in the theme section of the Ghost admin page, edit
The file to edit for the CSS of your default theme would be in
This requires a basic knowledge of CSS
# cp -r /usr/share/webapps/ghost/content/themes/casper/ /usr/share/webapps/ghost/content/themes/my-theme # nano -w /usr/share/webapps/ghost/content/themes/my-theme/assets/css/screen.css
You may edit as much as you'd like in this file, though if you add new a new
div for the main page you'll have to make sure to add it in
You may also get some free themes from the Ghost Marketplace.
Disqus is a great way to keep in contact with your readers via comments. It is suggested that you add it to your blog if you'd like feedback on your posts, or just would like to stay in contact with your readers. This is not required, though.
In order to add Disqus, you'll need to sign up at their website, then grab the code. It will be labeled as 'Universal code' on your Disqus homepage. You must then add this code to
/usr/share/webapps/ghost/content/themes/(theme name)/post.hbs. This will be pasted anywhere between
After this, you'll have comments added to your blog!
Adding Google Analytics
If you track the traffic to your blog and use Google Analytics, you simply need to edit your
/usr/share/webapps/ghost/content/(theme name)/default.hbs and add the code in between the
This will activate Google Analytics for you to see your traffic!
Adding nginx or Apache support
As I'm sure no one wants to host their blog from having to constantly add a port number (i.e
myblog.com:2368), you can have it go through Apache or nginx.
It's really pretty simple. In Apache under
Nginx is pretty straightforward as well. In your
sites-enabled directory you can add a new file, or wherever you store your virtual hosts, and set it.
And there you have it! You can promptly go to your domain without having to manually add the port!
The Ghost blogging platform is a great small, tool. This should be enough to get you well on your way to your new blog!