mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-25 14:29:36 +01:00
back to article list + read only when time is known
This commit is contained in:
parent
1c137af313
commit
bc03788355
@ -42,7 +42,7 @@ const Feed: React.FC<Props> = ({ edges }: Props) => (
|
|||||||
</h2>
|
</h2>
|
||||||
<p className={styles.description}>{edge.node.frontmatter.description}</p>
|
<p className={styles.description}>{edge.node.frontmatter.description}</p>
|
||||||
<Link className={styles.more} to={edge.node.fields.slug}>
|
<Link className={styles.more} to={edge.node.fields.slug}>
|
||||||
Read ({edge.node.fields.readingTime?.text})
|
{edge.node.fields.readingTime?.text && <>Read ({edge.node.fields.readingTime?.text})</>}
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
@ -30,10 +30,7 @@ exports[`Feed renders correctly 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
href="/posts/perfecting-the-art-of-perfection"
|
href="/posts/perfecting-the-art-of-perfection"
|
||||||
>
|
/>
|
||||||
Read (
|
|
||||||
)
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
@ -63,10 +60,7 @@ exports[`Feed renders correctly 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
href="/posts/the-birth-of-movable-type"
|
href="/posts/the-birth-of-movable-type"
|
||||||
>
|
/>
|
||||||
Read (
|
|
||||||
)
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -30,7 +30,7 @@ exports[`Content renders correctly 1`] = `
|
|||||||
className="hideInPrintView"
|
className="hideInPrintView"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="/"
|
onClick={[Function]}
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"lineHeight": "50px",
|
"lineHeight": "50px",
|
||||||
@ -38,7 +38,7 @@ exports[`Content renders correctly 1`] = `
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
↩ All articles
|
↩ Back to articles
|
||||||
</a>
|
</a>
|
||||||
<span
|
<span
|
||||||
className="hideInPrintView"
|
className="hideInPrintView"
|
||||||
|
@ -31,7 +31,7 @@ exports[`Post renders correctly 1`] = `
|
|||||||
className="hideInPrintView"
|
className="hideInPrintView"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="/"
|
onClick={[Function]}
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"lineHeight": "50px",
|
"lineHeight": "50px",
|
||||||
@ -39,7 +39,7 @@ exports[`Post renders correctly 1`] = `
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
↩ All articles
|
↩ Back to articles
|
||||||
</a>
|
</a>
|
||||||
<span
|
<span
|
||||||
className="hideInPrintView"
|
className="hideInPrintView"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Image } from "@/components/Image";
|
import { Image } from "@/components/Image";
|
||||||
import { Link } from "gatsby";
|
import { Link, navigate } from "gatsby";
|
||||||
import React, { FunctionComponent } from "react";
|
import React, { FunctionComponent } from "react";
|
||||||
import { ThemeSwitcher } from "../ThemeSwitcher/ThemeSwitcher";
|
import { ThemeSwitcher } from "../ThemeSwitcher/ThemeSwitcher";
|
||||||
import * as styles from "./PostHeader.module.scss";
|
import * as styles from "./PostHeader.module.scss";
|
||||||
@ -24,9 +24,9 @@ export const PostHeader: FunctionComponent<Props> = ({ author }) => {
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span className="hideInPrintView">
|
<span className="hideInPrintView">
|
||||||
<Link to="/" style={{ lineHeight: "50px", marginRight: "10px" }}>
|
<a onClick={() => navigate(-1)} style={{ lineHeight: "50px", marginRight: "10px" }}>
|
||||||
↩ All articles
|
↩ Back to articles
|
||||||
</Link>
|
</a>
|
||||||
<ThemeSwitcher showLabel={false} />
|
<ThemeSwitcher showLabel={false} />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -281,10 +281,7 @@ exports[`CategoryTemplate renders correctly 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
href="/posts/perfecting-the-art-of-perfection"
|
href="/posts/perfecting-the-art-of-perfection"
|
||||||
>
|
/>
|
||||||
Read (
|
|
||||||
)
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
@ -314,10 +311,7 @@ exports[`CategoryTemplate renders correctly 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
href="/posts/the-birth-of-movable-type"
|
href="/posts/the-birth-of-movable-type"
|
||||||
>
|
/>
|
||||||
Read (
|
|
||||||
)
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
@ -278,10 +278,7 @@ exports[`IndexTemplate renders correctly 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
href="/posts/perfecting-the-art-of-perfection"
|
href="/posts/perfecting-the-art-of-perfection"
|
||||||
>
|
/>
|
||||||
Read (
|
|
||||||
)
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
@ -311,10 +308,7 @@ exports[`IndexTemplate renders correctly 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
href="/posts/the-birth-of-movable-type"
|
href="/posts/the-birth-of-movable-type"
|
||||||
>
|
/>
|
||||||
Read (
|
|
||||||
)
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
@ -32,7 +32,7 @@ exports[`PostTemplate renders correctly 1`] = `
|
|||||||
className="hideInPrintView"
|
className="hideInPrintView"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="/"
|
onClick={[Function]}
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"lineHeight": "50px",
|
"lineHeight": "50px",
|
||||||
@ -40,7 +40,7 @@ exports[`PostTemplate renders correctly 1`] = `
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
↩ All articles
|
↩ Back to articles
|
||||||
</a>
|
</a>
|
||||||
<span
|
<span
|
||||||
className="hideInPrintView"
|
className="hideInPrintView"
|
||||||
|
@ -281,10 +281,7 @@ exports[`TagTemplate renders correctly 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
href="/posts/perfecting-the-art-of-perfection"
|
href="/posts/perfecting-the-art-of-perfection"
|
||||||
>
|
/>
|
||||||
Read (
|
|
||||||
)
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
@ -314,10 +311,7 @@ exports[`TagTemplate renders correctly 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<a
|
<a
|
||||||
href="/posts/the-birth-of-movable-type"
|
href="/posts/the-birth-of-movable-type"
|
||||||
>
|
/>
|
||||||
Read (
|
|
||||||
)
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
Loading…
Reference in New Issue
Block a user