feat(init): make project name as default header title (#1275)

default header title should be same as project name
This commit is contained in:
kit
2023-06-18 06:39:37 +02:00
committed by GitHub
parent 4d66f95ef6
commit 4e2abd67dd
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { join, parse, resolve } from "./src/dev/deps.ts"; import { basename, join, parse, resolve } from "./src/dev/deps.ts";
import { error } from "./src/dev/error.ts"; import { error } from "./src/dev/error.ts";
import { collect, ensureMinDenoVersion, generate } from "./src/dev/mod.ts"; import { collect, ensureMinDenoVersion, generate } from "./src/dev/mod.ts";
import { import {
@@ -115,7 +115,7 @@ export default function Home() {
return ( return (
<> <>
<Head> <Head>
<title>Fresh App</title> <title>${basename(resolvedDirectory)}</title>
</Head> </Head>
<div class="px-4 py-8 mx-auto bg-[#86efac]"> <div class="px-4 py-8 mx-auto bg-[#86efac]">
<div class="max-w-screen-md mx-auto flex flex-col items-center justify-center"> <div class="max-w-screen-md mx-auto flex flex-col items-center justify-center">
+1
View File
@@ -1,5 +1,6 @@
// std // std
export { export {
basename,
dirname, dirname,
extname, extname,
fromFileUrl, fromFileUrl,