Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sveltia cms UI not loading, no errors #2

Open
moookino opened this issue Aug 1, 2024 · 1 comment
Open

Sveltia cms UI not loading, no errors #2

moookino opened this issue Aug 1, 2024 · 1 comment

Comments

@moookino
Copy link

moookino commented Aug 1, 2024

Hi @privatemaker
I followed steps in README and added config and params yamls to the config/_defaults dir, I didn't put anything into hugo.yaml in the home/src folder to keep all the configs in one place
So there's couple findings:
config.yaml - it wasn't enough to have only basic things you listed, but also params part with headless_cms and backed info, otherwise admin page was saying I didn't choose any supported CMS, so I ended up just having params config in both files, see below:

module:
  imports:
  - path: headless-cms

outputs:
  home:
  - HTML
  - RSS
  - HeadlessCMSConfig
media_folder: static/images
public_folder: /images
params:
  headless_cms:
    engine: "sveltia"
    site_url: "https://redacted.org"
    backend:
      name: gitlab
      repo: "redacted"
      auth_type: pkce # Required for pkce
      app_id: # "redacted"Application ID from your GitLab settings
    collections:
      - label: "Blog"
        name: "blog"
        folder: "content/posts"
        create: true
        fields:
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Publish Date", name: "date", widget: "datetime"}
          - {label: "Featured Image", name: "thumbnail", widget: "image"}
          - {label: "Body", name: "body", widget: "markdown"}

So now sveltia is loaded fine in the network and I don't see any errors in console, but I don't see any UI loaded
raw
there's no error in console
image

Can you help to understand what's wrong there?

Also I've tried decap, but it also fails to detect right path for config.yaml
raw

@richtong
Copy link

I have the same problem. Looking at the code it seems like it is just loading the sveltia.js file. I'll look at the sveltia issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants