Skip to content

Commit

Permalink
Add robots.txt
Browse files Browse the repository at this point in the history
(+ a meta tag)
  • Loading branch information
kubgus committed Aug 27, 2024
1 parent cf31e1d commit 08e3bc8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
1 change: 1 addition & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
User-agent: *
47 changes: 24 additions & 23 deletions src/layouts/core.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ const { title, meta } = Astro.props || {
}
---

<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content={Astro.generator} />

{ meta?.map((meta : any) =>
<meta name={meta.name} content={meta.content} />)
}

<link rel="icon" type="image/png" href="/favicon.png" />

<title>{title}</title>
</head>
<body>
<slot />
</body>
</html>

<style is:global>
@import url("https://fonts.googleapis.com/css2?family=Rubik&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@500&display=swap");
Expand All @@ -19,11 +38,11 @@ const { title, meta } = Astro.props || {
--complementary-accent-dark-3: #54bc70
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

::selection {
background-color: var(--primary-accent-dark);
Expand Down Expand Up @@ -126,21 +145,3 @@ const { title, meta } = Astro.props || {
background-color: var(--complementary-accent-dark-3);
}
</style>

<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

{ meta?.map((meta : any) =>
<meta name={meta.name} content={meta.content} />)
}

<link rel="icon" type="image/png" href="/favicon.png" />

<title>{title}</title>
</head>
<body>
<slot />
</body>
</html>

0 comments on commit 08e3bc8

Please sign in to comment.