1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-28 17:29:36 +02:00

SEO Optimization

This commit is contained in:
Sean Morley 2024-04-20 01:17:34 +00:00
parent 348c545419
commit 7086877ba3
11 changed files with 232 additions and 148 deletions

View file

@ -51,3 +51,11 @@
/>
{/each}
</div>
<svelte:head>
<title>Featured Adventures | AdventureLog</title>
<meta
name="description"
content="Featured Adventure Locations from around the world. Add them to your visited list!"
/>
</svelte:head>

View file

@ -117,7 +117,7 @@
console.log("Success:", data);
// update local array with new data
adventures = adventures.map((adventure) =>
adventure.id === event.detail.id ? event.detail : adventure,
adventure.id === event.detail.id ? event.detail : adventure
);
editId = NaN;
editName = "";
@ -132,7 +132,7 @@
function editAdventure(event: { detail: number }) {
const adventure = adventures.find(
(adventure) => adventure.id === event.detail,
(adventure) => adventure.id === event.detail
);
if (adventure) {
editId = adventure.id;
@ -206,7 +206,7 @@
console.log("Success:", data);
// remove adventure from array where id matches
adventures = adventures.filter(
(adventure) => adventure.id !== event.detail,
(adventure) => adventure.id !== event.detail
);
showToast("Adventure removed successfully!");
visitCount.update((n) => n - 1);
@ -312,3 +312,11 @@
</button>
</div>
{/if}
<svelte:head>
<title>My Log | AdventureLog</title>
<meta
name="description"
content="Displays the user's visited adventure locations."
/>
</svelte:head>

View file

@ -68,3 +68,11 @@
<!-- <footer class="text-sm">- Steve Jobs</footer> -->
</blockquote>
</div>
<svelte:head>
<title>Login | AdventureLog</title>
<meta
name="description"
content="Login to your AdventureLog account to start logging your adventures!"
/>
</svelte:head>

View file

@ -70,3 +70,11 @@
<small class="text-center"
><b>For Debug Use:</b> UUID={user_id} Signup Date={signup_date} Role={role}</small
>
<svelte:head>
<title>User Settings | AdventureLog</title>
<meta
name="description"
content="Update your user account settings here. Change your username, first name, last name, and profile icon."
/>
</svelte:head>

View file

@ -86,7 +86,7 @@ export const actions: Actions = {
let adminUser = await db
.select()
.from(userTable)
.where(eq(userTable.role, 'admin'))
.where(eq(userTable.role, "admin"))
.execute();
if (adminUser != null && adminUser.length > 0) {

View file

@ -42,3 +42,11 @@
<button class="py-2 px-4 btn btn-primary">Signup</button>
</form>
</div>
<svelte:head>
<title>Setup | AdventureLog</title>
<meta
name="description"
content="Setup AdventureLog with your admin account"
/>
</svelte:head>;

View file

@ -29,3 +29,11 @@
/>
{/each}
</div>
<svelte:head>
<title>Shared List by {data.name} | AdventureLog</title>
<meta
name="description"
content="Shared Adventure List from around the world. Add them to your visited list!"
/>
</svelte:head>

View file

@ -54,3 +54,11 @@
</div>
<!-- username first last pass -->
<svelte:head>
<title>Signup | AdventureLog</title>
<meta
name="description"
content="Signup for AdventureLog to start logging your adventures!"
/>
</svelte:head>;

View file

@ -25,3 +25,11 @@
>
<!-- <p>Name: {item.name}, Continent: {item.continent}</p> -->
{/each}
<svelte:head>
<title>WorldTravel | AdventureLog</title>
<meta
name="description"
content="Explore the world and add countries to your visited list!"
/>
</svelte:head>;

View file

@ -94,7 +94,7 @@
name={region.name}
on:markVisited={markVisited}
visited={data.visitedRegions.some(
(visitedRegion) => visitedRegion.region_id === region.id,
(visitedRegion) => visitedRegion.region_id === region.id
)}
on:removeVisit={removeVisit}
/>
@ -107,3 +107,13 @@
<Us on:marked={markVisited} />
{/if}
{/if}
<svelte:head>
<title>{countryCodeToName(data.countrycode)} Regions | AdventureLog</title>
<meta
name="description"
content="Explore the regions in {countryCodeToName(
data.countrycode
)} and add them to your visited list!"
/>
</svelte:head>

10
static/robots.txt Normal file
View file

@ -0,0 +1,10 @@
User-agent: *
Allow: /
# Google adsbot ignores robots.txt unless specifically named!
User-agent: AdsBot-Google
Allow: /
User-agent: GPTBot
Disallow: /