Skip to content

Commit

Permalink
Merge pull request #69 from yourssu/fix/meta-error
Browse files Browse the repository at this point in the history
[FIX] undefined 및 개행 문자 문제 해결
  • Loading branch information
owl1753 authored Feb 4, 2025
2 parents 6e44771 + 7744ac4 commit dd4294f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules/
.cache/
public
src/gatsby-types.d.ts
.env
.env
.idea
4 changes: 3 additions & 1 deletion src/templates/DescriptionTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ export function Head({
data: SanityDepartmentData;
}) {
const data = allSanityDepartment.edges[0].node.basicInformation;

return (
<DepartmentSeo
title={`${data.short_introduction} ${data.name}`}
title={`${data.short_introduction.replace(/\\n/g, '')} ${data.name}`}
description={data.long_introduction}
image={data.icon.asset.gatsbyImageData}
/>
Expand All @@ -143,6 +144,7 @@ export const querySanityDataByName = graphql`
edges {
node {
basicInformation {
name
short_introduction
long_introduction
apply_link
Expand Down

0 comments on commit dd4294f

Please sign in to comment.