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

Allow section titles to be configured to match menu items #16

Conversation

blueyetisoftware-jason
Copy link
Contributor

No description provided.

@blueyetisoftware-jason
Copy link
Contributor Author

Looks like you beat me to it with #14 . I like that PR much better

@blueyetisoftware-jason
Copy link
Contributor Author

I am reopening this one since I realized the names are not configurable on the section from #14 . This may need modification to be compatible with your other changes, but I am basically looking for a way to change the names and url for the different sections.

@hossainemruz
Copy link
Member

Perhaps, you can do something like,

section:
  name: Portfolio
  enable: true
  weight: 6
  showOnNavbar: true
  template: projects.html

Then, on the index.html page,

{{ if .section.template }}
  {{- partial .section.template . -}}
{{ else }}
  {{- partial (printf "%s.html" (replace (lower .section.name) " " "-")) . -}}
{{ end }}

@blueyetisoftware-jason
Copy link
Contributor Author

PR replaced by #20

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.

None yet

2 participants