mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-04-17 04:26:46 +02:00
26 lines
600 B
TypeScript
26 lines
600 B
TypeScript
import { useSiteMetadata } from "@/hooks";
|
|
import React from "react";
|
|
import * as styles from "./Author.module.scss";
|
|
|
|
const Author = () => {
|
|
const { author } = useSiteMetadata();
|
|
|
|
return (
|
|
<div className={styles.author}>
|
|
<p className={styles.bio}>
|
|
Written by:{" "}
|
|
<a href="/pages/about">
|
|
<strong>{author.name}</strong>
|
|
</a>
|
|
{typeof window !== "undefined" ? (
|
|
<span className="showInPrintView"> {window ? `@ ${window.location}` : ""}</span>
|
|
) : (
|
|
""
|
|
)}
|
|
</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Author;
|