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

Abstract site footer menus to data files #37

Open
reubenlillie opened this issue Aug 4, 2019 · 0 comments
Open

Abstract site footer menus to data files #37

reubenlillie opened this issue Aug 4, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@reubenlillie
Copy link
Collaborator

Right now the collection of menus in the footer are hard coded. For code reuse and modularity, this feature really should be created from data files, like a siteFooter object in src/data/site.json. Then each submenu could be a child object of a menus property. For example:

"siteFooter": {
  "menus": [
    [
      {
        "href": "/about/",
        "text": "About"
      },
      {
        "href": "/news/",
        "text": "News"
      }
    ],
    [
      {
        "href": "/directory/",
        "text": "Find a Church"
      },
      {
        "href": "/map/",
        "text": "District Map"
      }
    ],
  ]
}
@reubenlillie reubenlillie added the enhancement New feature or request label Aug 4, 2019
@reubenlillie reubenlillie added this to the Initial launch milestone Aug 4, 2019
@reubenlillie reubenlillie self-assigned this Aug 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant