Skip to content

Commit

Permalink
Merge pull request nairuby#77 from AJ-Kulundu/site-seo
Browse files Browse the repository at this point in the history
Site SEO improvements.
  • Loading branch information
JudahSan authored Oct 14, 2023
2 parents 0e9d8d5 + 05931e8 commit 19063c3
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ gem 'redis', '~> 4.0'
# Devise 4.0 works with Rails 4.1 onwards.
gem 'devise'

#A dynamic sitemap generator gem for the Ruby on Rails framework
# A dynamic sitemap generator gem for the Ruby on Rails framework
gem 'sitemap_generator'

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
Expand Down
4 changes: 2 additions & 2 deletions app/views/landing/about.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% content_for(:title,"About us") %>
<% content_for(:description,"The community hosts weekly and monthly meetups in different cities in East Africa. The community brings you Ruby Conference every year with different themes to fill the gap that exist between school and industry and in return helps spur innovation and growth in contribution to global economy") %>
<% content_for(:description,"ARC brings entrepreneurs, developers, Designers, open source contributors together") %>
<div class="flex justify-center h-60 mb-16 md:mb-28 lg:mb-40" style="background-color: #020101">
<%= image_tag image_path('workshop.jpg'), class: "pt-20 w-fit h-fit", style: "filter: brightness(40%);" %>
<%= image_tag('workshop.jpg', alt:"ARC Workshop", class: "pt-20 w-fit h-fit", style: "filter: brightness(40%);") %>
</div>

<div class="grid pt-20 md:px-20 lg:px-56 mx-auto place-content-center">
Expand Down
10 changes: 5 additions & 5 deletions app/views/landing/home/_chapters.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ xl:grid-cols-5 gap-2 px-20 place-content-center">
<div class="place-self-center w-72 md:w-48 card border border-red-600
rounded-b-md rounded-tr-md">

<%= image_tag image_path('country_kenya.png'), class: 'pt-2 place-self-center h-16 md:36' %>
<%= image_tag('country_kenya.png', alt: "Nairuby",class: 'pt-2 place-self-center h-16 md:36') %>
<p class="place-self-center text-2xl text-red-600">Kenya</p>

<%= link_to new_user_registration_path, class: 'place-self-center pb-6' do %>
Expand All @@ -19,7 +19,7 @@ xl:grid-cols-5 gap-2 px-20 place-content-center">
<div class="place-self-center w-72 md:w-48 card border border-red-600
rounded-b-md rounded-tr-md">

<%= image_tag image_path('country_rwanda.png'), class: 'pt-2 place-self-center h-16 md:36' %>
<%= image_tag('country_rwanda.png', alt:"ARC_Rwanda", class: 'pt-2 place-self-center h-16 md:36') %>
<p class="place-self-center text-2xl text-red-600">Rwanda</p>

<%= link_to new_user_registration_path, class: 'place-self-center pb-6' do %>
Expand All @@ -30,7 +30,7 @@ xl:grid-cols-5 gap-2 px-20 place-content-center">
<div class="place-self-center w-72 md:w-48 card border border-red-600
rounded-b-md rounded-tr-md">

<%= image_tag image_path('country_tanzania.png'), class: 'pt-2 place-self-center h-16 md:36' %>
<%= image_tag('country_tanzania.png',alt:"ARC_Tanzania", class: 'pt-2 place-self-center h-16 md:36') %>
<p class="place-self-center text-2xl text-red-600">Tanzania</p>

<%= link_to new_user_registration_path, class: 'place-self-center pb-6' do %>
Expand All @@ -41,7 +41,7 @@ xl:grid-cols-5 gap-2 px-20 place-content-center">
<div class="place-self-center w-72 md:w-48 card border border-red-600
rounded-b-md rounded-tr-md">

<%= image_tag image_path('country_uganda.png'), class: 'pt-2 place-self-center h-16 md:36' %>
<%= image_tag('country_uganda.png',alt:"ARC_Uganda", class: 'pt-2 place-self-center h-16 md:36') %>
<p class="place-self-center text-2xl text-red-600">Uganda</p>

<%= link_to new_user_registration_path, class: 'place-self-center pb-6' do %>
Expand All @@ -52,7 +52,7 @@ xl:grid-cols-5 gap-2 px-20 place-content-center">
<a href="mailto:[email protected]" class="place-self-center w-72 md:w-48 card border border-red-600
rounded-b-md rounded-tr-md">

<%= image_tag image_path('add.png'), class: 'pt-2 place-self-center h-16 md:36' %>
<%= image_tag('add.png',alt:" Add Chapter",class: 'pt-2 place-self-center h-16 md:36') %>
<p class="place-self-center text-xl text-red-600">Request new chapter</p>
<p class="pb-6"></p>
</a>
Expand Down
14 changes: 7 additions & 7 deletions app/views/layouts/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="flex pt-32">
<div class="basis-2/6">
<%= link_to root_path, class: "justify-end pr-20" do %>
<%= image_tag image_path('arc_dark_gray_logo.png'), class: 'w-20 md:w-48' %>
<%= image_tag('arc_dark_gray_logo.png', alt: "Community Logo", class: 'w-20 md:w-48') %>
<% end %>
</div>

Expand Down Expand Up @@ -57,7 +57,7 @@
<%= link_to 'https://twitter.com/ruby_african' do %>
<div class="inline-flex text-sm">
<div class="pr-4 self-center">
<%= image_tag image_path('brands_twitter.png'), class: "w-5" %>
<%= image_tag('brands_twitter.png', alt: "ARC Twitter", class: "w-5" )%>
</div>
</div>
<% end %>
Expand All @@ -68,7 +68,7 @@
<%= link_to '#' do %>
<div class="inline-flex text-sm">
<div class="pr-4 self-center">
<%= image_tag image_path('brands_telegram.png'), class: "w-5" %>
<%= image_tag('brands_telegram.png',alt: "ARC telegram", class: "w-5") %>
</div>
Telegram
</div>
Expand All @@ -80,7 +80,7 @@
<%= link_to 'https://www.facebook.com/rubycommunity.africa' do %>
<div class="inline-flex text-sm">
<div class="pr-4 self-center">
<%= image_tag image_path('brands_facebook.png'), class: "w-5" %>
<%= image_tag('brands_facebook.png',alt: "ARC Facebook", class: "w-5") %>
</div>
</div>
<% end %>
Expand All @@ -90,7 +90,7 @@
<%= link_to '#' do %>
<div class="inline-flex text-sm">
<div class="pr-4 self-center">
<%= image_tag image_path('brands_instagram.png'), class: "w-5" %>
<%= image_tag('brands_instagram.png', alt: "ARC Instagram", class: "w-5") %>
</div>
</div>
<% end %>
Expand All @@ -100,7 +100,7 @@
<%= link_to 'https://www.linkedin.com/company/african-ruby-community/' do %>
<div class="inline-flex text-sm">
<div class="pr-4 self-center">
<%= image_tag image_path('brands_linkedin.png'), class: "w-5" %>
<%= image_tag('brands_linkedin.png',alt:"ARC LinkedIn", class: "w-5") %>
</div>
</div>
<% end %>
Expand All @@ -110,7 +110,7 @@
<%= link_to 'https://github.com/nairuby' do %>
<div class="inline-flex text-sm">
<div class="pr-4 self-center">
<%= image_tag image_path('brands_github.png'), class: "w-5" %>
<%= image_tag('brands_github.png', alt: "ARC Github", class: "w-5" )%>
</div>
</div>
<% end %>
Expand Down
8 changes: 4 additions & 4 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>ArcPlatform <%= " - " + yield(:title) if content_for?(:title)%></title>
<meta name="description" content=<%= content_for?(:description) ? yield(:description) : "African Ruby Community, ARC is an organization that was started in 2010. The community currently has over reach of over 5,000 members spread across East Africa, made of developers (Engineers),entrepreneurs, designers and freelancers."%>>
Expand Down Expand Up @@ -28,7 +28,7 @@
<ul tabindex="0" class="menu menu-compact dropdown-content mt-3 p-2 shadow
bg-base-100 rounded-box w-52 md:hidden">
<li><%= link_to 'Home', root_path %></li>
<li><%= link_to 'About', landing_about_path %></li>
<li><%= link_to 'About ARC', landing_about_path %></li>

<% if FeatureFlag.find_by(name: 'events').try(:enabled) %>
<li><a href="#">Events</a></li>
Expand Down Expand Up @@ -57,7 +57,7 @@
<div class="flex justify-start lg:w-0 lg:flex-1">
<%= link_to root_path do %>
<span class="sr-only">African Ruby Community</span>
<%= image_tag 'arc_logo_coloured.png', class: "h-8 w-auto sm:h-7" %>
<%= image_tag('arc_logo_coloured.png', alt: "Community Logo",class: "h-8 w-auto sm:h-7") %>
<% end %>
</div>
<nav class="hidden space-x-10 md:flex">
Expand Down Expand Up @@ -152,7 +152,7 @@
<% else %>
<div class="hidden items-center justify-end md:flex md:flex-1 lg:w-0">
<%= link_to new_user_registration_path do %>
<button class="btn btn-sm btn-primary normal-case">Sign up</button>
<button class="btn btn-sm btn-primary normal-case text-white">Sign up</button>
<% end %>

<%= link_to new_user_session_path,
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
# Defines the root path route ("/")
root 'landing#index'

get 'about', to: 'landing#about', as: :landing_about
get 'about_us', to: 'landing#about', as: :landing_about
get 'learn', to: 'landing#learn', as: :landing_learn
end
2 changes: 1 addition & 1 deletion config/sitemap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# add article_path(article), :lastmod => article.updated_at
# end

add '/about',
add '/about_us',
changefreq: 'monthly',
priority: 0.9
add '/learn',
Expand Down
2 changes: 1 addition & 1 deletion public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:pagemap="http://www.google.com/schemas/sitemap-pagemap/1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://rubycommunity.africa</loc><lastmod>2023-05-27T10:44:44+03:00</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url><url><loc>https://rubycommunity.africa/about</loc><lastmod>2023-05-27T10:44:44+03:00</lastmod><changefreq>monthly</changefreq><priority>0.9</priority></url><url><loc>https://rubycommunity.africa/learn</loc><lastmod>2023-05-27T10:44:44+03:00</lastmod><changefreq>monthly</changefreq><priority>0.9</priority></url><url><loc>https://rubycommunity.africa/chapters</loc><lastmod>2023-05-27T10:44:44+03:00</lastmod><changefreq>monthly</changefreq><priority>0.9</priority></url></urlset>
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:pagemap="http://www.google.com/schemas/sitemap-pagemap/1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://rubycommunity.africa</loc><lastmod>2023-10-14T14:11:33+03:00</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url><url><loc>https://rubycommunity.africa/about_us</loc><lastmod>2023-10-14T14:11:33+03:00</lastmod><changefreq>monthly</changefreq><priority>0.9</priority></url><url><loc>https://rubycommunity.africa/learn</loc><lastmod>2023-10-14T14:11:33+03:00</lastmod><changefreq>monthly</changefreq><priority>0.9</priority></url><url><loc>https://rubycommunity.africa/chapters</loc><lastmod>2023-10-14T14:11:33+03:00</lastmod><changefreq>monthly</changefreq><priority>0.9</priority></url><url><loc>https://rubycommunity.africa/users/sign_up</loc><lastmod>2023-10-14T14:11:33+03:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url><url><loc>https://rubycommunity.africa/users/sign_in</loc><lastmod>2023-10-14T14:11:33+03:00</lastmod><changefreq>monthly</changefreq><priority>0.8</priority></url></urlset>

0 comments on commit 19063c3

Please sign in to comment.