GithubHelp home page GithubHelp logo

onepagezen / ob-frontend Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 5.0 624 KB

ob-frontend is a headless WordPress starter theme built with Gatsby.

License: MIT License

JavaScript 100.00%
headless-wordpress gatsby gatsby-wordpress-theme gatsby-wordpress headless-cms gatsby-plugin netlify graphql react jamstack

ob-frontend's People

Contributors

leronamin avatar petejos80 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ob-frontend's Issues

Form validation should be improved

Form validations should be improved so that user knows which field field(s), specifically, are invalid. The current behavior is to throw a general error whenever ANY of the input fields are invalid upon form submit.

Error on build

I was running gatsby build and saw this error in the terminal. Now sure what it means.

Missing onError handler for invocation 'building-schema', error was 'Error: Cannot create as TypeComposer the following value: Date.'. Stacktrace was 'Error: Cannot create as TypeComposer the following value: Date.
at SchemaComposer.createTempTC (C:\Users\jonah\Code\blog\node_modules\graphql-compose\lib\SchemaComposer.js:365:11)
at SchemaComposer.addAsComposer (C:\Users\jonah\Code\blog\node_modules\graphql-compose\lib\SchemaComposer.js:563:27)
at createSchemaComposer (C:\Users\jonah\Code\blog\node_modules\gatsby\src\schema\schema-composer.js:16:18)
at build (C:\Users\jonah\Code\blog\node_modules\gatsby\src\schema\index.js:104:26)
at buildSchema (C:\Users\jonah\Code\blog\node_modules\gatsby\src\services\build-schema.ts:19:3)'

Author profile pages

Add link in meta to each post author, and when author name is clicked, should bring to author profile page.

Remove maximum comments restriction

gatsby-source-wordpress currently sets the limit of perPage comments to display at 100 (see gatsby-config.js). This will likely be fixed in gatsby-source-wordpress v4, and therefor the fix should be implemented after the migration to v4 has been completed.

Error with Wordpress plugin

After deploying ob-frontend with
gatsby new blog https://github.com/onepagezen/ob-frontend
when I try to launch the project I get an error:
`"gatsby-source-wordpress" threw an error while running the sourceNodes lifecycle:

Cannot read property 'replace' of undefined

105 | touchNode
106 | } = actions;

107 | const normalizedBaseUrl = normalizeBaseUrl(baseUrl);
| ^
108 | _verbose = verboseOutput;
109 | _siteURL = ${protocol}://${normalizedBaseUrl};
110 | _useACF = useACF;

File: node_modules/gatsby-source-wordpress/gatsby-node.js:107:29`

This error is resolved by updating wordpress plugin to a newer one (I tried 4.0.0) but then the config file is incompatibe

Comment count is incorrect per requirements

Post card shows total number of comments for post, which is correct. However, posts don't display all comments (particularly those that are deeply nested), and therefor they should be removed from total count.

Add functionality for deeply nested comments

Current functionality allows for nested comments 2 layers deep. Additional functionality should allow for adding all comments (1, 2, 3, 4, 5, etc.) layers deep, and importing them into a 2-level nested comment format. This functionality is essential to allow for importing sites with many layers of nested (child) comments.

Anchor links not working properly

Anchor links can be implemented and work correctly within app. However, when freshly loading a page with anchor # attached to a post comment (each comment has a unique ID), page doesn't scroll to the comment location. It seems this functionality appears to work correctly for # Id's that are outside of the comment-list component.

Notes: Currently using Anchorate (https://www.npmjs.com/package/anchorate) for 'scroll-to-comment' functionality.

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.