Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions server/config/sitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -39,18 +39,18 @@ 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 }
]
});

res.header('Content-Type', 'application/xml');
res.send(xml.toString());
}).catch(err => console.trace(err));
});
}
};
4 changes: 2 additions & 2 deletions src/containers/About/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export default () => (
help of the open source Muslim community online. Data sources
include <a href="http://www.tanzil.info">Tanzil</a>,
<a href="http://www.qurancomplex.com"> QuranComplex</a>,
<a href="http://www.zekr.org"> Zekr</a> and
<a href="http://www.zekr.org"> Zekr</a> and
<a href="http://www.al-quran.info"> Online Qur'an Project</a>.
Special thanks to the
Special thanks to the
<a href="http://elmohafez.com"> Elmohafez team</a> for word by
word timing files.
If you have any questions, you may visit the <a href="/contact">Contact</a> page.
Expand Down