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

Improve documentation for config options #760

Merged
merged 2 commits into from Nov 17, 2023
Merged

Improve documentation for config options #760

merged 2 commits into from Nov 17, 2023

Conversation

Because789
Copy link
Contributor

This update to _config.yml tries to avoid some confusion I ran into after choosing Minima as the theme for my GH Pages site. I did not want to build locally, but let GitHub do the job. Here are the changes I made:

  • Since GH Pages still uses Minima 2.5.1, I added a block on how to use the latest Minima version anyway.
  • My header_pages did not show up in the specified order. It was an indentation error, for some reason I thought that it is a minima setting (minima.header_pages). I placed it before the minima block to avoid this confusion.
  • The skin setting is missing in the current default _config.yml, I added it here.

This update to _config.yml tries to avoid some confusion I ran into after choosing Minima as the theme for my GH Pages site. I did not want to build locally, but let GitHub do the job. Here are the changes I made:

- Since GH Pages still uses Minima 2.5.1, I added a block on how to use the latest Minima version anyway. 
- My header_pages did not show up in the specified order. It was an indentation error, for some reason I thought that it is a minima setting (minima.header_pages). I placed it before the minima block to avoid this confusion.
- The skin setting is missing in the current default _config.yml, I added it here.
Copy link
Member

@mattr- mattr- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm on board with this in general. I left one inline comment.

Would you mind updating the PR title to be a short sentence describing your changes? PR titles get used in History.markdown. Something like Improve documentation for config options or something like that would be ideal.

Thanks for your contribution! ❤️

_config.yml Outdated
# Minima date format.
# Refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this.
#
# date_format: "%b %-d, %Y"
date_format: "%b %-d, %Y"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't see this change described in your PR description. Was it intentional to uncomment this? If not, would you mind recommenting it? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I forgot about that, sorry, it was late. The idea was, that the config file should reflect the sample site (https://jekyll.github.io/minima/). I just tested it, and it seems that the default date value is "%b %d, %Y" anyway (I couldn't find out what the minus before the day means, it seems to do nothing). I would therefor suggest, to comment the line again, but switch it to a format which is not the default (we could mention the default in the comment above).

@Because789 Because789 changed the title Update _config.yml Improve documentation for config options Nov 14, 2023
Here is a commit with the suggested changes to the date format block. I also fixed the consistency of the spelling of minima: "Minima" in comments, "minima" in settings.
Copy link
Member

@mattr- mattr- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work here! ❤️

@jekyllbot: merge +docs

@jekyllbot jekyllbot merged commit ac651a1 into jekyll:master Nov 17, 2023
1 check passed
jekyllbot added a commit that referenced this pull request Nov 17, 2023
@Because789 Because789 deleted the patch-1 branch November 17, 2023 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants