I did. There was only default.md under “archetypes. Just in case, I copied it to all possible locations (I do not have a posts.md), and the result is still the same.
I am truly stumped. It works fine on Linux, same exact repository. It doesn’t work as it should under macOS.
Anyone else has any ideas? To simplify things I made sure there are no archetypes on themes/themename/archetypes (it’s empty). Only archetype present is at root (where config.toml resides), which is default.md, with the contents above (repeating it again for clarity):
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: false
# Stars cheat <span class="stars">★½</span> (star, and fraction)
# Use <!-- more --> to split a long post.
# Available kinds:
# kind: "pinned, apple, movies, youtube, rant, lawn, image"
# If pinning, uncoment this:
# weight: 10
—
Still, an hugo new posts/something.md creates:
---
title: "Content Placeholder"
_build:
render: never
list: never
publishResources: false
—
Well, had to downgrade to 0.119 and everything works as it used to. While I understand progress can’t be stopped, having Hugo breaking/changing things [that worked fine] on new versions can wear one down.
I thought the same. I have not made any changes to my configuration (see below). With that configuration, things work fine with 0.119. With 0.145 it complains about paginatePath, and paginate. After changing the settings as the error recommends, it refuses to build, or simply run hugo server, throwing “Paginator” errors on layouts. It also behaves as explained on my original post, on new post creation.
I could “freeze” things on 0.119 (hey, it works!), but I am willing to troubleshoot. What would you need?
baseURL = 'https://netbros.com/'
title = 'Notes'
description = 'There is no such thing as an uninteresting subject...'
theme = 'mine'
disableKinds = ["section", "taxonomy", "term", "sitemap"]
paginatePath = 'n'
paginate = '80'
enableEmoji = true
summaryLength = '400'
disableAliases = true
[params]
description = 'expecting no expectators, these are my short thoughts.'
blurb = 'Notes is a microblog for frequent, shorter, thoughts, rants, links, and other miscellaneous things that interest me.'
footer = '<a href="mailto:david@collantes.us">Contact</a> me. My <a href="/uses/">/uses</a> and <a href="/now/">/now</a> pages. See the <a href="https://thoughts.page/webring">thoughts webring</a>.'
images = ['https://netbros.com/card/notes_card.png']
title = 'Notes'
params.social.twitter = 'do-not-have-a-twitter-nor-x-account'
[permalinks]
posts = '/:title'
[markup.goldmark.parser.attribute]
title = true # default is true; applies to h1-h6 elements
block = true # default is false; applies to other block-level elements
[markup.goldmark.parser]
wrapStandAloneImageWithinParagraph = false # default is true
[markup.goldmark.renderer]
unsafe = true
If we solve #1 then #2 goes away. Change your site config to this:
baseURL = 'https://netbros.com/'
title = 'Notes'
description = 'There is no such thing as an uninteresting subject...'
theme = 'mine'
disableKinds = ["section", "taxonomy", "term", "sitemap"]
enableEmoji = true
summaryLength = 400
disableAliases = true
[pagination]
pagerSize = 80
path = 'n'
[params]
description = 'expecting no expectators, these are my short thoughts.'
blurb = 'Notes is a microblog for frequent, shorter, thoughts, rants, links, and other miscellaneous things that interest me.'
footer = '<a href="mailto:david@collantes.us">Contact</a> me. My <a href="/uses/">/uses</a> and <a href="/now/">/now</a> pages. See the <a href="https://thoughts.page/webring">thoughts webring</a>.'
images = ['https://netbros.com/card/notes_card.png']
title = 'Notes'
params.social.twitter = 'do-not-have-a-twitter-nor-x-account'
[permalinks]
posts = '/:title'
[markup.goldmark.parser.attribute]
title = true # default is true; applies to h1-h6 elements
block = true # default is false; applies to other block-level elements
Then build you site with v0.145.0 and share the error message.
Also, in your config, don’t quote numbers. We’re somewhat forgiving in your site config, but not elsewhere.
ERROR deprecated: .Page.PrevPage was deprecated in Hugo v0.123.0 and subsequently removed. Use .Page.Prev instead.
ERROR deprecated: .Page.NextPage was deprecated in Hugo v0.123.0 and subsequently removed. Use .Page.Next instead.
WARN Raw HTML omitted while rendering "/Users/david/Gits/test/content/posts/1682783956.md"; see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe
You can suppress this warning by adding the following to your site configuration:
ignoreLogs = ['warning-goldmark-raw-html’]
The WARN I get as many as posts I have. Then I get:
ERROR render of "/" failed: "/Users/david/Gits/test/themes/mine/layouts/index.html:3:17": execute of template failed: template: index.html:3:17: executing "index.html" at <.Paginate>: error calling Paginate: pagination not supported for this page: kind: "page", path: "/posts/1714735863", file: "/Users/david/Gits/test/content/posts/1714735863.md"
Built in 116 ms
Error: error building site: render: failed to render pages: render of "/" failed: "/Users/david/Gits/test/themes/mine/layouts/index.html:3:17": execute of template failed: template: index.html:3:17: executing "index.html" at <.Paginate>: error calling Paginate: pagination not supported for this page: kind: "page", path: "/posts/1741792596", file: "/Users/david/Gits/test/content/posts/1741792596.md”
I have made it available on a git repository: GitHub - Fastidious/netbros.com: Notes. It is missing images, icons, and the like (I tried to reduce size), but everything else important is there. Appreciate your help.