Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"common.mission.header": "Mission",
"common.mission.desc" : "To facilitate community focused technology development and research in support of low-income, marginalized populations and groups.",

"meta.title" : "Seattle Community Network",
"meta.description" : "The Seattle Community Network (SCN) is a community-run cellular (4G LTE) Internet access network dedicated to providing fair access to underserved communities all across the Puget Sound.",
"meta.url" : "https://seattlecommunitynetwork.org",
"meta.type" : "website",

"common.toggle_nav" : "toggle nav",

"common.nav.0.label" : "Home",
Expand Down
Binary file added src/lib/assets/og-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions src/lib/components/Metatags.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script lang="ts">
import { page } from '$app/state';

import { m } from '$lib/paraglide/messages.js';

import image from '$lib/assets/og-image.jpg';

const og = {
title : m['meta.title'](),
description : m['meta.description'](),
url : m['meta.url']() + page.url.pathname,
type : m['meta.type'](),
image
};
</script>

<svelte:head>

<meta name="description" content="{m['meta.description']()}" />

{#each Object.entries(og) as [key, value]}
<meta property={`og:${key}`} content={value} />
{/each}

</svelte:head>
7 changes: 5 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<script lang="ts">
import '../app.css';

import Header from '$lib/components/Header.svelte';
import Footer from '$lib/components/Footer.svelte';
import Header from '$lib/components/Header.svelte';
import Footer from '$lib/components/Footer.svelte';
import Metatags from '$lib/components/Metatags.svelte';

let { children } = $props();
</script>

<Metatags />

<Header />

<main>
Expand Down