-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Enhancement: Better setup options for custom scripts (and actions) #517
Comments
Thanks, @davidsneighbour; some enhancements can be made to the custom actions.
Something else: knowing when the server is running is a bit trickier (for the stop and preview actions), as some only sometimes use the start action. You could run it separately. |
This has been implemented #652 |
The ability to hide custom actions per content type has been added: {
"frontMatter.custom.scripts": [{
"title": "Generate social image",
"script": "./scripts/social-img.js",
"command": "~/.nvm/versions/node/v16.19.0/bin/node",
"contentTypes": ["post"]
}]
} All you need to do is add the |
A new setting {
"frontMatter.panel.actions.disabled": [
"openDashboard",
"createContent",
"optimizeSlug",
"preview",
"openOnWebsite",
"startStopServer",
"customActions"
]
} |
I am sorry, I never saw your answers to my report. Those all are good options, thanks for the hard work :) |
Currently (it seems) all custom scripts are added to the Actions box and available in all content types. Shutting it off is only possible by removing that meta box from the view (with a custom view mode for instance).
The following is a current sample in my system:
type: video
posts.unsplash
is defined in the frontmatter of the current post.In general the sidebar tends to be very long and cluttered on post pages. Showing things conditionally or collapse all boxes might help.
In short:
The text was updated successfully, but these errors were encountered: