apostrophecms / apostrophe-site-map Goto Github PK
View Code? Open in Web Editor NEWGenerates a site map of your Apostrophe site, for SEO and content strategy purposes.
License: MIT License
Generates a site map of your Apostrophe site, for SEO and content strategy purposes.
License: MIT License
Step by step instructions to reproduce the behavior:
- Setting the baseUrl using the alternative configuration method as explain per guide: https://github.com/apostrophecms/apostrophe-site-map/#alternative-configuration
- Loading http://localhost:3000/sitemap.xml - The baseUrl is not showing on the links
- Have also run node app apostrophe-site-map:clear as well and reimplemented steps 1 and 2
When applying the baseUrl in the 'apostrophe-site-map' as option, it should be include in the sitemap.xml generated as part of the links/url structure. For eg 0.9 daily http://localhost:3000/about-us
When applying the baseUrl in the 'apostrophe-site-map' as option (as per https://github.com/apostrophecms/apostrophe-site-map/#alternative-configuration), it should be included in the sitemap.xml as part of the links/url structure.
for eg 0.9 daily /about-us
Version of Node.js:
v8.11.4
Server Operating System:
MacOS Mojave
Additional context:
When using the main baseUrl configuration, it does prepend the baseUrl to the links/url in the sitemap.xml - for eg 0.9 daily http://localhost:3000/about-us
Still this issue is open in status. Please give us quick workaround.
I received this yesterday from an SEO consultancy working on a client's SEO project in reference to the Apos site-map.
Remove the Priority and Changefreq tags included before each URL. Google pays no mind to these and removing will help decrease the page load burden.
I've requested more information and am starting this to get it in the discussion. "Load burden" does seem a bit much for most site-maps, but if it's big enough maybe it matters.
apostrophe-pieces
modulearrangeFields
option and place the siteMapPriority
field into some groupsiteMapPriority
field appears in group specified
The siteMapPriority
field always added to info
group
apostrophe-pieces
module configuration// in this example, the field is added to the 'info' group
module.exports = {
name: 'something',
extend: 'apostrophe-pieces',
arrangeFields: [{
name: 'sitemap',
label: 'Site Map XML',
fields: ['siteMapPriority']
}]
};
// in this example, the field is added to a duplicate 'info' group
module.exports = {
name: 'something',
extend: 'apostrophe-pieces',
arrangeFields: [{
name: 'info',
label: 'Info',
fields: ['published', 'slug', 'tags', 'siteMapPriority']
}]
};
I've tried a fix for this by modifying the way the fields are registered by this module, but no effect.
Any thoughts?
hey, for some reason the model doesn't fetch the full url address of the current item, and it seems like the other values goes weird also ..
http://www.haredisociety.org/sitemap.xml
you can see that the url goes "http://orthodox/כתב-עת-החברה-החרדית/אחרי-שמזבח-מוריד-דמעות" when the web address is http://haredisociety.org
and idea whats going wrong ?
thanks!
Currently forces itself into it's own Info
tab
Hello Apostrophe-team,
I have used this package in a project to produce the sitemap.xml for SEO. I have also added the xml path in robots.txt.
So currently I got a requirement that need to replace the sitemap.xml path dynamically in robots.txt file.
I have tried many ways to achieve the functionality but didn't succeed.
Please let me know how can achieve this kind of functionality.
Visit the site: https://mysite.com/sitemap.xml
This error will be shown on the browser:
XML Parsing Error: no root element found
Location: https://mysite.com/sitemap.xml
Line Number 1, Column 1:
Visit the same site: again after waiting for few minutes
This error will be shown in the browser:
error
This page isn’t working www.mysite.com took too long to respond. HTTP ERROR 504
Visit the same site: again (third time) but only after waiting longer (few more minutes)
Now the sitemap will be output correctly on the browser window
The sitemap file is not always output correctly on the browser window and many times the browser show different errors
Not sure why this keeps happening but this error is not consistently replicated while probably it has to do with the way the module generates the sitemap keeping in mind that all default configuration settings were used. Also not sure if there is cache setting added by the default settings. No manual command line tasks or cron jobs were used to generate the XML file
Server Operating System:
Ubuntu/nginx
Version of Node.js:
8.9.3
Version of Apostrophe
2.94.1
Version of Apostrophe site map
2.5.0
Additional context:
These errors even though are different each time I visit the browser, were always caused when the browser keeps waiting for the XML sitemap to be generated and after few seconds the browser starts to show all these errors.
This is not consistent and can not always be replicated because the XML sitemap is output correctly on some occasions and on many others is not
Screenshots
These throw errors as invalid XML in Google webmaster tools. See: https://nxtsports.com/sitemap.xml
<url>
<priority>0.8</priority>
<changefreq>daily</changefreq>
<loc>https://nxtsports.com/careers/field-hockey-coach</loc>
<workflowGuid/>
<workflowLocale>default</workflowLocale>
</url>
Sorry for polluting the lists ;)
shout site-map works with apostrophe 2.1.2? I get an error:
/node_modules/moog/index.js:313
if (key.substr(0, 2) === '__') {
^
TypeError: key.substr is not a function
at /node_modules/moog/index.js:313:19
at Function.forEach (/node_modules/moog/node_modules/lodash/dist/lodash.js:3298:15)
at applyOptions (/node_modules/moog/index.js:309:11)
at /build/node_modules/moog/index.js:226:15
at iterate (/node_modules/moog/node_modules/async/lib/async.js:146:13)
at Immediate._onImmediate (/node_modules/moog/node_modules/async/lib/async.js:157:25)
at tryOnImmediate (timers.js:534:15)
at processImmediate [as _immediateCallback] (timers.js:514:5)
I am using:
node --version
v5.11.1
Hello,
we just added this package to our apostrophe installation. Almost everything worked out of the box, it skipped unpublished blogPosts, but published blogPosts with publicationDate and publicationTime in the future are shown in the sitemap.
Do we use this wrong or is there a bug?
Thanks again :)
A client mentioned that some pages are missing from the site-map. It turns out these are pages that were children of a top-level page that's unpublished. It's unpublished since it's only needed for site organization and the nav uses an unlinked drop-down.
Due to this, those second level pages are missing:
self.findPages = function(req) {
return self.apos.pages.find(req, { level: 0 }).children({ depth: 20 });
};
I poked a bit to just change this to all published pages, but it's clearly going to be more complicated than that.
Step by step instructions to reproduce the behavior:
sitemap: false
to a piece's options.Piece should be removed from sitemap.xml
.
Piece is not removed from sitemap.xml
.
Version of Node.js:
12.19.0
Server Operating System:
macOS 10.15.7 - Catalina
Additional context:
Using excludeTypes
option in the site's app.js
did work for me but the above method did not.
Screenshots
None
PLEASE NOTE: make sure the bug exists in the latest patch level of the project. For instance, if you are running a 2.x version of Apostrophe, you should use the latest in that major version to confirm the bug.
Step by step instructions to reproduce the behavior:
- Go to http://localhost:3000/sitemap.xml
- See the sitemap as a plaintext
Generate the sitemap as a xml
When using this module with apostrophe-workflow the sitemap is generated as a plaintext instead of a xml file
Screenshots
Here you have a sample project
apostrophe-boilerplate.zip
First of all, this module is a real gem – it works much as you'd expect right out of the box!
I noticed something that relates to the apostrophe-workflow integration however. It's the fact that Google's guidelines state the following:
Each
<url>
element must have a child element<xhtml:link rel="alternate" hreflang="supported_language-code">
that lists every alternate version of the page, including itself.
This module doesn't include a self-referencing <xhtml:link rel="alternate">
tag for each <url>
tag however, but only links to other locales' variant of the same document.
I am happy to submit a PR for this, I just wanted to raise the issue before doing so.
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.