Remove heading and subheading metadata
We just use `title` and `description` now.
This commit is contained in:
parent
84d706ca5e
commit
185ed9f36e
6 changed files with 16 additions and 25 deletions
|
@ -1,15 +1,15 @@
|
|||
export interface Props {
|
||||
heading: string;
|
||||
subheading?: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
comp: any;
|
||||
}
|
||||
|
||||
export default function(props: Props) {
|
||||
return (
|
||||
<header className="page-header">
|
||||
<h1>{ props.heading }</h1>
|
||||
<h1>{ props.title }</h1>
|
||||
{props.comp.separator()}
|
||||
<p className="subheading">{ props.subheading }</p>
|
||||
<p className="subheading">{ props.description }</p>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
export default function({ title, header, children, comp }) {
|
||||
export default function({ title, description, children, comp }) {
|
||||
return (
|
||||
<html>
|
||||
<head>
|
||||
<meta charSet="utf-8"/>
|
||||
<title>{ title }</title>
|
||||
<meta name="description" content="Hello, my name is Foster Hangdaan. I am a software developer and open-source enthusiast."/>
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description}/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/styles/main.css"/>
|
||||
<link rel="icon" type="image/png" href="/icons/tabicon-16.png" sizes="16x16" />
|
||||
|
@ -15,7 +15,7 @@ export default function({ title, header, children, comp }) {
|
|||
</head>
|
||||
<body>
|
||||
{ comp.navbar() }
|
||||
{ comp.header(header) }
|
||||
{ comp.header({title, description}) }
|
||||
{ children }
|
||||
{ comp.separator() }
|
||||
{ comp.footer() }
|
||||
|
|
|
@ -5,13 +5,13 @@ .page-header {
|
|||
max-width: var(--page--max-width);
|
||||
text-align: center;
|
||||
h1 {
|
||||
margin-top: 0;
|
||||
margin: 0;
|
||||
background: -webkit-linear-gradient(45deg, var(--color-red), var(--color-blue));
|
||||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.subheading {
|
||||
p.subheading {
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
export const title = "GPG Key - Foster Hangdaan";
|
||||
export const title = "GPG Key";
|
||||
|
||||
export const header = {
|
||||
heading: "GPG Key",
|
||||
subheading: "Information about my public GPG key and how to obtain it.",
|
||||
};
|
||||
export const description = "Information about my public GPG key and how to obtain it.";
|
||||
|
||||
const gpgFingerprint = `
|
||||
pub ed25519/E48D7F49A852F112 2023-07-14 [SC]
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
export const header = {
|
||||
heading: "Hi! My name is Foster",
|
||||
subheading: "Congratulations, stranger. You have found the personal website of Foster Hangdaan.",
|
||||
};
|
||||
export const description = "Software developer and open-source enthusiast.";
|
||||
|
||||
export default function({ comp }) {
|
||||
export default function() {
|
||||
return (
|
||||
<>
|
||||
<section>
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
export const title = "Resume - Foster Hangdaan";
|
||||
export const title = "Resume";
|
||||
|
||||
export const header = {
|
||||
heading: "Resume",
|
||||
subheading: <span><a href="https://static.fosterhangdaan.com/documents/foster-hangdaan-resume.pdf" download>Download my resume</a>.</span>,
|
||||
};
|
||||
export const description = "My experience, skills, education, etc.";
|
||||
|
||||
export default function() {
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue