Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
fix: 🚑 hotfixing issues causing it impossible to create BooGi project…
Browse files Browse the repository at this point in the history
… from scratch
  • Loading branch information
filipowm committed Jul 19, 2020
1 parent 6758cb0 commit 6f5d77c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
16 changes: 5 additions & 11 deletions config/default.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
metadata: {
name: 'BooGi',
short_name: '',
short_name: 'BooGi',
description: '',
language: 'en',
url: 'http://localhost',
Expand Down Expand Up @@ -37,13 +37,6 @@ module.exports = {
theme_color: '#6b37bf',
display: 'minimal-ui',
crossOrigin: 'anonymous',
icons: [
{
src: 'src/pwa-512.png',
sizes: `512x512`,
type: `image/png`,
},
],
},
},
social: {
Expand Down Expand Up @@ -114,9 +107,10 @@ module.exports = {
rss: {
enabled: true,
showIcon: true,
copyright: '2020, Mateusz Filipowicz',
webMaster: 'Mateusz Filipowicz (matfilipowicz@gmail.com)',
managingEditor: 'Mateusz Filipowicz (matfilipowicz@gmail.com)',
title: 'My RSS feed',
copyright: '',
webMaster: 'M',
managingEditor: '',
categories: ['GatsbyJS', 'Docs'],
ttl: '60',
matchRegex: '^/',
Expand Down
2 changes: 1 addition & 1 deletion content/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'About BooGi'
showMetadata: false
editable: false
skipToC: true
showToc : false
---

:wave: **Hello!**
Expand Down
3 changes: 2 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ if (config.features.rss && config.features.rss.enabled) {
const items = allMdx.edges.map((edge) => {
const frontmatter = edge.node.frontmatter;
const fields = edge.node.parent.fields;
const rawTitle = frontmatter.metaTitle ? frontmatter.metaTitle : frontmatter.title;
const rawTitle = frontmatter.metaTitle && frontmatter.metaTitle.length > 0 ? frontmatter.metaTitle : frontmatter.title;
const title = emoji.clean(rawTitle);
const date = fields && fields.gitLogLatestDate ? fields.gitLogLatestDate : new Date();
const author =
Expand Down Expand Up @@ -225,6 +225,7 @@ if (config.features.rss && config.features.rss.enabled) {
`,
output: config.features.rss.outputPath,
match: config.features.rss.matchRegex,
title: config.features.rss.title ? config.features.rss.title : config.metadata.title
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions src/templates/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default class MDXRuntimeTest extends React.Component {
<PageTitle>
<TitleWrapper>
<Title>{docTitle}</Title>
{(editable && mdx.frontmatter.editable != false) || mdx.frontmatter.editable ? (
{docsLocation && ((editable && mdx.frontmatter.editable !== false) || mdx.frontmatter.editable === true) ? (
<EditOnRepo
location={docsLocation}
branch={gitBranch.name}
Expand Down Expand Up @@ -205,7 +205,7 @@ export const pageQuery = graphql`
showMetadata
editable
showPreviousNext
skipToC
showToc
}
}
gitBranch {
Expand Down

0 comments on commit 6f5d77c

Please sign in to comment.