UNPKG

gatsby-theme-advanced

Version:
44 lines (43 loc) 996 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostTemplateQuery = void 0; const gatsby_1 = require("gatsby"); const index_1 = __importDefault(require("./index")); const TemplateCompnent = index_1.default; exports.PostTemplateQuery = (0, gatsby_1.graphql) ` query BlogPostBySlug($slug: String!) { mdx(fields: { slug: { eq: $slug } }) { body timeToRead excerpt frontmatter { title description cover { publicURL childImageSharp { gatsbyImageData } } coverAlt datePublished dateModified category tags } fields { slug route pathName url } internal { content } } } `; exports.default = TemplateCompnent;