Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature request: Add sitemaps #14
Comments
This comment has been minimized.
This comment has been minimized.
|
Added sitemap docs in the branch I made a pull request to. Still need to figure out a way to ping google every 1 or two hours when sitemap is updated.
|
EatEmAll
assigned
Logmytech
Dec 9, 2017
This comment has been minimized.
This comment has been minimized.
|
@EatEmAll You removed the It may seem like relative url but in django it is called Sitemaps are not working. I am going to add get_absolute_url in my pull request. |
This comment has been minimized.
This comment has been minimized.
|
@Logmytech Hmm, I didn't know that. I'll add them back in my next commit. |
This comment has been minimized.
This comment has been minimized.
|
@Logmytech I've added |
Logmytech commentedDec 5, 2017
•
edited
I'm adding a sitemaps file and making a pull request or in the existing pull request.
Sitemap allows easy crawling of site by search engines thereby boosting SEO and traffic.
It's a good practice to add site map.
Including a sitemaps.py file which generates the site is a good idea. It is entirely optional.
The app runs even without any of the steps, but sitemaps won't work.
The following steps are required for sitemap generation of djeddit threads.
Note that
get_absolute_url()is required for sitemap.I have added get_absolute_url in the slug pull request
I will try to add docs for including sitemap in main site.
You need to add the following apps in the installed apps list
Here is my sitemaps.py file in the djeddit app.
@EatEmAll Please add this file in the djeddit app. It is entirely optional for users to use this sitemap.
Note that you need get_absolute_url() to get the absolute url in the Thread model.
Here is my urls.py file in the main project.
I have tested it and it works.
Here is my sitemap.xml file