Skip to content
larsp.de
Go back

Ghost CMS

My favorite open-source CMS for content sites

Ghost is a fantastic open-source, headless Node.js CMS and my go-to system for setting up content sites (e.g. my German consulting business site itpeters.com or my private travel logbook reisepedia.de). Essentially, it’s a customizable platform for running blogs, magazines, or journals. It’s fully open-source and runs blogs from OpenAI, DigitalOcean, Mozilla and many other big names.

The Ghost Foundation is offering a hosted version of Ghost, so it’s accessible for non-technical content creators. This is really great and should be used by all means, if you don’t want to deal with the technical aspects of running a web server. For me, however, it comes natural to set up a Ghost instance on my own server with the offical Docker image and Dokku.

There are also a ton of themes for purchase (and for free!) on Ghost’s official website. I personally like the themes from Bright Themes, which are very well designed and easy to customize. They offer a lifetime license for all themes, which I think is a fantastic deal. This site uses the Array theme by Bright Themes.

Ghost CMS admin dashboard

Key features

Notes

Sort posts on last updated

{{#get "posts" include="authors,tags" order="updated_at desc"
  limit=@config.posts_per_page}}
  {{> post-feed}}
{{/get}}

index.hbs

{{!-- Date --}}
<time class="leading-none font-medium" datetime="{{date updated_at format="YYYY-MM-DD"}}">{{date updated_at}}</time>

post-card.hbs

Code word wrap

code[class*="language-"], 
pre[class*="language-"] {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    overflow-x: auto;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    code[class*="language-"], 
    pre[class*="language-"] {
        font-size: 0.85em;
        line-height: 1.3;
        -webkit-overflow-scrolling: touch;
    }
}

Share this post on:

Previous Post
MacOS setup
Next Post
Dokku: Open source Heroku alternative