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

Allows the user to modify navigation header from config.toml #12

Merged
merged 3 commits into from
Feb 18, 2019

Conversation

theorangepotato
Copy link
Contributor

This commit implements the request from #11 to allow the user to modify the header navigation links from the config.toml file.

This commit modifies config.toml and the masthead_nav.html partial.
Copy link
Owner

@jhu247 jhu247 left a comment

Choose a reason for hiding this comment

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

Great work @theorangepotato and pardon the inactivity on my part.

Looks good, but can you please rename variable names to k and v to remain consistent throughout the project. I will eventually add PR guidelines to the readme. Thanks!

* Changes layouts/partials/masthead_nav.html such that $i -> $k and $e -> $v
* Changes params.menu.name -> params.menu.label
@theorangepotato
Copy link
Contributor Author

I also felt like calling the link text name was a bit unintuitive, so I changed it to label. Let me know if you would prefer something else, like text or something.

@jhu247
Copy link
Owner

jhu247 commented Feb 17, 2019

Good call. Please change name to text and url to link so that they're consistent with the social fields.

@theorangepotato
Copy link
Contributor Author

Good point. I have implemented these changes. Let me know if you think of anything else.

@jhu247 jhu247 merged commit 7ecfa48 into jhu247:master Feb 18, 2019
@theorangepotato theorangepotato deleted the menu-config branch February 19, 2019 15:41
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

Successfully merging this pull request may close these issues.

2 participants