Skip to content

Commit

Permalink
Updated domain
Browse files Browse the repository at this point in the history
  • Loading branch information
joshniemela committed Dec 1, 2024
1 parent 6e67677 commit d1f9e54
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions frontend/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@
$: $queryStore, browser && fetchCourses();
// SEO
const title = "DISKU - KU Courses 2.0";
const title = "KU Courses";
const description =
"A more precise, user-friendly way to browse courses offered by University of Copenhagen which acutally gives you the information you were looking for";
const url = "https://disku.jniemela.dk";
const url = "https://kucourses.dk";
let debounceTimeout: number;
let firstDebounce = true;
Expand Down Expand Up @@ -180,13 +180,13 @@
<meta property="og:title" content="{title}" />
<meta property="og:description" content="{description}" />
<meta property="og:image" content="{`/assets/og-image.png`}" />
<meta property="og:image:alt" content="DISKU - KU Courses 2.0" />
<meta property="og:image:alt" content="KU Courses" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="disku.jniemela.dk" />
<meta property="twitter:domain" content="kucourses.dk" />
<meta property="twitter:url" content="{url}" />
<meta name="twitter:title" content="{title}" />
<meta name="twitter:description" content="{description}" />
Expand All @@ -198,7 +198,7 @@
<div class="flex flex-col min-h-screen justify-between relative">
<ChangelogModal />
<main class="flex flex-col items-center space-y-4 mt-10">
<h1 class="text-brand-500 text-4xl font-bold -mb-4">KU Courses 2.0</h1>
<h1 class="text-brand-500 text-4xl font-bold -mb-4">KU Courses</h1>
<ChangelogButton />
<div>
<input
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/routes/course/[courseId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
}
// SEO
const title = `${course.title} - DISKU`;
const title = `${course.title} - KU Courses`;
const description =
"A more precise, user-friendly way to browse courses offered by University of Copenhagen which acutally gives you the information you were looking for";
const url = "https://disku.jniemela.dk/course/" + courseId;
const url = "https://kucourses.dk/course/" + courseId;
// To every li tag, add class="list-square list-inside" in content["learning-outcome"]
let content = course.content;
Expand Down Expand Up @@ -124,13 +124,13 @@
<meta property="og:title" content="{title}" />
<meta property="og:description" content="{description}" />
<meta property="og:image" content="{`/assets/og-image.png`}" />
<meta property="og:image:alt" content="DISKU - KU Courses 2.0" />
<meta property="og:image:alt" content="KU Courses" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="disku.jniemela.dk" />
<meta property="twitter:domain" content="kucourses.dk" />
<meta property="twitter:url" content="{url}" />
<meta name="twitter:title" content="{title}" />
<meta name="twitter:description" content="{description}" />
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/sitemap.xml/+server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { dev } from "$app/environment";

const url = dev ? "http://localhost:3000" : "https://disku.jniemela.dk";
const url = dev ? "http://localhost:3000" : "https://kucourses.dk";

function today_yyyy_mm_dd(): string {
const d = new Date();
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export function clearAll() {

// API URL
export function apiUrl() {
return "https://disku.jniemela.dk/api"; // SSR
return "https://kucourses.dk/api"; // SSR
// check that window is defined, this is used for checking if we are running in the browser
if (typeof window === "undefined") {
return "https://disku.jniemela.dk/api"; // SSR
return "https://kucourses.dk/api"; // SSR
}

const hostname = window.location.hostname;
Expand Down

0 comments on commit d1f9e54

Please sign in to comment.