A port of ghostwriter theme to Hugo.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 110 commits ahead, 27 commits behind roryg:master.
Juraj Bubniak
Juraj Bubniak Add exponea support.
Latest commit 3695070 Aug 31, 2018



Enhanced port of the Ghost "ghostwriter" theme to the Hugo site generator.


Inside the folder of your Hugo site run:

$ mkdir themes
$ cd themes
$ git clone https://github.com/jbub/ghostwriter

For more information read the official setup guide of Hugo.


After installing the theme you need to install javascript dependencies. You can use npm or yarn to install them from package.json. We are using webpack to build and package styles. In order to develop with realtime reloading in the browser you can use this powerful combo:

hugo server
yarn run watch

To update theme styles edit the styles/style.scss file. You can then either use the watch command or run build to compile the styles:

yarn run build

Example config.toml

To customize your theme you can use following params:

baseurl = "https://example.com/"
title = "mytitle"
theme = "ghostwriter"
languageCode = "en-us"
copyright = "My Name"
googleAnalytics = "XXX"
disqusShortname = "XXX"


    disable = true

    anonymizeIP = true
    respectDoNotTrack = true
    useSessionStorage = false

    name = "My Name"
    profile = "https://google.com/+XXX"

    tag = "tags"

    intro = true
    headline = "My headline"
    description = "My description"
    github = "https://github.com/XXX"
    gitlab = "https://gitlab.com/XXX"
    linkedin = "https://linkedin.com/in/XXX/"
    gplus = "https://google.com/+XXX"
    twitter = "https://twitter.com/XXX"
    stackoverflow = "https://stackoverflow.com/users/XXX/YYY"
    email = "XXX@example.com"
    opengraph = true
    shareTwitter = true
    shareFacebook = true
    shareGooglePlus = true
    shareLinkedIn = false
    dateFormat = "Mon, Jan 2, 2006"
    highlightJsUrl = ""
    highlightJsLocalUrl = ""
    exponeaJsUrl = ""
    exponeaTarget = ""
    exponeaToken = ""
    exponeaTrackVisits = false

    post = "/:year/:month/:day/:filename/"

    name = "Blog"
    url = "/"
    weight = 1

    name = "Projects"
    url = "/project/"
    weight = 2

    name = "Contact"
    url = "/page/contact/"
    weight = 3

    name = "About"
    url = "/page/about/"
    weight = 4

You can also inject arbitrary HTML into <head> simply by overriding the extra-in-head.html partial, which is meant for that purpose.