-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
Support for layout metadata [enhancement request] #399
Comments
That's a nice suggestion @mariusa |
What about default front matters? |
When creating a new page, the pre-selected value in the layout dropdown should match the default set in _config.yml Ideally, but this is another issue, if there's a default set and the chosen layout matches the default, the page shouldn't have the layout property at all (since the default is used) |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
huh? |
I agree. This must be solved! If I create want to create a new post, by pressing on the "New Post" button. I should by default add the |
@Danger89 The recent versions of Jekyll Admin renders a dropdown that allows selection through layouts available in the site. |
Well without layout defined, using the default theme. It won't render the site correctly. For people with less knowledge (assuming they are using this admin panel). This is not user friendly whatsoever. Also the knowledge of the post tag is not available for those users. |
@Danger89 Perhaps I'm not understanding your concern enough.
|
Sure; I will explain it in more detail. I'm using Jekyll as a Wordpress alternative for a site that get managed by inexperienced user, with minimal to no knowledge about Jekyll or markdown files. The person can create articles in Wordpress without issues. When using Jekyll-admin the user need to know about the fact they need to enter the It's important to understand for what people you are creating Jekyll-admin. I expect most end-users would not be very experienced with Jekyll and/or markdown, otherwise I expect the users to edit the markdown files directly. Meaning the following steps should become obsolete once the user pressed the
And be replaced by:
After all, the button is called 'New Post'. Thanks! Let me know what your plans are. 👍🏽 Regards, |
While the maintainers of this plugin does consider the very beginner Jekyll-user as part of the target demographic, this plugin cannot be considered an alternative to the more powerful / flexible Wordpress CMS.
I see. Since Jekyll will issue a warning (in the terminal console) for layouts that do not exist, setting a layout automatically could result in warnings that will confuse the novice user. So in theory, what we can do is have the What you can do to help your novice client is set front matter defaults in their config file. However, they'll get warning messages if they switch to a theme with a layout named |
Ow so there is already a way to set a default in the configs some how? |
Note: The said defaults are for Jekyll, not specific to Jekyll Admin. defaults:
- scope:
path: ''
type: posts
values:
layout: post
- scope:
path: ''
type: pages
values:
layout: page More info at https://jekyllrb.com/docs/configuration/front-matter-defaults/ |
This is great. I think this is a good "workaround" to get default values in jekyll-admin. Thanks works as expected 👍🏽 ! |
layout is almost required for every page/post, but still needs to be added manually with JekyllAdmin
Instead, layout should be present as a dedicated field for all pages/posts, similar to Title, with a select drop-down to choose from:
default
[list all other layouts present in site]
none
Thanks!
The text was updated successfully, but these errors were encountered: