GithubHelp home page GithubHelp logo

qardsjs / qards Goto Github PK

View Code? Open in Web Editor NEW
236.0 16.0 18.0 67.3 MB

Qards is a blogging platform focused on performance and on closing the gap between content publishers and developers: https://qards.io

License: MIT License

JavaScript 11.43% TypeScript 86.32% CSS 2.24%
blog platform blogging blogging-system blogging-platform gatsbyjs

qards's People

Contributors

ciokan-public avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qards's Issues

Allow using external image in Image card

Sometimes users want to use external images instead of uploading the image to the repository.
Using external image is very painful at the moment. If I use markdown grammar(![]()) to insert external images, it will be converted to !\[]() and broken after switching back to rich text mode. I think this conversion should be disabled and maybe the image card should allow users to use external image.

WebpackError: ReferenceError: performance is not defined

2:15:55 PM: error Building static HTML for pages failed
2:15:55 PM: See our docs page on debugging HTML builds for help https://goo.gl/yL9lND
2:15:55 PM:   44 | 		if (post.authors && post.authors.length) {
2:15:55 PM:   45 | 			return <Author className={'post-card-author'}>
2:15:55 PM: > 46 | 				{post.authors[0].frontmatter.avatar && !performance &&
2:15:55 PM:      | 				                                        ^
2:15:55 PM:   47 | 				<TrackVisibility once>
2:15:55 PM:   48 | 					<Gravatar>
2:15:55 PM:   49 | 						<Img fixed={post.authors[0].frontmatter.avatar.image.fixed}/>
2:15:55 PM: 
2:15:55 PM:   WebpackError: ReferenceError: performance is not defined
2:15:55 PM:   
2:15:55 PM:   - index.tsx:46 Function.renderAuthor
2:15:55 PM:     lib/src/components/posts/index.tsx:46:45
2:15:55 PM:   
2:15:55 PM:   - index.tsx:135 
2:15:55 PM:     lib/src/components/posts/index.tsx:135:34
2:15:55 PM:   
2:15:55 PM:   
2:15:55 PM:   - index.tsx:102 Posts.render
2:15:55 PM:     lib/src/components/posts/index.tsx:102:14
2:15:55 PM:   
2:15:55 PM:   - bootstrap:19 c
2:15:55 PM:     lib/webpack/bootstrap:19:1
2:15:55 PM:   
2:15:55 PM:   
2:15:55 PM:   - bootstrap:25 a.render
2:15:55 PM:     lib/webpack/bootstrap:25:1
2:15:55 PM:   
2:15:55 PM:   - bootstrap:24 a.read
2:15:55 PM:     lib/webpack/bootstrap:24:1
2:15:55 PM:   
2:15:55 PM:   - bootstrap:36 renderToString
2:15:55 PM:     lib/webpack/bootstrap:36:1
2:15:55 PM:   
2:15:55 PM:   - static-entry.js:190 Module../.cache/static-entry.js.__webpack_exports__.defa    ult
2:15:55 PM:     lib/.cache/static-entry.js:190:18
2:15:55 PM:   
2:15:55 PM:   - bootstrap:24 Promise
2:15:55 PM:     lib/webpack/bootstrap:24:1
2:15:55 PM:   
2:15:56 PM:   
2:15:56 PM:   - default-html.js:22 Promise._resolveFromExecutor
2:15:56 PM:     lib/.cache/default-html.js:22:13
2:15:56 PM:   
2:15:56 PM:   - bootstrap:68 new Promise
2:15:56 PM:     lib/webpack/bootstrap:68:1
2:15:56 PM:   
2:15:56 PM:   
2:15:56 PM:   - bootstrap:5 tryCatcher
2:15:56 PM:     lib/webpack/bootstrap:5:1

This is introduced in today's commits.

WebpackError: TypeError: Cannot read property 'length' of undefined

I updated to the latest commit. And the following error occurs when building:

5:04:13 PM: error Building static HTML for pages failed
5:04:13 PM: See our docs page on debugging HTML builds for help https://goo.gl/yL9lND
5:04:13 PM:   77 |
5:04:13 PM:   78 | 						<Box mb={postsMb}>
5:04:13 PM: > 79 | 							{posts.length> 0 && <Posts
5:04:13 PM:      | 							       ^
5:04:13 PM:   80 | 								showExcerpt={getPostsConfig(['showExcerpts'], true)}
5:04:13 PM:   81 | 								posts={posts}
5:04:13 PM:   82 | 								title={`Latest articles`}
5:04:13 PM: 
5:04:13 PM:   WebpackError: TypeError: Cannot read property 'length' of undefined
5:04:13 PM:   
5:04:13 PM:   - index.tsx:79 IndexPage.render
5:04:13 PM:     lib/src/components/pages/posts/index.tsx:79:15
5:04:13 PM:   
5:04:13 PM:   - bootstrap:19 c
5:04:13 PM:     lib/webpack/bootstrap:19:1
5:04:13 PM:   
5:04:13 PM:   
5:04:13 PM:   - bootstrap:25 a.render
5:04:13 PM:     lib/webpack/bootstrap:25:1
5:04:13 PM:   
5:04:13 PM:   - bootstrap:24 a.read
5:04:13 PM:     lib/webpack/bootstrap:24:1
5:04:13 PM:   
5:04:13 PM:   - bootstrap:36 renderToString
5:04:13 PM:     lib/webpack/bootstrap:36:1
5:04:13 PM:   
5:04:13 PM:   - static-entry.js:190 Module../.cache/static-entry.js.__webpack_exports__.defa    ult
5:04:13 PM:     lib/.cache/static-entry.js:190:18
5:04:13 PM:   
5:04:13 PM:   - bootstrap:24 Promise
5:04:13 PM:     lib/webpack/bootstrap:24:1
5:04:13 PM:   
5:04:13 PM:   
5:04:13 PM:   - default-html.js:22 Promise._resolveFromExecutor
5:04:13 PM:     lib/.cache/default-html.js:22:13
5:04:13 PM:   
5:04:13 PM:   - bootstrap:68 new Promise
5:04:13 PM:     lib/webpack/bootstrap:68:1
5:04:13 PM:   
5:04:14 PM:   
5:04:14 PM:   - bootstrap:5 tryCatcher
5:04:14 PM:     lib/webpack/bootstrap:5:1
5:04:14 PM:   
5:04:14 PM:   - bootstrap:50 MappingPromiseArray._promiseFulfilled
5:04:14 PM:     lib/webpack/bootstrap:50:1
5:04:14 PM:   
5:04:14 PM:   - api-runner-ssr.js:6 MappingPromiseArray.PromiseArray._iterate
5:04:14 PM:     lib/.cache/api-runner-ssr.js:6:27
5:04:14 PM:   
5:04:14 PM:   - bootstrap:67 MappingPromiseArray.init
5:04:14 PM:     lib/webpack/bootstrap:67:1

build failed: TypeError: Cannot read property 'image' of null

I've encountered into a list of failed deploys. The log is like this:

10:58:11 PM:   43 | 			<Wrapper to={tokenizedPost.fields.slug}>
10:58:11 PM:   44 | 				<Flex flexWrap="wrap">
10:58:11 PM: > 45 | 					{tokenizedPost.frontmatter.hero.image && <Box pr={30} width={this.heroImgBoxWidth}>
10:58:11 PM:      | 					                                ^
10:58:11 PM:   46 | 						<Image>
10:58:11 PM:   47 | 							<Img fluid={tokenizedPost.frontmatter.hero.image.sharp.fluid}/>
10:58:11 PM:   48 | 						</Image>
10:58:11 PM: 
10:58:11 PM:   WebpackError: TypeError: Cannot read property 'image' of null
10:58:11 PM:   
10:58:11 PM:   - index.tsx:45 FeaturedPost.render
10:58:11 PM:     lib/src/components/featured-post/index.tsx:45:38

Does a image is required for every post?

Highlight disabled in TOC

In the earlier version, heading of the current paragraph is highlighted in Table of Contents. This behaviour disappeared in the latest version. Is this by design?

Performance mode setting

In performance mode images on pages with posts (homepage, category, tag, related posts etc) will not load images. In performance mode we should also aim for a native supported font and not load anything external.

Deploy to Netlify not working

Not sure if it's related to #67 but here's the log:

5:29:23 AM: Build ready to start
5:29:25 AM: build-image version: 84aca9ba39e0ee86ba194760fbfc51a808f62543
5:29:25 AM: buildbot version: 57d44fd1631cc3fff8b38fbaf88d3d04f946418a
5:29:26 AM: Fetching cached dependencies
5:29:26 AM: Failed to fetch cache, continuing with build
5:29:26 AM: Starting to prepare the repo for build
5:29:26 AM: No cached dependencies found. Cloning fresh repo
5:29:26 AM: git clone https://github.com/QardsJs/qards
5:29:28 AM: Preparing Git Reference refs/heads/master
5:29:29 AM: Found netlify.toml. Overriding site configuration
5:29:29 AM: Starting build script
5:29:29 AM: Installing dependencies
5:29:30 AM: Downloading and installing node v8.15.0...
5:29:30 AM: Downloading https://nodejs.org/dist/v8.15.0/node-v8.15.0-linux-x64.tar.xz...
5:29:30 AM:   0.9%
5:29:30 AM: 
##################
5:29:30 AM:                               25.5%
5:29:30 AM: 
################################################
5:29:30 AM: ########                  78.4%
######################################################################## 100.0%
5:29:30 AM: Computing checksum with sha256sum
5:29:30 AM: Checksums matched!
5:29:33 AM: Now using node v8.15.0 (npm v6.4.1)
5:29:33 AM: Attempting ruby version 2.3.6, read from environment
5:29:34 AM: Using ruby version 2.3.6
5:29:34 AM: Using PHP version 5.6
5:29:34 AM: Started restoring cached node modules
5:29:34 AM: Finished restoring cached node modules
5:29:34 AM: Installing NPM modules using NPM version 6.4.1
5:29:45 AM: npm
5:29:45 AM: WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version.
5:29:45 AM: npm WARN deprecated [email protected]: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
5:29:48 AM: npm WARN
5:29:48 AM: deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
5:31:03 AM: > [email protected] install /opt/build/repo/node_modules/inotify
5:31:04 AM: > node-gyp rebuild
5:31:04 AM: make: Entering directory `/opt/build/repo/node_modules/inotify/build'
5:31:04 AM:   CXX(target) Release/obj.target/inotify/src/bindings.o
5:31:05 AM: ../src/bindings.cc: In static member function ‘static void NodeInotify::Inotify::Callback(uv_poll_t*, int, int)’:
5:31:05 AM: ../src/bindings.cc:279:34: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’ is deprecated (declared at ../../nan/nan.h:1652) [-Wdeprecated-declarations]
5:31:05 AM:      callback.Call(handle, 1, argv);
5:31:05 AM:                                   ^
5:31:06 AM:   CXX(target) Release/obj.target/inotify/src/node_inotify.o
5:31:06 AM:   SOLINK_MODULE(target) Release/obj.target/inotify.node
5:31:07 AM:   COPY Release/inotify.node
5:31:07 AM: make: Leaving directory `/opt/build/repo/node_modules/inotify/build'
5:31:07 AM: > [email protected] install /opt/build/repo/node_modules/sharp
5:31:07 AM: > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
5:31:08 AM: info
5:31:08 AM:  sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.0/libvips-8.7.0-linux-x64.tar.gz
5:31:10 AM: > [email protected] install /opt/build/repo/node_modules/phantomjs-prebuilt
5:31:10 AM: > node install.js
5:31:10 AM: PhantomJS not found on PATH
5:31:10 AM: Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
5:31:10 AM: Saving to /opt/buildhome/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
5:31:10 AM: Receiving...
5:31:11 AM: Received 22866K total.
5:31:11 AM: Extracting tar contents (via spawned process)
5:31:15 AM: Removing /opt/build/repo/node_modules/phantomjs-prebuilt/lib/phantom
5:31:15 AM: Copying extracted folder /opt/buildhome/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1548941471860/phantomjs-2.1.1-linux-x86_64 -> /opt/build/repo/node_modules/phantomjs-prebuilt/lib/phantom
5:31:15 AM: Writing location.js file
5:31:15 AM: Done. Phantomjs binary available at /opt/build/repo/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
5:31:15 AM: > [email protected] install /opt/build/repo/node_modules/node-sass
5:31:15 AM: > node scripts/install.js
5:31:16 AM: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/linux-x64-57_binding.node
5:31:17 AM: Download complete
5:31:17 AM: Binary saved to /opt/build/repo/node_modules/node-sass/vendor/linux-x64-57/binding.node
5:31:17 AM: Caching binary to /opt/buildhome/.npm/node-sass/4.11.0/linux-x64-57_binding.node
5:31:19 AM: > [email protected] postinstall /opt/build/repo/node_modules/cwebp-bin
5:31:19 AM: > node lib/install.js
5:31:19 AM:   ✔ cwebp pre-build test passed successfully
5:31:19 AM: > [email protected] postinstall /opt/build/repo/node_modules/mozjpeg
5:31:19 AM: > node lib/install.js
5:31:20 AM:   ✔ mozjpeg pre-build test passed successfully
5:31:20 AM: > [email protected] postinstall /opt/build/repo/node_modules/pngquant-bin
5:31:20 AM: > node lib/install.js
5:31:21 AM:   ✔ pngquant pre-build test passed successfully
5:31:21 AM: > [email protected] postinstall /opt/build/repo/node_modules/date-fns
5:31:21 AM: > node ./docs/printV2Notice.js
5:31:21 AM: 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
5:31:21 AM:   Thank you for testing (⩗) date-fns v2!
5:31:21 AM:   In v2 we've introduced a number of breaking changes
5:31:21 AM:   that make date-fns even more consistent and reliable.
5:31:21 AM:   Please read the changelog carefully: https://git.io/fxCWb
5:31:21 AM:   Please support us at Open Collective: https://opencollective.com/date-fns
5:31:21 AM: 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
5:31:21 AM: > [email protected] postinstall /opt/build/repo/node_modules/node-sass
5:31:21 AM: > node scripts/build.js
5:31:21 AM: Binary found at /opt/build/repo/node_modules/node-sass/vendor/linux-x64-57/binding.node
5:31:21 AM: Testing binary
5:31:21 AM: Binary is fine
5:31:21 AM: > [email protected] postinstall /opt/build/repo/node_modules/styled-components
5:31:21 AM: > node ./scripts/postinstall.js || exit 0
5:31:21 AM: (node:1268) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit
5:31:21 AM: Use styled-components at work? Consider supporting our development efforts at https://opencollective.com/styled-components
5:31:31 AM: npm notice
5:31:32 AM:  created a lockfile as package-lock.json. You should commit this file.
5:31:32 AM: npm WARN [email protected] requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
5:31:32 AM: npm WARN [email protected] requires a peer of module-igniter@^1.1.0 but none is installed. You must install peer dependencies yourself.
5:31:32 AM: npm WARN [email protected] requires a peer of netlify-cms@^2.0.0 | ^1.0.0 but none is installed. You must install peer dependencies yourself.
5:31:32 AM: npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
5:31:32 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:32 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:32 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:32 AM: npm WARN [email protected] requires a peer of immutable@^3.8.2 but none is installed. You must install peer dependencies yourself.
5:31:32 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:32 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:32 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@^3.7.6 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@>=3.6.2 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of redux@^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@>=3.8.1 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@^3.8.2 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of slate@^0.32.0 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@^3.8.1 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of slate@^0.33.3 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@>=3.8.1 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@>=3.8.1 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN [email protected] requires a peer of immutable@>=3.8.1 but none is installed. You must install peer dependencies yourself.
5:31:33 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
5:31:33 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
5:31:34 AM: added 2975 packages from 2090 contributors and audited 69263 packages in 115.893s
5:31:34 AM: found 0 vulnerabilities
5:31:34 AM: NPM modules installed
5:31:34 AM: Started restoring cached go cache
5:31:34 AM: Finished restoring cached go cache
5:31:34 AM: unset GOOS;
5:31:34 AM: unset GOARCH;
5:31:34 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.10.linux.amd64';
5:31:34 AM: export PATH="/opt/buildhome/.gimme/versions/go1.10.linux.amd64/bin:${PATH}";
5:31:34 AM: go version >&2;
5:31:34 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.10.linux.amd64.env';
5:31:34 AM: go version go1.10 linux/amd64
5:31:34 AM: Installing missing commands
5:31:34 AM: Verify run directory
5:31:34 AM: Executing user command: npm run build
5:31:34 AM: > [email protected] build /opt/build/repo
5:31:34 AM: > gatsby build
5:31:34 AM: success open and validate gatsby-configs — 0.009 s
5:31:35 AM: success load plugins — 0.550 s
5:31:36 AM: success onPreInit — 1.442 s
5:31:36 AM: success delete html and css files from previous builds — 0.041 s
5:31:36 AM: success initialize cache — 0.011 s
5:31:36 AM: success copy gatsby files — 0.027 s
5:31:36 AM: success onPreBootstrap — 0.011 s
5:31:37 AM: (node:1573) [DEP0016] DeprecationWarning: 'root' is deprecated, use 'global'
5:31:37 AM: success source and transform nodes — 1.172 s
5:31:38 AM: success building schema — 0.593 s
5:31:38 AM: [ { GraphQLError: Cannot query field "created_at" on type "frontmatter".
5:31:38 AM:     at Object.Field (/opt/build/repo/node_modules/graphql/validation/rules/FieldsOnCorrectType.js:65:31)
5:31:38 AM:     at Object.enter (/opt/build/repo/node_modules/graphql/language/visitor.js:324:29)
5:31:38 AM:     at Object.enter (/opt/build/repo/node_modules/graphql/language/visitor.js:366:25)
5:31:38 AM:     at visit (/opt/build/repo/node_modules/graphql/language/visitor.js:254:26)
5:31:38 AM:     at visitUsingRules (/opt/build/repo/node_modules/graphql/validation/validate.js:74:22)
5:31:38 AM:     at validate (/opt/build/repo/node_modules/graphql/validation/validate.js:59:10)
5:31:38 AM:     at graphqlImpl (/opt/build/repo/node_modules/graphql/graphql.js:106:50)
5:31:38 AM:     at /opt/build/repo/node_modules/graphql/graphql.js:66:223
5:31:38 AM:     at Promise._execute (/opt/build/repo/node_modules/bluebird/js/release/debuggability.js:313:9)
5:31:38 AM:     at Promise._resolveFromExecutor (/opt/build/repo/node_modules/bluebird/js/release/promise.js:483:18)
5:31:38 AM:     at new Promise (/opt/build/repo/node_modules/bluebird/js/release/promise.js:79:10)
5:31:39 AM:     at graphql (/opt/build/repo/node_modules/graphql/graphql.js:63:10)
5:31:39 AM:     at graphqlRunner (/opt/build/repo/node_modules/gatsby/dist/bootstrap/index.js:349:14)
5:31:39 AM:     at Promise (/opt/build/repo/gatsby-node.js:197:4)
5:31:39 AM:     at Promise._execute (/opt/build/repo/node_modules/bluebird/js/release/debuggability.js:313:9)
5:31:39 AM:     at Promise._resolveFromExecutor (/opt/build/repo/node_modules/bluebird/js/release/promise.js:483:18)
5:31:39 AM:     message: 'Cannot query field "created_at" on type "frontmatter".',
5:31:39 AM:     locations: [ [Object] ],
5:31:39 AM:     path: undefined } ]
5:31:39 AM: error gatsby-node.js returned an error
5:31:39 AM: 
5:31:39 AM:   TypeError: Cannot read property 'posts' of undefined
5:31:39 AM:   
5:31:39 AM:   - gatsby-node.js:236 graphql.then
5:31:39 AM:     /opt/build/repo/gatsby-node.js:236:36
5:31:39 AM:   
5:31:39 AM:   - util.js:16 tryCatcher
5:31:39 AM:     [repo]/[bluebird]/js/release/util.js:16:23
5:31:39 AM:   
5:31:39 AM:   - promise.js:512 Promise._settlePromiseFromHandler
5:31:39 AM:     [repo]/[bluebird]/js/release/promise.js:512:31
5:31:40 AM:   
5:31:40 AM:   - promise.js:569 Promise._settlePromise
5:31:40 AM:     [repo]/[bluebird]/js/release/promise.js:569:18
5:31:40 AM:   
5:31:40 AM:   - promise.js:606 Promise._settlePromiseCtx
5:31:40 AM:     [repo]/[bluebird]/js/release/promise.js:606:10
5:31:40 AM:   
5:31:40 AM:   - async.js:142 _drainQueueStep
5:31:40 AM:     [repo]/[bluebird]/js/release/async.js:142:12
5:31:40 AM:   
5:31:40 AM:   - async.js:131 _drainQueue
5:31:40 AM:     [repo]/[bluebird]/js/release/async.js:131:9
5:31:40 AM:   
5:31:40 AM:   - async.js:147 Async._drainQueues
5:31:40 AM:     [repo]/[bluebird]/js/release/async.js:147:5
5:31:40 AM:   
5:31:40 AM:   - async.js:17 Immediate.Async.drainQueues
5:31:40 AM:     [repo]/[bluebird]/js/release/async.js:17:14
5:31:40 AM:   
5:31:40 AM: 
5:31:40 AM: npm ERR! code ELIFECYCLE
5:31:40 AM: npm ERR! errno 1
5:31:40 AM: npm ERR! [email protected] build: `gatsby build`
5:31:40 AM: npm ERR! Exit status 1
5:31:40 AM: npm ERR!
5:31:41 AM: npm ERR! Failed at the [email protected] build script.
5:31:41 AM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
5:31:41 AM: npm ERR! A complete log of this run can be found in:
5:31:41 AM: npm ERR!     /opt/buildhome/.npm/_logs/2019-01-31T13_31_38_474Z-debug.log
5:31:41 AM: Caching artifacts
5:31:41 AM: Started saving node modules
5:31:41 AM: Finished saving node modules
5:31:41 AM: Started saving pip cache
5:31:41 AM: Finished saving pip cache
5:31:41 AM: Started saving emacs cask dependencies
5:31:41 AM: Finished saving emacs cask dependencies
5:31:41 AM: Started saving maven dependencies
5:31:41 AM: Finished saving maven dependencies
5:31:41 AM: Started saving boot dependencies
5:31:41 AM: Finished saving boot dependencies
5:31:41 AM: Started saving go dependencies
5:31:41 AM: Finished saving go dependencies
5:31:41 AM: Cached node version v8.15.0
5:31:41 AM: Error running command: Build script returned non-zero exit code: 1
5:31:41 AM: Failing build: Failed to build site
5:31:42 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
5:31:42 AM: Finished processing build request in 2m16.329687524s

Allow tokens in key places

The idea here is to allow the placement of various types of tokens inside key places such as the headers, title or excerpt. Tokens such as the current year may be used in titles to refresh them when a given year changes; the number of cards in the post may also be used in posts with titles such as: 16 tools to help you writing where you need to change that counter every time you add a new tool in that list.

Categories not found

I have three categories in my blog. After each build, only 1 of 3 would be available. Other two becomes not found page.

Is there no landing page at all?

The official website qards.io does have a landing page. However, my blog is just a Not Found page. I tried to figure out if there is any way to get a landing page but I failed. So I come to ask if currently there is no landing page at all and not-found is the expected behaviour. If this is by design, a not-found page as a default landing page is just too...unfriendly, you know.

I understand this project is in early development and something may not be functional, so I have to come here and ask. Sorry for the trouble.

SyntaxError: Unexpected token t in JSON at position 112

This happens after I pulled upstream.

image

Seems the fault happens when rendering markdown file. My blog is publically available at fr0der1c/blog, I guess this can help you find the problem.

There is some problem with rendering after applying upstream commits these days. Another problem is that the line separater seems broken, and the paragraphs after a quote turn into part of a quote.

image

CJK character support

I've created a post with no Latin characters and the filename in git becomes static/content/collections/posts/.md. I assume if I have two posts with JCK characters would cause more trouble?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.