mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-10-30 00:07:36 +01:00
enhanced print view
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import React from "react";
|
||||
|
||||
import * as styles from "./Author.module.scss";
|
||||
import { useSiteMetadata } from "@/hooks";
|
||||
|
||||
import React from "react";
|
||||
import * as styles from "./Author.module.scss";
|
||||
|
||||
const Author = () => {
|
||||
const { author } = useSiteMetadata();
|
||||
@@ -10,9 +8,11 @@ const Author = () => {
|
||||
return (
|
||||
<div className={styles.author}>
|
||||
<p className={styles.bio}>
|
||||
Written by: <a href="/pages/about">
|
||||
Written by:{" "}
|
||||
<a href="/pages/about">
|
||||
<strong>{author.name}</strong>
|
||||
</a>
|
||||
<span className="showInPrintView"> {`@ ${window.location}`}</span>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
exports[`Author renders correctly 1`] = `
|
||||
<div>
|
||||
<p>
|
||||
Written by:
|
||||
Written by:
|
||||
|
||||
<a
|
||||
href="/pages/about"
|
||||
>
|
||||
@@ -11,6 +12,12 @@ exports[`Author renders correctly 1`] = `
|
||||
Rick van Lieshout
|
||||
</strong>
|
||||
</a>
|
||||
<span
|
||||
className="showInPrintView"
|
||||
>
|
||||
|
||||
@ http://localhost/
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user