Skip to content

Commit

Permalink
Configure website metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Jan 14, 2024
1 parent 8e73d40 commit a6ad112
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import JaipurPhoto from "@assets/jaipur.jpg"

export const config = {
siteTitle: "UbuCon Asia 2024",
siteDescription: "JECRC University, Jaipur, India | August 31st - September 2nd",
blog: {
rssFeedUrl: "https://blog.ubucon.asia/tags/uca24/index.xml",
viewMoreUrl: "https://blog.ubucon.asia/tags/uca24"
Expand Down
5 changes: 3 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
import "vanilla-framework/_index.scss";
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="viewport" content="width=device-width" />
<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} />
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/MarkdownLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Props = MarkdownLayoutProps<{
const { frontmatter } = Astro.props;
---

<Shell title={frontmatter.title}>
<Shell title={frontmatter.title} description={frontmatter.description}>
<Strip bordered shallow colSize={8} element="section">
<h1>{frontmatter.title}</h1>
<p>{frontmatter.description}</p>
Expand Down
7 changes: 4 additions & 3 deletions src/layouts/Shell.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import GlobalNavigation from "@components/GlobalNavigation.tsx";
import Layout from "@layouts/Layout.astro";
interface Props {
title: string;
title?: string;
description?: string;
}
const { title } = Astro.props;
const { title, description } = Astro.props;
import { config } from "../config";
---

<Layout title={title}>
<Layout title={title ? `${title} - ${config.siteTitle}` : config.siteTitle} description={description ? description : config.siteDescription}>
<div class="l-site">
<GlobalNavigation
logoTitle={config.siteTitle}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import uca24logo from "@assets/logo.svg";
import logoPlaceHolder from "@assets/logo_placeholder.svg";
---

<Shell title={config.siteTitle}>
<Shell>
<Strip type="accent" element="section" includeCol={false}>
<Row>
<Col size={3} />
Expand Down

0 comments on commit a6ad112

Please sign in to comment.