From 501c9b91ca04672e94fd785e1df268608c0825e0 Mon Sep 17 00:00:00 2001 From: Sabeur Thabti Date: Tue, 12 Jul 2016 19:01:03 +0100 Subject: [PATCH] Feature/sitemap (#399) * :star2: linting * :doughnut: sitemap --- server/config/sitemap.js | 16 ++++++++-------- src/containers/About/index.js | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/server/config/sitemap.js b/server/config/sitemap.js index d60709492..58131ac02 100644 --- a/server/config/sitemap.js +++ b/server/config/sitemap.js @@ -8,7 +8,7 @@ export default (server) => { const client = new ApiClient(req); const urls = []; - client.get('/surahs').then(surahs => { + client.get('/api/v2/surahs').then(surahs => { surahs.forEach(surah => { Array.apply(null, {length: surah.ayat}).forEach((_, index) => { const ayahId = index + 1; @@ -39,13 +39,13 @@ export default (server) => { cacheTime: 600000, // 600 sec cache period urls: [ ...urls, - { url: '/about', changefreq: 'monthly', priority: 0.3 }, - { url: '/contactus', changefreq: 'monthly', priority: 0.3 }, - { url: '/contact', changefreq: 'monthly', priority: 0.3 }, - { url: '/donations', changefreq: 'monthly', priority: 0.3 }, - { url: '/contributions', changefreq: 'monthly', priority: 0.3 }, + { url: '/about', changefreq: 'monthly', priority: 0.3 }, + { url: '/contactus', changefreq: 'monthly', priority: 0.3 }, + { url: '/contact', changefreq: 'monthly', priority: 0.3 }, + { url: '/donations', changefreq: 'monthly', priority: 0.3 }, + { url: '/contributions', changefreq: 'monthly', priority: 0.3 }, - { url: '/search', changefreq: 'weekly', priority: 0.8 } + { url: '/search', changefreq: 'weekly', priority: 0.8 } ] }); @@ -53,4 +53,4 @@ export default (server) => { res.send(xml.toString()); }).catch(err => console.trace(err)); }); -} +}; diff --git a/src/containers/About/index.js b/src/containers/About/index.js index 5a8d69ffc..2e79bdff9 100644 --- a/src/containers/About/index.js +++ b/src/containers/About/index.js @@ -75,9 +75,9 @@ export default () => ( help of the open source Muslim community online. Data sources include Tanzil, QuranComplex, - Zekr and + Zekr and Online Qur'an Project. - Special thanks to the + Special thanks to the Elmohafez team for word by word timing files. If you have any questions, you may visit the Contact page.