Skip to content

Commit

Permalink
Add SEO Title (#8)
Browse files Browse the repository at this point in the history
* feat: add isd logo

* feat: add description

* fix: website name

Co-authored-by: Nutthapat Pongtanyavichai <[email protected]>

---------

Co-authored-by: Nutthapat Pongtanyavichai <[email protected]>
  • Loading branch information
MasterIceZ and leomotors authored Jan 15, 2024
1 parent c9e5021 commit 7f6b045
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 14 deletions.
40 changes: 32 additions & 8 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ import Navbar from "../components/navbar/Navbar.svelte";
interface Props {
title: string;
description: string;
}
const { title } = Astro.props;
const { title, description } = Astro.props;
---

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="description" content={description} />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
<title>{title} | ISD SGCU</title>
</head>
<body>
<Navbar client:load />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/contact/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Image } from "astro:assets";
import isdlogo from "../../assets/isd-logo.png";
---

<Layout title="Contact">
<Layout title="Contact" description="Contact">
<main
class="min-h-screen w-full items-center justify-center bg-[#0F0F0F] px-[8%] py-7 lg:px-[3%] lg:py-12"
>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Layout from "../layouts/Layout.astro";
---

<Layout title="ISD SGCU">
<Layout title="Home" description="Home">
<main class="flex h-screen flex-col items-center justify-center">
<h1 class="text-3xl font-bold">Hello Astro</h1>
</main>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/project/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const projects = [
];
---

<Layout title="Projects">
<Layout title="Project" description="Project">
<main class="flex min-h-screen w-full items-center bg-[#0f0f0f] text-white">
<div class="hidden flex-col md:flex">
<h1 class="ml-[40px] flex text-5xl font-extrabold">Project</h1>
Expand Down

0 comments on commit 7f6b045

Please sign in to comment.