Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Feature/sitemap (#399)
Browse files Browse the repository at this point in the history
* 🌟 linting

* 🍩 sitemap
  • Loading branch information
thabti authored and mmahalwy committed Jul 12, 2016
1 parent 130cafb commit 501c9b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
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

0 comments on commit 501c9b9

Please sign in to comment.