Skip to content

Instantly share code, notes, and snippets.

View chiedo's full-sized avatar

Chiedo John chiedo

  • GitHub
  • Harrisonburg, VA
View GitHub Profile
@chiedo
chiedo / gatsby-node.js
Created September 15, 2016 09:00 — forked from ivanoats/gatsby-node.js
Sitemap for Gatsby
var fs = require('fs-extra-promise') //install this package
var sm = require('sitemap') // install this package
function pagesToSitemap(pages) {
var urls = pages.map(function(p) {
if (p.path !== undefined) {
return {
url: p.path,
changefreq: 'daily',
priority: 0.7