Skip to content

Commit 6fe287f

Browse files
committed
add piggo logo
1 parent d16f8d9 commit 6fe287f

File tree

4 files changed

+192
-3
lines changed

4 files changed

+192
-3
lines changed

src/components/Navbar.astro

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export interface Props {
44
}
55
66
import {borderColor, bgColor, borderStyle, buttonColors} from '../layouts/meta.js';
7+
import logo from '../images/piggo.svg';
78
89
const { title } = Astro.props;
910
@@ -25,6 +26,7 @@ const links = [
2526

2627
<header class={`flex flex-row flex-wrap gap-8 rounded mb-4 p-4 items-end text-black dark:text-white ${borderColor} ${bgColor} ${borderStyle}`}>
2728
<h1 class="text-4xl font-bold">
29+
<img class="inline-block h-12" alt="PGo logo" src={logo} />
2830
<a href="/">PGo</a>
2931
</h1>
3032
<nav class="ml-auto mr-8">

src/components/TableOfContents.astro

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import {borderColor, bgColor, buttonColors} from '../layouts/meta.js';
1111
1212
const {headings} = Astro.props;
1313
14-
headings
15-
1614
function consumeHeadings(headings: Heading[], level: number): any[] {
1715
if(headings.length === 0) {
1816
return []

src/images/piggo.svg

+188
Loading

src/layouts/Layout.astro

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Navbar from '../components/Navbar.astro';
33
import TableOfContents from '../components/TableOfContents.astro';
44
55
import {borderColor, bgColor, borderStyle} from '../layouts/meta.js';
6+
import logo from '../images/piggo.svg';
67
78
const { frontmatter: {title}, headings } = Astro.props;
89
---
@@ -12,7 +13,7 @@ const { frontmatter: {title}, headings } = Astro.props;
1213
<head>
1314
<meta charset="UTF-8" />
1415
<meta name="viewport" content="width=device-width" />
15-
<!--<link rel="icon" type="image/svg+xml" href="/favicon.svg" />-->
16+
<link rel="icon" type="image/svg+xml" href={logo} />
1617
<meta name="generator" content={Astro.generator} />
1718
<title>PGo: {title}</title>
1819
</head>

0 commit comments

Comments
 (0)