feat: feed feature, typescript, remove google, fix errs & warns
publish / Build-and-publish (push) Successful in 13m32s
publish / Build-and-publish (push) Successful in 13m32s
This commit is contained in:
+66
-9
@@ -23,7 +23,6 @@ module.exports = {
|
||||
name: `Data Controller | Flexible and Secure SAS® Data Modification`,
|
||||
short_name: `Data Controller`,
|
||||
description: `Data Controller for SAS® is dedicated to helping users, admins and developers manage their data. A zero code approach with Data Lineage, Catalog, Dictionary, Validation, Workflow, Alerts and more.`,
|
||||
homepage_url: 'https://datacontroller.io/',
|
||||
start_url: '/',
|
||||
background_color: '#fff',
|
||||
theme_color: '#314351',
|
||||
@@ -51,6 +50,14 @@ module.exports = {
|
||||
},
|
||||
__key: 'blog'
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-source-filesystem`,
|
||||
options: {
|
||||
path: `./content/feed`,
|
||||
name: `feed`
|
||||
},
|
||||
__key: 'feed'
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-source-filesystem`,
|
||||
options: {
|
||||
@@ -103,13 +110,6 @@ module.exports = {
|
||||
},
|
||||
__key: 'pages'
|
||||
},
|
||||
{
|
||||
resolve: `gatsby-plugin-google-fonts`,
|
||||
options: {
|
||||
fonts: [`Montserrat\:300,400,500`],
|
||||
display: 'swap'
|
||||
}
|
||||
},
|
||||
{
|
||||
resolve: 'gatsby-plugin-local-search',
|
||||
options: {
|
||||
@@ -131,7 +131,7 @@ module.exports = {
|
||||
// required.
|
||||
query: `
|
||||
{
|
||||
remark: allMarkdownRemark (filter: {fileAbsolutePath: {regex: "/content/blog/"}}) {
|
||||
remark: allMarkdownRemark (filter: {fileAbsolutePath: {regex: "/content\\/(blog|feed)\\//"}}) {
|
||||
posts: edges {
|
||||
post: node {
|
||||
id
|
||||
@@ -184,6 +184,63 @@ module.exports = {
|
||||
html: data.post.html
|
||||
}))
|
||||
}
|
||||
},
|
||||
{
|
||||
resolve: 'gatsby-plugin-feed',
|
||||
options: {
|
||||
query: `
|
||||
{
|
||||
site {
|
||||
siteMetadata {
|
||||
title
|
||||
description
|
||||
siteUrl
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
feeds: [
|
||||
{
|
||||
serialize: ({ query: { site, allMarkdownRemark } }) =>
|
||||
allMarkdownRemark.nodes.map((node) => ({
|
||||
title: node.frontmatter.title,
|
||||
description: node.frontmatter.description || '',
|
||||
date: node.frontmatter.date,
|
||||
url: site.siteMetadata.siteUrl + node.fields.slug,
|
||||
guid: site.siteMetadata.siteUrl + node.fields.slug,
|
||||
author: node.frontmatter.author,
|
||||
categories: node.frontmatter.tags || [],
|
||||
custom_elements: [{ 'content:encoded': node.html }]
|
||||
})),
|
||||
query: `
|
||||
{
|
||||
allMarkdownRemark(
|
||||
sort: { frontmatter: { date: DESC } }
|
||||
filter: {
|
||||
fileAbsolutePath: { regex: "/content\\/(blog|feed)\\//" }
|
||||
}
|
||||
) {
|
||||
nodes {
|
||||
html
|
||||
fields {
|
||||
slug
|
||||
}
|
||||
frontmatter {
|
||||
title
|
||||
description
|
||||
date
|
||||
author
|
||||
tags
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
output: '/rss.xml',
|
||||
title: 'Data Controller — Blog & Feed'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user