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

Build Sponsor page and Sponsor Block #4

Open
Kingdutch opened this issue Jan 22, 2020 · 0 comments
Open

Build Sponsor page and Sponsor Block #4

Kingdutch opened this issue Jan 22, 2020 · 0 comments

Comments

@Kingdutch
Copy link
Contributor

We need a sponsor page that shows the various levels of sponsorships. The Barcelona Sponsorpage can be used as example. The top levels should possibly also be shown on the frontpage.

To add sponsordata the content/sponsors/example.md can be copied.

The following GraphQL query can be used to select sponsordata in a view.

allSponsors: allMarkdownRemark(
    filter: { 
      fields: { collection: { eq: "sponsors" } },
      frontmatter: { hidden:{ne: true}}
    }
  ) {
    nodes {
      frontmatter {
        name
        link
        group
        level
        image { 
        	childImageSharp {
              fluid(maxWidth: 300) {
                  ...GatsbyImageSharpFluid
              }
          }
        }
      }
    }
  }
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

No branches or pull requests

1 participant