Plugin-Sitemap | Statamic v1 plugin that generates a sitemap of your site | Sitemap library
kandi X-RAY | Plugin-Sitemap Summary
kandi X-RAY | Plugin-Sitemap Summary
Dynamic Sitemap plugin for Statamic 1.5 (for Statamic 1.4 use the statamic-1_4 branch).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse content tree data
- Get frequency for a timestamp .
- Parse a folder item
- Parse a file item
- Main index loop
- Parse an entry item
- Get priority .
Plugin-Sitemap Key Features
Plugin-Sitemap Examples and Code Snippets
Community Discussions
Trending Discussions on Plugin-Sitemap
QUESTION
This app was originally built using react, however we have decided to convert everything over and use Gatsbyjs. I am new to Gatsby and I am trying to get my images to render correctly using the artist data. Here is how this part of the data was originally built:
...ANSWER
Answered 2021-Jun-08 at 05:16Your data, when using page queries, is always under props.data
so your nesting should look like:
QUESTION
I'm trying to get data from two separate objects in a single query using their WordPress IDs, but I'm getting GraphQLError: The ID input is invalid. Make sure you set the proper idType for your input.
Using the GraphQL IDE in WordPress it fetches all the data as expected, but I get that error in my code. If I set the idType to a string, for example, I get Variable "$editorId" of type "String!" used in position expecting type "ID!".
gatsby-node.js > createPages function:
...ANSWER
Answered 2021-Jun-04 at 04:50Your gatsby-node.js
looks perfect. Your issue is caused by the types of the data context you are sending to the template (videoDetailTemplate
). You are telling to GraphQL that both id
and editorId
are ID
types while I guess they should be strings.
I guess changing this line:
QUESTION
I'm using gatsby-plugin-sitemap to generate sitemap.xml
for a Gatsby site, but, for some reason that I can't find, it's returning 404 error whenever I try to access it.
I created this testing repo and hosted on Netlify (as the original is), to help debugging.
URL: https://sitemap-test1.netlify.app/
sitemap.xml: https://sitemap-test1.netlify.app/sitemap.xml (returning 404)
Thanks in advance,
Luiz.
ANSWER
Answered 2021-May-12 at 05:07It seems to be a known bug of the library, as you can see in the following GitHub threads:
That said, you can downgrade to version 3.30
which seems to be bug-free and be aware of using options.excludes
instead of options.exclude
(trailing "s") if you are excluding some pages.
Otherwise (and in the meantime) you can set the output path to /
as a temporary workaround:
QUESTION
I have a gatsby portfolio application and had to do some updates to it. Then cloned it from github and had to install dependencies. When i run npm install
i have the error log below:
ANSWER
Answered 2021-May-10 at 08:25This is not a problem from your side. It is not a problem of package.json
. In the ERR
, the URL https://registry.npmjs.org/axios
(last line of the error message) gives a JSON response which is flawed. See the below image. The JSON validation fails. They must resolve this.
Try running
QUESTION
I'm trying to use React-slick with gatsby-plugin images and I have the page setup like this.
...ANSWER
Answered 2021-Apr-29 at 17:49The structure for the new component when passing the image itself is using the
image
prop
, not fluid
. In addition, the query needs to fetch gatsbyImageData
, not fluid
as you can see in the docs:
QUESTION
The site loses all functionalities after building it. In develop mode everything works fine, but when I build the website it looks like all scripts are missing. Bootstrap (Carousel DropDowns) are not responding, leflet map and background image not loading and react-multi-carousel do not work. I don't see any errors in the browser console, of course I ran gatsby clean
before building. I uploaded the project to netlify. Below I am enclosing the json package:
ANSWER
Answered 2021-Apr-13 at 20:59There's not much debug in the question however, to me, it seems that you are using some dependencies outside React's scope, which may potentially block React's hydration process, which may explain the problem described. For example, using Leaflet instead of React's Leaflet or (depending on its implementation) Bootstrap instead of React's Boostrap.
You should be able to change all React-unfriendly modules to React's ones without too much effort and that should fix your problems.
Keep in mind that if your project "work in develop
and breaks in build
" doesn't mean that your project work or stops working, it just means that is working under certain and specific circumstances. Basically, and summarizing (to avoid extending the answer), gatsby develop
uses the browser as an interpreter, where there are, among other things, global objects like window
or document
. However, gatsby build
occurs in the Node server, where at the build time, there are not global objects because there are not even created yet, that the main reason why you may face a different behavior between both scenarios but doesn't mean that the project stopped working magically.
You can read further details in the Overview of Gatsby Build Process.
Another option, linked with blocking React's hydration, is that some component may be blocking that process because of its own behavior. Be careful when using global objects like window
or document
(or when importing modules that uses it), they use should be always be wrapped inside the following condition, as you can see from the docs:
When referencing window in a React component.
QUESTION
I just updated my Gatsby to v3. Right before that I had just updated gatsby-source-wordpress to v5 and everything was working with Gatsby v2.32.9
Now when doing gatsby develop
, I get the following message :
ANSWER
Answered 2021-Mar-24 at 15:00Didn't find a permanent solution, but found a fix...
The problem stemmed from a conflict between my gatsby-source-wordpress and the way my Polylang WP plugin gets exposed to the GraphQL API. Basically, the "Duplicate ID" is related to the first post the API could find that has a translation, and for some reason it breaks. As of this writing this seems to be specific to gatsby-source-wordpress version ^5.0.0 and ^5.1.0. My fix : revert to gatsby-source-wordpress version ^4.1.0-next.1, which does not suffer from the same issue.
This fix works for me with Gatsby v3.1.1.
QUESTION
- Problem Summary
There are two .gif images in my blog post, which are breaking the responsiveness of my site, they don't seem to get resized when opened on a mobile device. Although they seem to be fine when opened from pc.
PC view:
Mobile view:
As you can see, in mobile view the two .gif images are still the same size, which breaks the responsiveness of the page. Is there a way I could solve this issue?
The syntax I've used to include the .gif in my .mdx file is-
![otter dancing with a fish](./neural_net_data_manupulation_2.gif)
- Config.js file of my site:
ANSWER
Answered 2021-Feb-15 at 15:34The HTML on the question's page shows that the GIF images for figure 6(a) and 6(b) are not responsive.
Here is the HTML for figure 6(a):
QUESTION
I have a Gatsby site that has been running smoothly for 3 months online. As of Friday 24th July I have started to receive the below result and users only see a blank screen.
...ANSWER
Answered 2020-Dec-14 at 05:47What did you try so far? As @ksav pointed out, in this GitHub thread there are a several ways to fix a similar issue:
- Removing
node_modules
,.cache
and install again - Removing
node_modules
,.cache
fix Gatsby tov2.23.3
/upgrade up to^2.26.1
where the bug is fixed and install again
It seems related to a loading staticQuery bug that can't be reproduced in a fresh install. The final trial is to remove your package-lock
/yarn-lock.json
and generate it again.
QUESTION
I built this project from the basic default gatsby starter with the astronaut
I don't know what I'm doing wrong because this project is very similar in terms of it's gatsby-node
and gatsby-config
to another project of mine. This error repeatedly keeps looping in the console
ANSWER
Answered 2020-Sep-02 at 23:51It has something to do with gatsby-remark-relative-images: "^2.0.2"
, the problem stopped happening when using version ^0.3.0
instead of ^2.0.2
or when using "gatsby-remark-relative-images-v2": "^0.1.5",
instead. This is noted on their github page
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Plugin-Sitemap
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page