Trying to change /admin to /blog/admin in Hugo CMS

I managed to figure out how to serve the website under /blog at Mintables Blog by changing the yarn build:hugo command to be hugo -d ../dist/blog -s site -v and adding baseurl = "/blog" in the config.toml

But now, the /admin site and /blog/admin doesn’t work at all anymore.
image

How can I recover the admin while still hosting under /blog?

Hi @czhu12 Welcome to the forums

Please read the NetlifyCMS docs for further configuration. I’m pretty sure this is what you are looking for.

Hi, thanks for the reply!

I looked through all the sample code and my own project and grepped for cms-config-url but I can’t find where to add this line:

<link href="path/to/config.yml" type="text/yaml" rel="cms-config-url">

to reference my custom path (https://gorgeous-lollipop-a30f21.netlify.app/blog/admin/config.yml)

This tag should be added to the <head> of the CMS index.html