bug: Gitlab.com / Hugo default theme is broken #818
Unanswered
JonRiv
asked this question in
2 - Q&A / Support
Replies: 3 comments
-
How do you add Ananke to your theme? The error messages point to an old version used. It looks like you add it as module. In that case you need to add |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello, adding it as V2 doesn't change the error messages. It would seem Hugo is looking for another version :
any idea about this version ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you, it did succeded by updating both config.toml and gitlab-ci.yml |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
it would appear a recent change in the Hugo/Ananke Gitlab pages theme breaks the Gitlab-ci pipeline. This occurs on existing and new Hugo/Ananke gitlab pages projects.
I believe this to be critical as Ananke is the default theme for the Gitlab pages Hugo builder.
Expected Behavior
Gitlab pages pipeline builds normally.
While updating a Gitlab pages blog it wouldn't build anymore. Tested with fresh project and it wouldn't build either.
Current Behavior
Possible Solution
I guess the theme should be updated to support newer versions of Hugo. Note : while I tried to downgrade the Gitlab pages hugo version, I didn't manage to produce a working build.
Steps to Reproduce
The bigger picture (we need context)
Hugo Config
$ hugo config --format toml
ERROR deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in Hugo 0.141.0. Use pagination.pagerSize instead.
archetypedir = 'archetypes'
assetdir = 'assets'
baseurl = 'https://sitename.gitlab.io/'
cachedir = '/tmp/hugo_cache/'
capitalizelisttitles = true
contentdir = 'content/fr'
datadir = 'data'
defaultcontentlanguage = 'fr'
enablerobotstxt = true
environment = 'production'
i18ndir = 'i18n'
languagecode = 'fr-fr'
layoutdir = 'layouts'
paginate = 3
pluralizelisttitles = true
publishdir = 'public'
resourcedir = '../resources'
sectionpagesmenu = 'main'
staticdir = ['static']
summarylength = 70
theme = ['github.com/theNewDynamic/gohugo-theme-ananke']
themesdir = 'themes'
timeout = '30s'
title = '1440 - Adrien Roynette'
titlecasestyle = 'AP'
workingdir = '/builds/organization/repository-name'
[build]
useresourcecachewhen = 'fallback'
[build.buildstats]
[[build.cachebusters]]
source = '(postcss|tailwind).config.js'
target = '(css|styles|scss|sass)'
[caches]
[caches.assets]
dir = ':resourceDir/_gen'
maxage = -1
[caches.getcsv]
dir = ':cacheDir/:project'
maxage = -1
[caches.getjson]
dir = ':cacheDir/:project'
maxage = -1
[caches.getresource]
dir = ':cacheDir/:project'
maxage = -1
[caches.images]
dir = ':resourceDir/gen'
maxage = -1
[caches.misc]
dir = ':cacheDir/:project'
maxage = -1
[caches.modules]
dir = ':cacheDir/modules'
maxage = -1
[deployment]
invalidatecdn = true
maxdeletes = 256
workers = 10
[frontmatter]
date = ['date', 'publishdate', 'pubdate', 'published', 'lastmod', 'modified']
expirydate = ['expirydate', 'unpublishdate']
lastmod = [':git', 'lastmod', 'modified', 'date', 'publishdate', 'pubdate', 'published']
publishdate = ['publishdate', 'pubdate', 'published', 'date']
[httpcache]
[httpcache.cache]
[httpcache.cache.for]
excludes = ['']
[[httpcache.polls]]
disable = true
high = '0s'
low = '0s'
[httpcache.polls.for]
includes = ['']
[imaging]
bgcolor = '#ffffff'
hint = 'photo'
quality = 75
resamplefilter = 'box'
[languages]
[languages.en]
title = '1440'
weight = 2
[languages.fr]
title = '1440 - Adrien Roynette'
weight = 1
[markup]
defaultmarkdownhandler = 'goldmark'
[markup.asciidocext]
backend = 'html5'
failurelevel = 'fatal'
noheaderorfooter = true
safemode = 'unsafe'
[markup.goldmark]
[markup.goldmark.extensions]
definitionlist = true
footnote = true
linkify = true
linkifyprotocol = 'https'
strikethrough = true
table = true
tasklist = true
[markup.goldmark.extensions.cjk]
eastasianlinebreaksstyle = 'simple'
[markup.goldmark.extensions.extras]
[markup.goldmark.extensions.extras.delete]
[markup.goldmark.extensions.extras.insert]
[markup.goldmark.extensions.extras.mark]
[markup.goldmark.extensions.extras.subscript]
[markup.goldmark.extensions.extras.superscript]
[markup.goldmark.extensions.passthrough]
[markup.goldmark.extensions.passthrough.delimiters]
[markup.goldmark.extensions.typographer]
apostrophe = '’'
ellipsis = '…'
emdash = '—'
endash = '–'
leftanglequote = '«'
leftdoublequote = '“'
leftsinglequote = '‘'
rightanglequote = '»'
rightdoublequote = '”'
rightsinglequote = '’'
[markup.goldmark.parser]
autoheadingid = true
autoheadingidtype = 'github'
wrapstandaloneimagewithinparagraph = true
[markup.goldmark.parser.attribute]
title = true
[markup.goldmark.renderer]
[markup.goldmark.renderhooks]
[markup.goldmark.renderhooks.image]
enabledefault = true
[markup.goldmark.renderhooks.link]
enabledefault = true
[markup.highlight]
codefences = true
linenostart = 1
linenumbersintable = true
noclasses = true
style = 'monokai'
tabwidth = 4
wrapperclass = 'highlight'
[markup.tableofcontents]
endlevel = 3
startlevel = 2
[mediatypes]
[mediatypes.'application/json']
delimiter = '.'
suffixes = ['json']
[mediatypes.'application/manifest+json']
delimiter = '.'
suffixes = ['webmanifest']
[mediatypes.'application/octet-stream']
delimiter = '.'
[mediatypes.'application/pdf']
delimiter = '.'
suffixes = ['pdf']
[mediatypes.'application/rss+xml']
delimiter = '.'
suffixes = ['xml', 'rss']
[mediatypes.'application/toml']
delimiter = '.'
suffixes = ['toml']
[mediatypes.'application/wasm']
delimiter = '.'
suffixes = ['wasm']
[mediatypes.'application/xml']
delimiter = '.'
suffixes = ['xml']
[mediatypes.'application/yaml']
delimiter = '.'
suffixes = ['yaml', 'yml']
[mediatypes.'font/otf']
delimiter = '.'
suffixes = ['otf']
[mediatypes.'font/ttf']
delimiter = '.'
suffixes = ['ttf']
[mediatypes.'image/bmp']
delimiter = '.'
suffixes = ['bmp']
[mediatypes.'image/gif']
delimiter = '.'
suffixes = ['gif']
[mediatypes.'image/jpeg']
delimiter = '.'
suffixes = ['jpg', 'jpeg', 'jpe', 'jif', 'jfif']
[mediatypes.'image/png']
delimiter = '.'
suffixes = ['png']
[mediatypes.'image/svg+xml']
delimiter = '.'
suffixes = ['svg']
[mediatypes.'image/tiff']
delimiter = '.'
suffixes = ['tif', 'tiff']
[mediatypes.'image/webp']
delimiter = '.'
suffixes = ['webp']
[mediatypes.'text/asciidoc']
delimiter = '.'
suffixes = ['adoc', 'asciidoc', 'ad']
[mediatypes.'text/calendar']
delimiter = '.'
suffixes = ['ics']
[mediatypes.'text/css']
delimiter = '.'
suffixes = ['css']
[mediatypes.'text/csv']
delimiter = '.'
suffixes = ['csv']
[mediatypes.'text/html']
delimiter = '.'
suffixes = ['html', 'htm']
[mediatypes.'text/javascript']
delimiter = '.'
suffixes = ['js', 'jsm', 'mjs']
[mediatypes.'text/jsx']
delimiter = '.'
suffixes = ['jsx']
[mediatypes.'text/markdown']
delimiter = '.'
suffixes = ['md', 'mdown', 'markdown']
[mediatypes.'text/org']
delimiter = '.'
suffixes = ['org']
[mediatypes.'text/pandoc']
delimiter = '.'
suffixes = ['pandoc', 'pdc']
[mediatypes.'text/plain']
delimiter = '.'
suffixes = ['txt']
[mediatypes.'text/rst']
delimiter = '.'
suffixes = ['rst']
[mediatypes.'text/tsx']
delimiter = '.'
suffixes = ['tsx']
[mediatypes.'text/typescript']
delimiter = '.'
suffixes = ['ts']
[mediatypes.'text/x-sass']
delimiter = '.'
suffixes = ['sass']
[mediatypes.'text/x-scss']
delimiter = '.'
suffixes = ['scss']
[mediatypes.'video/3gpp']
delimiter = '.'
suffixes = ['3gpp', '3gp']
[mediatypes.'video/mp4']
delimiter = '.'
suffixes = ['mp4']
[mediatypes.'video/mpeg']
delimiter = '.'
suffixes = ['mpg', 'mpeg']
[mediatypes.'video/ogg']
delimiter = '.'
suffixes = ['ogv']
[mediatypes.'video/webm']
delimiter = '.'
suffixes = ['webm']
[mediatypes.'video/x-msvideo']
delimiter = '.'
suffixes = ['avi']
[minify]
[minify.tdewolff]
[minify.tdewolff.css]
keepcss2 = true
[minify.tdewolff.html]
keepdefaultattrvals = true
keepdocumenttags = true
keependtags = true
keepspecialcomments = true
templatedelims = ['', '']
[minify.tdewolff.js]
version = 2022
[minify.tdewolff.json]
[minify.tdewolff.svg]
[minify.tdewolff.xml]
[module]
noproxy = 'none'
private = '.'
proxy = 'direct'
workspace = 'off'
[module.hugoversion]
[[module.imports]]
path = 'github.com/theNewDynamic/gohugo-theme-ananke'
[[module.mounts]]
lang = 'fr'
source = 'content/fr'
target = 'content'
[[module.mounts]]
lang = 'en'
source = 'content/en'
target = 'content'
[[module.mounts]]
source = 'data'
target = 'data'
[[module.mounts]]
source = 'layouts'
target = 'layouts'
[[module.mounts]]
source = 'i18n'
target = 'i18n'
[[module.mounts]]
source = 'archetypes'
target = 'archetypes'
[[module.mounts]]
source = 'assets'
target = 'assets'
[[module.mounts]]
source = 'static'
target = 'static'
[outputformats]
[outputformats.amp]
basename = 'index'
ishtml = true
mediatype = 'text/html'
path = 'amp'
permalinkable = true
rel = 'amphtml'
[outputformats.calendar]
basename = 'index'
isplaintext = true
mediatype = 'text/calendar'
protocol = 'webcal://'
rel = 'alternate'
[outputformats.css]
basename = 'styles'
isplaintext = true
mediatype = 'text/css'
notalternative = true
rel = 'stylesheet'
[outputformats.csv]
basename = 'index'
isplaintext = true
mediatype = 'text/csv'
rel = 'alternate'
[outputformats.html]
basename = 'index'
ishtml = true
mediatype = 'text/html'
permalinkable = true
rel = 'canonical'
weight = 10
[outputformats.json]
basename = 'index'
isplaintext = true
mediatype = 'application/json'
rel = 'alternate'
[outputformats.markdown]
basename = 'index'
isplaintext = true
mediatype = 'text/markdown'
rel = 'alternate'
[outputformats.robots]
basename = 'robots'
isplaintext = true
mediatype = 'text/plain'
rel = 'alternate'
root = true
[outputformats.rss]
basename = 'index'
mediatype = 'application/rss+xml'
nougly = true
rel = 'alternate'
[outputformats.sitemap]
basename = 'sitemap'
mediatype = 'application/xml'
rel = 'sitemap'
ugly = true
[outputformats.webappmanifest]
basename = 'manifest'
isplaintext = true
mediatype = 'application/manifest+json'
notalternative = true
rel = 'manifest'
[outputs]
home = ['html', 'rss']
page = ['html']
rss = ['rss']
section = ['html', 'rss']
taxonomy = ['html', 'rss']
term = ['html', 'rss']
[page]
nextprevinsectionsortorder = 'desc'
nextprevsortorder = 'desc'
[pagination]
pagersize = 3
path = 'page'
[params]
background_color_class = 'bg-black'
description = '1440 - Adrien Roynette'
recent_posts_number = 3
site_logo = '1440-logo_v3.png'
[[params.ananke_socials]]
[permalinks]
[privacy]
[privacy.disqus]
[privacy.googleanalytics]
[privacy.instagram]
[privacy.twitter]
[privacy.vimeo]
[privacy.youtube]
[related]
threshold = 80
[[related.indices]]
name = 'keywords'
type = 'basic'
weight = 100
[[related.indices]]
name = 'date'
type = 'basic'
weight = 10
[[related.indices]]
name = 'tags'
type = 'basic'
weight = 80
[security]
[security.exec]
allow = ['^(dart-)?sass(-embedded)?$', '^go$', '^git$', '^npx$', '^postcss$', '^tailwindcss$']
osenv = ['(?i)^((HTTPS?|NO)PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|(XDG_CONFIG)?HOME|USERPROFILE|SSH_AUTH_SOCK|DISPLAY|LANG|SYSTEMDRIVE)$']
[security.funcs]
getenv = ['^HUGO', '^CI$']
[security.http]
methods = ['(?i)GET|POST']
urls = ['.*']
[server]
[[server.redirects]]
from = '**'
status = 404
to = '/404.html'
[services]
[services.disqus]
[services.googleanalytics]
[services.instagram]
[services.rss]
limit = -1
[services.twitter]
[sitemap]
changefreq = 'monthly'
filename = 'sitemap.xml'
priority = 0.5
[taxonomies]
category = 'categories'
tag = 'tags'
Beta Was this translation helpful? Give feedback.
All reactions