Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add og:image #55

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/posts/implementing-a-javascript-sandbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ date: 2024-07-06
- 单步/断点调试
- 统计测试覆盖率

![](../assets/implementing-a-javascript-sandbox/function-screenshot.jpg)
![Function debugging screenshot](../assets/implementing-a-javascript-sandbox/function-screenshot.jpg)

<p className="figure-caption">优维低代码平台的函数调试界面</p>

Expand Down
7 changes: 6 additions & 1 deletion src/gatsby-theme-blog/components/header.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/** @jsx jsx */
import React from "react"
import { Link } from "gatsby"
import Helmet from "react-helmet"
import { jsx, css, Styled } from "theme-ui"
import Bio from "gatsby-theme-blog/src/components/bio"
import { SkipNavLink } from "@reach/skip-nav"
import ColorModeSwitch from "../../components/color-mode-switch";
import ColorModeSwitch from "../../components/color-mode-switch"

const rootPath = `${__PATH_PREFIX__}/`

Expand Down Expand Up @@ -55,6 +57,9 @@ const Title = ({ children, location }) => {

const Header = ({ children, title, ...props }) => (
<header>
<Helmet>
<meta property="og:image" content="https://www.wangshenwei.com/static/2b467d8e9e1c0d3a8662ef8c8a223a18/88b72/avatar.png" />
</Helmet>
<SkipNavLink sx={{ variant: `styles.a` }} />
<div
css={css({
Expand Down
Loading