calpa / gatsby-starter-calpa-blog Goto Github PK
View Code? Open in Web Editor NEWCalpa's Blog (GatsbyJS Starter X Netlify CMS)
Home Page: https://v1.calpa.me/
License: MIT License
Calpa's Blog (GatsbyJS Starter X Netlify CMS)
Home Page: https://v1.calpa.me/
License: MIT License
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
As the blog is view and using Gitalk comment system, there is no complicated actions included in this blog system.
Remove actions, reducers and state Redux components.
5.4.1
to 5.4.2
.This version is covered by your current version range and after updating it in your project the build failed.
@fortawesome/free-brands-svg-icons is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
CodeFactor found an issue: 'location' is missing in props validation
It's currently on:
src\pages\tags\index.js:170
Is your feature request related to a problem? Please describe.
This project has installed many plugins, yet the features of this project is still in old version.
Describe the solution you'd like
One more thing, the card component will hide the card image if there is no card image provided.
Describe the bug
For now, the total page number is hard coded.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The total page number will be calculated during the producing of pages
template.
If there is only one page, then return max number of pages = 1
Additional context
Add any other context about the problem here.
In order to get ready the project for more contributors, CONTRIBUTING.md is required to be added.
The bottom part is extracted from a good CONTRIBUTING.md example: watson-developer-cloud/assistant-simple
Code:
Commits should follow the Angular commit message guidelines. This is because our release tool uses this format for determining release versions and generating changelogs.
Issues:
If you encounter an issue with the Node.js library, you are welcome to submit a bug report. Before that, please search for similar issues. It's possible somebody has already encountered this issue.
Pull Requests:
If you want to contribute to the repository, follow these steps:
Fork the repo.
Develop and test your code changes: npm install
Commit your changes.
Push to your fork and submit a pull request.
The only thing to do is to add a CONTRIBUTING.md file.
Is your feature request related to a problem? Please describe.
The image needs to be responsive.
Describe the solution you'd like
Integrate CloudImage.io to resize the image automatically
2.0.35
to 2.0.36
.This version is covered by your current version range and after updating it in your project the build failed.
gatsby is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 22 commits.
c330454
chore(release): Publish
32f786a
Implement two fallbacks for getting extension when creating remote file (#9349)
d243222
add tutorial for gatsby+contentful+netlify (#9618)
0c0ac46
examples: Minimal mobx example (#9064)
3a8a781
Remove eslint-plugin-flow-vars (#9622)
a9b8a81
chore: removed unused imports and changes related to code formatting (#9610)
9c481f4
feat(www): better social sharing support (#9291)
a55bc13
feat(gatsby-plugin-sass): Accept css-loader options (#9462)
2df5368
feat(showcase): add QHacks to site showcase (#9617)
53c7e25
Update Strapi article : Building a static blog using Gatsby and Strapi (#9569)
1631d33
feat(showcase): add Asian Art Museum to showcase (#9589)
00284e0
fix(gatsby-plugin-offline): don't precache the index page (#9603)
0f97ea3
docs: add missing eslint-plugin-node plugin to eslint docs (#9600)
47a800c
fix(gatsby-source-mongodb): sanitize type of nodes to only contain alphanumeric chars and underscores (#7246)
00f2992
Add Clubhouse to showcases (#9604)
There are 22 commits in total.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
CodeFactor found multiple issues:
src\components\ShareBox\index.scss:8
src\components\ShareBox\index.scss:9
src\components\ShareBox\index.scss:10
$ npm version
{ blog: '1.0.0',
npm: '6.4.1',
ares: '1.15.0',
cldr: '34.0',
http_parser: '2.8.0',
icu: '63.1',
llhttp: '1.0.1',
modules: '67',
napi: '3',
nghttp2: '1.34.0',
node: '11.4.0',
openssl: '1.1.0j',
tz: '2018e',
unicode: '11.0',
uv: '1.24.0',
v8: '7.0.276.38-node.13',
zlib: '1.2.11' }
$ npm start
> [email protected] start C:\Code\test
> npm run fetch:config && npm run develop
> [email protected] fetch:config C:\Code\test
> NODE_ENV=development node ./scripts/index.js
'NODE_ENV' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] fetch:config: `NODE_ENV=development node ./scripts/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] fetch:config script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mkb\AppData\Roaming\npm-cache\_logs\2018-12-16T04_09_04_527Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `npm run fetch:config && npm run develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mkb\AppData\Roaming\npm-cache\_logs\2018-12-16T04_09_04_619Z-debug.log
// ./package.json
"fetch:config": "node ./scripts/index.js",
// ./gatsby/getPosts.js
require('dotenv').config({
path: `.env.development`,
});
API_BASE_URL = 'https://cdn.contentful.com'
GatsbyJS has provided the ability to query data from any (remote) source, and contentful is selected in the early stage of this blog system.
For now, API_SPACE_ID and API_TOKEN are used to query the contentful database.
I purposed that query from github gist or other free database with filled data, instead of bundled with contentful.
You may have a look at https://github.com/calpa/blog/blob/master/gatsby/getPosts.js
CodeFactor found multiple issues last seen at dd755fd:
src\components\Layout\layout.js:2
2.0.10
to 2.0.11
.This version is covered by your current version range and after updating it in your project the build failed.
gatsby-plugin-offline is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
CodeFactor found multiple issues:
src\templates\blog-post.js:12
src\templates\page.js:10
CodeFactor found an issue: 'data' is missing in props validation
It's currently on:
src\pages\tags\index.js:89
CodeFactor found an issue: 'url' is missing in props validation
It's currently on:
src\pages\tags\index.js:37
In src/templates/blog-post.js
and src/templates/blog-post.js
, the Gitalk configuration are hard coded.
const gitalk = new Gitalk({
clientID: '18255f031b5e11edd98a',
clientSecret: '2ff6331da9e53f9a91bcc991d38d550c85026714',
repo: 'calpa.github.io',
owner: 'calpa',
admin: ['calpa'],
distractionFreeMode: true,
title: finalTitle,
id,
});
They should be stored in central configuration: data/config.js
.
TODO:
Extract the parameters in Gitalk and store them into data/config.js
.
For more information, please check:
CodeFactor found an issue: Unexpected duplicate "overflow" (declaration-block-no-duplicate-properties)
It's currently on:
src\components\Card\index.scss:36
Is your feature request related to a problem? Please describe.
新增繁體中文,简体中文 README.md
Describe the solution you'd like
Translate the README.md into chinese version
Is your feature request related to a problem? Please describe.
I think code it now would be better than clone, install, and then coding.
Describe the solution you'd like
CodeFactor found multiple issues last seen at dfca955:
src\templates\blog-post.js:10
src\pages\guestbook\index.js:7
TODO:
Add custom "import/extensions" eslint rule
Like Hexo, this project is using a config file to mutate the important parts of blog system.
However, the documentation of data/config.js is missing in README.md
TODO:
The config file is in:
https://github.com/calpa/blog/blob/master/data/config.js
Is your feature request related to a problem? Please describe.
For now, the indentation of quote is missing.
Describe the solution you'd like
Add blockquote style in templates/blog-post.scss
Demo here:
https://codepen.io/calpa/pen/qJgBJL
Remove inline-style in blockquote in blog/text.js
Describe the bug
As the system is renamed from blog to gatsby-starter-calpa-blog, the README.md and other place needed to be renamed.
2.0.9
to 2.0.10
.This version is covered by your current version range and after updating it in your project the build failed.
gatsby-plugin-offline is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Is your feature request related to a problem? Please describe.
OneSignal provides a simple interface to push notifications and email, letting content creators focus on quality user engagement instead of complex implementation.
Describe the solution you'd like
Install it.
Describe alternatives you've considered
Build a web push notification system
CodeFactor found multiple issues:
src\html.js:65
Commit dd755fd
src\html.js:55
Commit 106dc22
src\html.js:56
Commit 106dc22
src\html.js:60
Commit 106dc22
src\html.js:61
Commit 106dc22
src\html.js:66
Commit 106dc22
3.3.2
to 3.4.0
.This version is covered by your current version range and after updating it in your project the build failed.
stylelint-scss is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 13 commits.
8cb1656
Prepare version 3.4.0
baa0e66
Merge pull request #283 from kristerkari/bugfix/correctly-handle-parameters-in-partial-no-import
2089d5f
fix typo [ci skip]
e2f9e64
Add test
17a5941
partial-no-import: correctly handle import parameters with urls
885fefd
Merge pull request #280 from niksy/at-mixin-argumentless-call-parentheses-fix
4fdc378
Add "at-mixin-argumentless-call-parentheses" autofix
921b294
Merge pull request #281 from kristerkari/feat/dependencies-bump
d298945
Update dependencies to latest versions
ec91b1c
remove unused npm script
ad53965
Use eslint-plugin-lodash to avoid possible errors with Lodash
2baa882
make contributor avatars bigger
f9650f8
Add a list of contributors
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
dependency
react was updated from 16.6.1
to 16.6.2
.dependency
react-dom was updated from 16.6.1
to 16.6.2
.This version is covered by your current version range and after updating it in your project the build failed.
This monorepo update includes releases of one or more dependencies which all belong to the react group definition.
react is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
For now, the stats config is coded inside /src/pages/stats.js.
To improve, please
For example:
{
stats: {
title: '過去三十日數據',
description: '過去三十日數據',
image: 'https://i.imgur.com/pimaXpl.png',
}
}
现在博客评论系统使用的是 Gitalk,但是 webpack-bundle-analyzer 显示 gitalk 为占据很大部分位置,故希望优化改进。
我看了一下源码,发现 /src/index.js 在[/src/gitalk.jsx] 上面引用,並使用渲染的 render
函数。
修改思路如下:
我想如果是同属 React 阵营的话,那么应该可以直接调用 gitalk/src/gitalk
。然而,我却遇到一点问题,希望可以作者解答一下。
博客源码:https://github.com/calpa/blog
调用部分:src/templates/blog-post.js
备注:这个问题属于优化部分,不影响博客正常使用。
After the eslint plugin is updated, the modules seem to be not found.
Though, the packages are installed correctly.
CodeFactor found an issue: Unable to resolve path to module 'react'.
It's currently on:
src\templates\blog-post.js:4
Commit dfca955
Is your feature request related to a problem? Please describe.
User may bounced out when they click the links inside the post content, as it is using markdown renderer.
Describe the solution you'd like
Change renderer of href to this:
<a
href={href}
rel="external nofollow noopener noreferrer"
target={target}
>
{title}
</a>
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Use the online environment.
CodeFactor found multiple issues:
object
is forbiddenarray
is forbiddensrc\html.js:56
src\html.js:58
src\html.js:60
src\components\Navbar\NavItem\index.js:29
src\components\Pagination\Dropdown\index.js:29
CodeFactor found multiple issues last seen at dd755fd:
src\pages\tags\index.js:141
src\components\Navbar\index.js:21
src\components\Navbar\NavItem\Dropdown\index.js:6
2.0.32
to 2.0.33
.This version is covered by your current version range and after updating it in your project the build failed.
gatsby is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 6 commits.
59daee4
chore(release): Publish
c543b0e
Fix unit test trigger — compare branch instead of last commit (#9478)
7d31fe7
feat(gatsby): Add nodes db module (#9416)
343f9e6
chore(release): Publish
2a66958
feat: use hashed folder names instead of filenames. closes #6232 (#8808)
3620cd0
Make text a little less wordy, as people generally don't read long text on-screen (#9494)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Commit like a pro with commitizen.
"scripts": {
"commit": "npx git-cz"
}
TODO:
Update package.json
Update npm scripts
Use adaptor: cz-conventional-changelog
READ MORE:
https://github.com/commitizen/cz-cli
2.0.5
to 2.0.6
.This version is covered by your current version range and after updating it in your project the build failed.
gatsby-plugin-offline is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Is your feature request related to a problem? Please describe.
When I need to update the blog config, I need to clone the project, and change the config.js
.
It seems that violated the spirit of this project...
Describe the solution you'd like
Describe alternatives you've considered
Add config.js
to .gitignore
and add template of config.js
such as config-template.js
, but it still need to code...
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
rel="noopener"
instead of rel="external nofollow noopener noreferrer"
Solution:
rel="external noopener" in
ExternalLink.defaultProps`A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.