buildDrafts = true on config.toml file else posts would not render
I guess buildDrafts is false by default, so any draft=true
on the
front matter of the post, would render correctly with hugo server <flags/options>
On the other hand, I've no idea if the recommended.gitlab-ci.yml
values somehow conflict with it
image: monachus/hugo
#image: registry.gitlab.com/pages/hugo:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
script:
- hugo
artifacts:
paths:
- public
only:
- master
But if buildDrafts = true
is not specified on the config file the
posts would not render.
baseURL = "http://nonumeros.gitlab.io/clic/"
languageCode = "en-us"
title = "My New Hugo Site"
#buildDrafts = true
theme = "lanyon"
copyright = "© 2016. All rights reserved."
canonifyurls = true
paginate = 10
[indexes]
tag = "tags"
topic = "topics"
[menu]
# Shown in the side menu.
[[menu.main]]
name = "Home"
pre = "<i class='fa fa-home fa-fw'></i>"
weight = 1
identifier = "home"
url = "/"
[[menu.main]]
name = "Posts"
pre = "<i class='fa fa-list fa-fw'></i>"
weight = 2
identifier = "post"
url = "/post/"
[[menu.main]]
name = "About"
pre = "<i class='fa fa-user fa-fw'></i>"
weight = 3
identifier = "about"
url = "/about/"
[[menu.main]]
name = "Contact"
pre = "<i class='fa fa-phone fa-fw'></i>"
weight = 4
url = "/contact/"