Skip to content

Commit

Permalink
添加footer logo链接字段
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidier committed Nov 13, 2024
1 parent 3f29a14 commit aa7ec23
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/layout/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Footer = ({ data }) => {
<div className="w-full py-6 bg-deep-sky flex flex-col items-center">
<ImageLink
src={logoWhite}
href="/"
href={data.homeurl}
className="max-w-48 mb-11 sm:mb-6 sm:max-w-28"
width={112}
height={30}
Expand Down
1 change: 1 addition & 0 deletions content/global/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
]
},
"footer": {
"homeurl": "https://opentai.github.io/",
"nav": [
{
"href": "https://opentai.github.io/",
Expand Down
5 changes: 5 additions & 0 deletions tina/collection/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ const Global: Collection = {
label: "Footer",
name: "footer",
fields: [
{
type: "string",
label: "Home Url",
name: "homeurl",
},
{
type: "object",
label: "Nav Links",
Expand Down
2 changes: 1 addition & 1 deletion tina/tina-lock.json

Large diffs are not rendered by default.

0 comments on commit aa7ec23

Please sign in to comment.