UNPKG

gatsby-plugin-excerpts

Version:
48 lines (44 loc) 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var IExcerptSourceConfigurationBase = /** @class */ function () { function IExcerptSourceConfigurationBase() {} return IExcerptSourceConfigurationBase; }(); exports.IExcerptSourceConfigurationBase = IExcerptSourceConfigurationBase; /* const example: IExcerptsPluginConfiguration = { sources: { "excerptElement": { type: "htmlQuery", sourceField: "html", excerptSelector: ".custom-block.excerpt .custom-block-body", stripSelector: "a" }, "default": { type: "htmlQuery", sourceField: "html", excerptSelector: "html > *", ignoreSelector: "img, .custom-block.iconBox, .custom-block.aside, details, .gatsby-highlight", stripSelector: "a" } }, sourceSets: { "markdownHtml": [ "excerptElement", "default" ] }, excerpts: { snippet: { type: "html", nodeTypeSourceSet: { "MarkdownRemark": "markdownHtml" } } } }; */