OperationCode / operationcode_frontend

Front-end repository for live site. Please go to `front-end` repo to contribute instead.
https://operationcode.org
MIT License
101 stars 223 forks source link

Add a sitemap | Improve SEO #1000

Closed sethbergman closed 6 years ago

sethbergman commented 6 years ago

Feature

Why is this feature being added?

The Fetch as Google tool has a "Request indexing" feature to submit individual URLs to the index. If you have a large number of URLs to submit, it is easier to submit a sitemap instead.

What should your feature do?

Keep search engines updated with new content.

Relevant articles:

charlessipe commented 6 years ago

Since there are just a few important pages, we could create a XML sitemap manually and add the XML file to the public folder.

<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

   <url>
      <loc>https://operationcode.org</loc>
   </url>
   <url>
      <loc>https://operationcode.org/about</loc>
   </url>
   <url>
      <loc>https://operationcode.org/login</loc>
   </url>
   <url>
      <loc>https://operationcode.org/code_schools</loc>
   </url>
   <url>
      <loc>https://operationcode.org/jobs</loc>
   </url>
   <url>
      <loc>https://operationcode.org/leadership_circle</loc>
   </url>
   <url>
      <loc>https://operationcode.org/press</loc>
   </url>
   <url>
      <loc>https://operationcode.org/branding</loc>
   </url>
   <url>
      <loc>https://operationcode.org/faq</loc>
   </url>
   <url>
      <loc>https://operationcode.org/team</loc>
   </url>
   <url>
      <loc>https://operationcode.org/contact</loc>
   </url>
   <url>
      <loc>https://operationcode.org/terms</loc>
   </url>
   <url>
      <loc>https://operationcode.org/benefit</loc>
   </url>
   <url>
      <loc>https://operationcode.org/gala</loc>
   </url>
   <url>
      <loc>https://operationcode.org/scholarships</loc>
   </url>
   <url>
      <loc>https://operationcode.org/policy</loc>
   </url>
   <url>
      <loc>https://operationcode.org/join</loc>
   </url>
   <url>
      <loc>https://operationcode.org/chapter_leader</loc>
   </url>
   <url>
      <loc>https://operationcode.org/get-involved</loc>
   </url>
   <url>
      <loc>https://operationcode.org/our_programs</loc>
   </url>
   <url>
     <loc>https://operationcode.org/op-code-con</loc>
   </url>
</urlset>

https://support.google.com/webmasters/answer/183668?hl=en Standard sitemap protocol: https://www.sitemaps.org/index.html

kylemh commented 6 years ago

I'm okay with that compromise. With the new SSR front-end coming up, we can auto-generate our sitemap from the typical generator websites. @dmarchante / @hollomancer

dmarchante commented 6 years ago

@kylemh given that our resources are limited, doe this make sense? It sounds like what you are working on will create an easier solution to come up with a sitemap.

kylemh commented 6 years ago

@dmarchante @charlessipe pretty much already did the work right above you. It's a tiny file that you just need to put into the public folder (and maybe put it into index.html - I've never actually put these in myself before).

Small amount of work for a big win.

charlessipe commented 6 years ago

Are there any pages that should be added to the XML sitemap file listed above? I went through the routes listed in home.js

apex-omontgomery commented 6 years ago

Maybe login?

 <url>
      <loc>https://operationcode.org/login</loc>
   </url>
sethbergman commented 6 years ago

Great work @charlessipe! The file should be named sitemap.xml and go in the public folder as @kylemh mentioned.

The more important part is for the Google Webmaster Tools admin to submit the new sitemap once the new build is live.

kylemh commented 6 years ago

The more important part is for the Google Webmaster Tools admin to submit the new sitemap once the new build is live.

That would be @nellshamrell or @hollomancer

kylemh commented 6 years ago

@charlessipe feel free to open a PR with your file + login mapped 💪

hollomancer commented 6 years ago

When the PR is merged, please assign this to me or @nellshamrell to take care of

charlessipe commented 6 years ago

I submitted a pull request for this.

jjhampton commented 6 years ago

@hollomancer The PR that @charlessipe submitted has been merged, so https://operationcode.org/sitemap.xml will be served live. Going to assign this issue to you for the Google Webmaster Tools admin task, as requested. Issue #999 also requires work on the Google Webmaster Tools site.

hollomancer commented 6 years ago

Cool. Taking a look.

hollomancer commented 6 years ago

Sitemap submitted.