The instructions upon Hugo | Netlify CMS | Open-Source Content Management System needs to be updated for a Hugo change:
{{ range (where .Pages "Section" "blog") }}
is now {{ range (where .Site.RegularPages “Section” “blog”) }}
I tried the Edit page link Content Manager but it Login with Github did nothing in Firefox 75.
How do I know what version of Hugo netlify builds with?
erez
April 20, 2020, 11:49am
2
Hi @kaihendry , thanks for letting us know.
You can find the installed here:
## Included Software: Xenial
This is the **Xenial** build image. It runs on Ubuntu version 16.04 (aka Xenial), and includes the languages and software versions listed below.
For instructions on how to run this image locally to test your build, please see the [README](/README.md).
### Languages
The specific patch versions included will depend on when the image was last built (except Ruby). It is highly suggested you depend only on minor versions, so that we can ensure the language has the latest updates (especially if security related).
* Ruby - `RUBY_VERSION`, `.ruby-version`
* 2.6.2
* 2.7.2 (default)
* Any version that `rvm` can install.
* Node.js - `NODE_VERSION`, `.nvmrc`, `.node-version`
* 12.18.0 (default)
* Any version that `nvm` can install.
* Python - `PYTHON_VERSION`, `runtime.txt`, `Pipfile`
* 2.7 (default)
* 3.5
This file has been truncated. show original
and it is overridable via a HUGO_VERSION
config.
I was able to access the page via Firefox 75 (MacOS), are you getting any console log errors?
1 Like
No console errors…
I think it’s because it launches a new window and the window went straight behind and I didn’t see it.
Could you propose a minimal netlify.toml for me to override HUGO_VERSION but still build it as if there wasn’t one? GitHub - kaihendry/netlify-cms-testing: Testing Netlify CMS
erez
April 23, 2020, 8:47am
5
I would try in incognito and/or disable any browser extensions for debugging purposes.
erez
April 23, 2020, 8:50am
6
The are some good examples here Host on Netlify | Hugo
So I need to setup HUGO_VERSION for each environment? Just trying to avoid the copious LOC in that example.
erez
April 23, 2020, 9:13am
8
[build.environment]
HUGO_VERSION = "0.69.1"
Should work for all environments
Thank you @erez !
Now just wondering if I can get my preview working: https://s.natalian.org/2020-04-23/publish_mode.mp4
Ah… it’s not linking to the Preview site … shouldn’t baseURL be overridden ?
I think I needed relativeURLs: true
. Be good if this info & publish_mode: editorial_workflow
was in Hugo | Netlify CMS | Open-Source Content Management System … doesn’t seem to work though for me: netlify-cms-testing/config.yaml at master · kaihendry/netlify-cms-testing · GitHub
Bonus points: Can I show Netlify build info in Github? Commits · kaihendry/netlify-cms-testing · GitHub Or maybe a badge?
erez
April 23, 2020, 9:38am
10
Looks like you committed that change into the master branch (not the PR branch) so you’ll need to test it with a new post or edit an existing post (this will cause the CMS to rebase with the mater branch).
You can read more about statues badges here Status badges | Netlify Docs
I created a new post. Same issue.
Tbh when I run hugo serve
locally, the URLs are not relative . Must be something hugo side then…
Also I don’t think I want to edit your instructions if I have to give up control of my repos?!?
Your HTML fragment with <a href="{{ .Permalink }}">
should be RelPermalink for the Preview site to work.
erez
April 26, 2020, 2:46pm
13
Hi @kaihendry ,
The permissions are the least possible ones we can ask as the GitHub API doesn’t let you scope down by repo (only all public/private repos access): Scopes for OAuth Apps - GitHub Docs .
You could also edit that page directly in GitHub and submit a PR that way.
So both relativeURLs: true
and RelPermalink
are required? We would need to think of a good way to communicate that in the docs.
Thank you again
erez:
RelPermalink
Only RelPermalink
actually, thanks!
1 Like
erez
April 30, 2020, 6:57am
15