eshlox / gatsby-theme-axii Goto Github PK
View Code? Open in Web Editor NEWAXII - A Gatsby blog theme.
Home Page: https://gatsby-theme-axii.netlify.com
License: MIT License
AXII - A Gatsby blog theme.
Home Page: https://gatsby-theme-axii.netlify.com
License: MIT License
The theme tries to get Algolia keys and application ID from environment variables. If the environment variables are not set, the build process fails.
Cannot query field "search" on type "SiteSiteMetadata".
GraphQL request:5:9
4 | siteMetadata {
5 | search {
| ^
6 | algolia {
File: node_modules/@eshlox/gatsby-theme-axii/src/components/Search/Search.tsx:27:9
The idea is to print some message to inform the user what's wrong.
Add a button/link to the new page under load more
button.
It's not possible to use own avatar and icon.
Example: <gist id="123" />
Add a disqus
flag to frontmatter, true
as default.
The theme allows us to add comments: false
to the frontmatter to disable comments for the article.
comments: false
The theme should create a comments
type for GraphQL in case there is no article with the comment
option, otherwise, it won't work.
I wanted to add this to gatsby-node.js
:
exports.createSchemaCustomization = ({ actions, schema }) => {
const { createTypes, createFieldExtension } = actions;
createFieldExtension({
name: `defaultTrue`,
extend() {
return {
resolve(source, args, context, info) {
if (source[info.fieldName] == null) {
return true;
}
return source[info.fieldName];
}
};
}
});
createTypes(`
type MdxFrontmatter @infer {
comments: Boolean @defaultTrue
}
type Mdx implements Node @infer {
frontmatter: MdxFrontmatter
}
`);
};
but it does not create a new type.
I see these warnings during the build process:
warn Plugin `gatsby-plugin-mdx` tried to define the GraphQL type `MdxFrontmatter`, which has already been defined by the plugin `@eshlox/gatsby-theme-axii`.
warn Plugin `gatsby-plugin-mdx` tried to define the GraphQL type `Mdx`, which has already been defined by the plugin `@eshlox/gatsby-theme-axii`.
Maybe there is another/better way?
It doesn't have to be a component but I would like to be able to mark an image somehow and display it with the maximum width (100% of the window).
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.