{"size": 3038, "ext": "js", "max_stars_repo_path": "src/fragments.js", "max_stars_repo_name": "winhubsolutions/tns-gatsby", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/fragments.js", "max_issues_repo_name": "winhubsolutions/tns-gatsby", "max_issues_repo_issues_event_min_datetime": "2022-02-28T02:24:46.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-28T02:24:46.000Z", "max_forks_repo_path": "src/fragments.js", "max_forks_repo_name": "winhubsolutions/tns-gatsby", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 20.389261745, "max_line_length": 73, "alphanum_fraction": 0.3851217907}
import { graphql } from 'gatsby'

export const fragments = graphql`
    fragment Thumbnail on File {
        childImageSharp {
            fluid(maxWidth: 700) {
                ...GatsbyImageSharpFluid_withWebp
            }
        }
    }

    fragment SmallThumbnail on File {
        childImageSharp {
            fluid(maxWidth: 500) {
                ...GatsbyImageSharpFluid_withWebp
            }
        }
    }

    fragment Facebook on File {
        childImageSharp {
            facebook: fixed(width: 1024, height: 512) {
                src
                width
                height
            }
        }
    }

    fragment Twitter on File {
        childImageSharp {
            twitter: fixed(width: 1200, height: 630) {
                src
            }
        }
    }

    fragment PostPreviewContent on WpPost {
        slug
        title
        cleanTitle
        content
        databaseId
        excerpt
        cleanExcerpt
        modifiedForUser: modified(formatString: "D MMMM YYYY")
        modifiedForSchema: modified(formatString: "YYYY-MM-DD, HH:mm:ss")
        featuredImage {
            node {
                altText
                title
                localFile {
                    ...Thumbnail
                }
            }
        }
        categories {
            nodes {
                name
                slug
                description
            }
        }
        tags {
            nodes {
                name
                slug
            }
        }
        seo {
            metaDesc
        }
    }

    fragment PostContent on WpPost {
        title
        cleanTitle
        content
        excerpt
        cleanExcerpt
        featuredImage {
            node {
                altText
                title
                localFile {
                    ...Thumbnail
                    ...Facebook
                    ...Twitter
                }
            }
        }
        categories {
            nodes {
                name
                slug
                description
            }
        }
        tags {
            nodes {
                name
                slug
            }
        }
        seo {
            metaDesc
            title
        }
    }

    fragment PageContent on WpPage {
        title
        cleanTitle
        content
        featuredImage {
            node {
                localFile {
                    ...Facebook
                    ...Twitter
                }
            }
        }
        seo {
            metaDesc
            metaKeywords
            metaRobotsNofollow
            metaRobotsNoindex
            opengraphDescription
            opengraphTitle
            title
            twitterDescription
            twitterTitle
        }
    }

    fragment RelatedContent on WpPost {
        slug
        title
        cleanTitle
        featuredImage {
            node {
                localFile {
                    ...SmallThumbnail
                }
            }
        }
    }
`
