Skip to content

Commit 27c7adb

Browse files
committed
Improve SEO by standardizing URLs with trailing slashes and integrating IndexNow
for faster search engine indexing - Add post-deployment IndexNow ping to notify Bing and Yandex of site updates - Update canonical, alternate, and structured data URLs to include trailing slashes - Remove hardcoded IndexNow key file, embedding key directly in workflow for simplicity - Adjust sitemap URLs accordingly to maintain consistency
1 parent 2748463 commit 27c7adb

File tree

5 files changed

+24
-14
lines changed

5 files changed

+24
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,14 @@ jobs:
4848
- name: Deploy to GitHub Pages
4949
id: deployment
5050
uses: actions/deploy-pages@v4
51+
52+
- name: Ping IndexNow
53+
run: |
54+
for url in \
55+
"https://csa-admin.org/" \
56+
"https://csa-admin.org/acp/" \
57+
"https://csa-admin.org/solawi/"
58+
do
59+
curl -s -o /dev/null -w "IndexNow %{url_effective} → HTTP %{http_code}\n" \
60+
"https://api.indexnow.org/indexnow?url=${url}&key=8f940d3ccbab4035acab547df3432ac0"
61+
done

locales/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ en:
6161
site:
6262
description: Open-source web app to efficiently manage your CSA (Community Supported Agriculture). Simplify your operations — request a free demo.
6363
title: "CSA Admin - Streamline your CSA management"
64-
path: ""
64+
path: /
6565
subtitle: "Since 2014, %{orgs_link} have been using CSA Admin to facilitate their daily tasks and manage the annual distribution of over <span class='font-semibold'>%{baskets_count} baskets</span>. Join them!"
6666
subtitle_orgs_link: <span class="whitespace-nowrap">many organizations</span>
6767
title: Streamline your <span class="whitespace-nowrap">%{org_name} management.</span>

source/6c2275b41687491d94b8f53d998701da.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

source/layouts/layout.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
<meta name="twitter:image" content="https://csa-admin.org/images/logo.png">
3030

3131
<link rel="canonical" href="https://csa-admin.org<%= t('site.path') %>">
32-
<link rel="alternate" hreflang="en" href="https://csa-admin.org">
32+
<link rel="alternate" hreflang="en" href="https://csa-admin.org/">
3333
<link rel="alternate" hreflang="fr" href="https://csa-admin.org/acp/">
3434
<link rel="alternate" hreflang="de" href="https://csa-admin.org/solawi/">
35-
<link rel="alternate" hreflang="x-default" href="https://csa-admin.org">
35+
<link rel="alternate" hreflang="x-default" href="https://csa-admin.org/">
3636

3737
<script type="application/ld+json">
3838
{
@@ -41,7 +41,7 @@
4141
{
4242
"@type": "WebSite",
4343
"@id": "https://csa-admin.org/#website",
44-
"url": "https://csa-admin.org",
44+
"url": "https://csa-admin.org/",
4545
"name": "<%= data.site.name %>",
4646
"description": "<%= t('site.description').gsub('"', '\\"') %>",
4747
"inLanguage": ["en", "fr", "de"],
@@ -53,7 +53,7 @@
5353
"@type": "Organization",
5454
"@id": "https://csa-admin.org/#organization",
5555
"name": "<%= data.site.name %>",
56-
"url": "https://csa-admin.org",
56+
"url": "https://csa-admin.org/",
5757
"logo": {
5858
"@type": "ImageObject",
5959
"url": "https://csa-admin.org/images/logo.png"
@@ -71,7 +71,7 @@
7171
"applicationCategory": "BusinessApplication",
7272
"operatingSystem": "Web",
7373
"description": "<%= t('site.description').gsub('"', '\\"') %>",
74-
"url": "https://csa-admin.org",
74+
"url": "https://csa-admin.org/",
7575
"author": {
7676
"@type": "Person",
7777
"name": "<%= data.site.author.name %>",

source/sitemap.xml.builder

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
xml.instruct!
22
xml.urlset('xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9', 'xmlns:xhtml' => 'http://www.w3.org/1999/xhtml') do
33
xml.url do
4-
xml.loc 'https://csa-admin.org'
4+
xml.loc 'https://csa-admin.org/'
55
xml.changefreq 'weekly'
66
xml.priority '1.0'
7-
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'en', href: 'https://csa-admin.org')
7+
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'en', href: 'https://csa-admin.org/')
88
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'fr', href: 'https://csa-admin.org/acp/')
99
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'de', href: 'https://csa-admin.org/solawi/')
10-
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'x-default', href: 'https://csa-admin.org')
10+
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'x-default', href: 'https://csa-admin.org/')
1111
end
1212

1313
xml.url do
1414
xml.loc 'https://csa-admin.org/acp/'
1515
xml.changefreq 'weekly'
1616
xml.priority '0.9'
17-
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'en', href: 'https://csa-admin.org')
17+
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'en', href: 'https://csa-admin.org/')
1818
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'fr', href: 'https://csa-admin.org/acp/')
1919
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'de', href: 'https://csa-admin.org/solawi/')
20-
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'x-default', href: 'https://csa-admin.org')
20+
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'x-default', href: 'https://csa-admin.org/')
2121
end
2222

2323
xml.url do
2424
xml.loc 'https://csa-admin.org/solawi/'
2525
xml.changefreq 'weekly'
2626
xml.priority '0.9'
27-
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'en', href: 'https://csa-admin.org')
27+
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'en', href: 'https://csa-admin.org/')
2828
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'fr', href: 'https://csa-admin.org/acp/')
2929
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'de', href: 'https://csa-admin.org/solawi/')
30-
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'x-default', href: 'https://csa-admin.org')
30+
xml.tag!('xhtml:link', rel: 'alternate', hreflang: 'x-default', href: 'https://csa-admin.org/')
3131
end
3232
end

0 commit comments

Comments
 (0)