Skip to content

Commit

Permalink
feat(init): make project name as default header title (#1275)
Browse files Browse the repository at this point in the history
default header title should be same as project name
  • Loading branch information
huai-jie authored Jun 18, 2023
1 parent 4d66f95 commit 4e2abd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.ts
Original file line number Diff line number Diff line change
@@ -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 { collect, ensureMinDenoVersion, generate } from "./src/dev/mod.ts";
import {
Expand Down Expand Up @@ -115,7 +115,7 @@ export default function Home() {
return (
<>
<Head>
<title>Fresh App</title>
<title>${basename(resolvedDirectory)}</title>
</Head>
<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">
Expand Down
1 change: 1 addition & 0 deletions src/dev/deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// std
export {
basename,
dirname,
extname,
fromFileUrl,
Expand Down

0 comments on commit 4e2abd6

Please sign in to comment.