fix: prerender
This commit is contained in:
@@ -8,7 +8,7 @@ const SRC_CONFIG = path.join(ROOT, "src", "config.ts");
|
|||||||
|
|
||||||
const DEFAULTS = {
|
const DEFAULTS = {
|
||||||
BLOG_NAME: "hyperzine",
|
BLOG_NAME: "hyperzine",
|
||||||
BLOG_SITE_URL: "https://hyperzine.xyz";
|
BLOG_SITE_URL: "https://hyperzine.xyz",
|
||||||
BLOG_DEFAULT_DESCRIPTION: "hyperzine",
|
BLOG_DEFAULT_DESCRIPTION: "hyperzine",
|
||||||
MANIFEST_TX_ID: ""
|
MANIFEST_TX_ID: ""
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ function PostPage({
|
|||||||
<header className="post-header">
|
<header className="post-header">
|
||||||
<h1>{title}</h1>
|
<h1>{title}</h1>
|
||||||
<p>{description}</p>
|
<p>{description}</p>
|
||||||
<div className="meta-row">
|
<div className="meta-row post-meta-row">
|
||||||
{publishedDate && <span>Published {publishedDate}</span>}
|
{publishedDate && <span>Published {publishedDate}</span>}
|
||||||
{updatedDate && <span>Updated {updatedDate}</span>}
|
{updatedDate && <span>Updated {updatedDate}</span>}
|
||||||
{post.readingTime && <span>{post.readingTime} min read</span>}
|
{post.readingTime && <span>{post.readingTime} min read</span>}
|
||||||
|
|||||||
@@ -207,6 +207,15 @@ a {
|
|||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-meta-row > span + span::before {
|
||||||
|
content: "|";
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
background: none;
|
||||||
|
top: 0;
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
.post {
|
.post {
|
||||||
max-width: 760px;
|
max-width: 760px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user