Skip to content

Commit

Permalink
feat: add document title per blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
barthuijgen committed Apr 1, 2023
1 parent 4ee5326 commit 1434aec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/blueprints/src/components/blueprint/Blueprint.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from "react";
import Link from "next/link";
import Head from "next/head";
import { Grid, Box } from "@chakra-ui/react";
import styled from "@emotion/styled";
import { css } from "@emotion/react";
Expand Down Expand Up @@ -91,6 +92,11 @@ export const BlueprintSubPage: React.FC<BlueprintProps> = ({
<StyledBlueptintPage
templateColumns={chakraResponsive({ mobile: "1fr", desktop: "1fr 1fr 1fr 1fr" })}
>
<Head>
<title>
{(blueprint_page.title ? `${blueprint_page.title} - ` : "") + "Factorio blueprints"}
</title>
</Head>
<Panel
className="image"
gridColumn={chakraResponsive({ mobile: "1", desktop: "3 / span 2" })}
Expand Down
6 changes: 6 additions & 0 deletions apps/blueprints/src/components/blueprint/BlueprintBook.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useEffect, useMemo, useState } from "react";
import Link from "next/link";
import Head from "next/head";
import { Box, Grid } from "@chakra-ui/react";
import styled from "@emotion/styled";
import { css } from "@emotion/react";
Expand Down Expand Up @@ -142,6 +143,11 @@ export const BlueprintBookSubPage: React.FC<BlueprintBookSubPageProps> = ({
className="bp-book"
templateColumns={chakraResponsive({ mobile: "1fr", desktop: "1fr 1fr 1fr 1fr" })}
>
<Head>
<title>
{(blueprint_page.title ? `${blueprint_page.title} - ` : "") + "Factorio blueprints"}
</title>
</Head>
<Panel
className="child-tree"
title={
Expand Down

0 comments on commit 1434aec

Please sign in to comment.