mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 18:45:42 +00:00
Converted generateSitemap to TypeScript
This commit is contained in:
parent
d27ab9b431
commit
97f8b7e8bb
@ -21,7 +21,7 @@ export function Footer() {
|
|||||||
<OuterContainer>
|
<OuterContainer>
|
||||||
<div className="border-t border-zinc-100 pt-10 pb-16 dark:border-zinc-700/40">
|
<div className="border-t border-zinc-100 pt-10 pb-16 dark:border-zinc-700/40">
|
||||||
<InnerContainer>
|
<InnerContainer>
|
||||||
<SpotifyPlayer/>
|
{/*<SpotifyPlayer/>*/}
|
||||||
<div className="flex flex-col items-center justify-between gap-6 mt-12">
|
<div className="flex flex-col items-center justify-between gap-6 mt-12">
|
||||||
<div className="flex gap-6 text-sm font-medium text-zinc-800 dark:text-zinc-200">
|
<div className="flex gap-6 text-sm font-medium text-zinc-800 dark:text-zinc-200">
|
||||||
<NavLink href="/about">About</NavLink>
|
<NavLink href="/about">About</NavLink>
|
||||||
|
@ -5,7 +5,7 @@ import {writeFile} from 'fs/promises'
|
|||||||
|
|
||||||
const BASE_URL = process.env.NEXT_PUBLIC_SITE_URL
|
const BASE_URL = process.env.NEXT_PUBLIC_SITE_URL
|
||||||
|
|
||||||
async function createSitemap(pages) {
|
async function createSitemap(pages: string[]) {
|
||||||
const sitemap =
|
const sitemap =
|
||||||
`<?xml version="1.0" encoding="UTF-8"?>
|
`<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
Loading…
Reference in New Issue
Block a user