Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
fix: broken meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-bell committed Jun 17, 2021
1 parent 8bd3615 commit 79ed093
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
baseUrl: "/docs/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: withUrl("/assets/images/favicon/favicon@192px.png"),
favicon: "https://plaiceholder.co/assets/images/favicon/favicon@192px.png",
organizationName: "joe-bell",
projectName: "plaiceholder",
themeConfig: {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/theme/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function CustomRoot({ children }) {
<Head>
<meta
property="og:image"
content={withUrl("assets/images/og/og.png")}
content={withUrl("/assets/images/og/og.png")}
/>

<link
Expand Down
4 changes: 1 addition & 3 deletions docs/src/utils.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
const path = require("path");

const isProduction = process.env.NODE_ENV !== "development";

const domain = "plaiceholder.co";
const url = ["https://", domain].join("");

/** @param {string} [externalPathName] */
const withUrl = (externalPathName) =>
externalPathName ? path.join(url, externalPathName) : url;
externalPathName ? [url, externalPathName].join("") : url;

module.exports = {
isProduction,
Expand Down

0 comments on commit 79ed093

Please sign in to comment.