Skip to content

Commit

Permalink
🔖 v1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentDepth committed Apr 19, 2023
2 parents 29e91fe + 6df8a61 commit 9f063f1
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 74 deletions.
4 changes: 2 additions & 2 deletions components/Container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ const Container = ({ children, layout, fullWidth, ...customMeta }) => {
{/* <meta content={BLOG.darkBackground} name="theme-color" /> */}
<meta name="robots" content="follow, index"/>
<meta charSet="UTF-8"/>
{BLOG.seo.googleSiteVerification && (
{BLOG.seo?.googleSiteVerification && (
<meta
name="google-site-verification"
content={BLOG.seo.googleSiteVerification}
/>
)}
{BLOG.seo.keywords && (
{BLOG.seo?.keywords && (
<meta name="keywords" content={BLOG.seo.keywords.join(', ')}/>
)}
<meta name="description" content={meta.description}/>
Expand Down
2 changes: 1 addition & 1 deletion components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Footer ({ fullWidth }: Props) {
let text: string
// If user defined `footerText`, use it as a template
if (footerText) {
text = execTemplate(footerText, { since })
text = execTemplate(footerText, { since: getSinceText(since) })
}
// If not, generate a simple version
else {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@osmium-blog/osmium",
"version": "1.1.2",
"version": "1.1.3",
"homepage": "https://github.com/osmium-blog/osmium",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -49,7 +49,7 @@
"react-notion-x": "^6.16.0",
"react-tweet-embed": "^2.0.0",
"react-use": "^17.4.0",
"satori": "^0.4.7",
"satori": "^0.4.10",
"sharp": "^0.32.0",
"ufo": "^1.1.1",
"use-ackee": "^3.0.1"
Expand Down
1 change: 0 additions & 1 deletion pages/api/og-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default (async function handler (req, res) {
height: '100%',
backgroundColor: '#000',
backgroundImage: `linear-gradient(153.4349488229deg, #${hash.slice(0, 6)}80, #${hash.slice(6, 12)}80)`,
backgroundSize: '100% 162%',
}}>
{logo && (
// eslint-disable-next-line @next/next/no-img-element,jsx-a11y/alt-text
Expand Down
67 changes: 38 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@

@at-root {
.site-title {
@apply whitespace-nowrap overflow-hidden;

@at-root .site-description {
@apply before:content-[',_'] font-normal opacity-0;

Expand Down
2 changes: 2 additions & 0 deletions styles/notion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ pre[class*='language-'] {
}

.notion-asset-wrapper-image {
max-width: 100vw;

&.notion-asset-wrapper-full {
@apply max-w-full;

Expand Down
40 changes: 1 addition & 39 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,4 @@
{
"cleanUrls": true,
"trailingSlash": false,
"headers": [
{
"source": "/fonts/IBMPlexSansVar-Roman.woff2",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/fonts/IBMPlexSansVar-Italic.woff2",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/fonts/SourceSerif.var.woff2",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/fonts/SourceSerif-Italic.var.woff2",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
"trailingSlash": false
}

0 comments on commit 9f063f1

Please sign in to comment.