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

Issue: Create New Content Button is greyed-out #422

Closed
dylan-k opened this issue Sep 22, 2022 · 5 comments
Closed

Issue: Create New Content Button is greyed-out #422

dylan-k opened this issue Sep 22, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@dylan-k
Copy link

dylan-k commented Sep 22, 2022

Describe the bug
The "Create New Content" button is greyed-out. I'm not sure why.

To Reproduce
Steps to reproduce the behavior:

  1. Go to edit a post
  2. Click on the Front Matter button to show the side panel
  3. Under actions, the Create new content button is greyed-out

Expected behavior
I image the "create new content" would create an empty post to quickly start writing it.

Screenshots
Greyed Out Button

Desktop (please complete the following information):

  • OS: Windows 11
  • Latest versions of vscode and Front Matter

Additional context
I've just set up an existing Hugo project to use Front Matter, and most things are working smoothly, but I can't use the "Create New Content" button. I completed the initial setup steps. I have two folders configured in frontMatter.content.pageFolders. In the frontMatter.taxonomy.contentType setting, I've indicated what template to use in my archetypes folder.

@dylan-k dylan-k added the bug Something isn't working label Sep 22, 2022
@estruyf
Copy link
Owner

estruyf commented Sep 23, 2022

@dylan-k thanks for opening an issue around this. I see that you haven't initialized the project yet. This will create the necessary files and folders Front Matter requires. Once completed, this button should become available to you, and the initialize project button will disappear.

You can also initialize your project by opening the dashboard.

@estruyf
Copy link
Owner

estruyf commented Sep 23, 2022

Found out that this button still has some old logic attached to it, fix will get implemented.

@dylan-k
Copy link
Author

dylan-k commented Sep 23, 2022

I've already been using the dashboard and it works for the most part, but the initialize button doesn't seem to do anything. Perhaps that's what the fix will address? The docs say that initialize will create a template but I don't see one in the directory.

@estruyf
Copy link
Owner

estruyf commented Sep 23, 2022

The fix should indeed fix this, v8.1.1 is now building and gets released in a couple of minutes. That button was still coupled somehow to the old template functionality.

@dylan-k
Copy link
Author

dylan-k commented Sep 23, 2022

Updated to the latest version, and it works now. Thank you :)

@dylan-k dylan-k closed this as completed Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants