Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yashhere committed Jul 4, 2023
1 parent f92c6bb commit 5469696
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 18 deletions.
4 changes: 2 additions & 2 deletions app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC } from "react"
import { Metadata } from "next"
import Link from "@/ui/link/link"
import RandomPhoto from "@/ui/random-photo"
import { Metadata } from "next"
import { FC } from "react"

export const metadata: Metadata = {
title: "About Me | Yash Agarwal",
Expand Down
5 changes: 2 additions & 3 deletions app/blog/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Metadata } from "next"
import { getAllLikesCount, getAllViewsCount, getLikes } from "@/lib/db"
import { BlogPostList } from "@/ui/post/blog-list"
import { allPosts } from "contentlayer/generated"
import { compareDesc } from "date-fns"

import { getAllLikesCount, getAllViewsCount, getLikes } from "@/lib/db"
import { Metadata } from "next"

export const metadata: Metadata = {
title: "Writing | Yash Agarwal",
Expand Down
12 changes: 5 additions & 7 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import "../styles/globals.css"

import { Metadata } from "next"
import { Fira_Code } from "next/font/google"
import localFont from "next/font/local"
import { siteConfig } from "@/config/site"
import { cn } from "@/lib/utils"
import { Analytics } from "@/ui/analytics"
import { Footer } from "@/ui/layout/footer"
import { Navigation } from "@/ui/layout/navigation"
import { TailwindIndicator } from "@/ui/tailwind-indicator"
import { ThemeProvider } from "@/ui/theme-provider"

import { siteConfig } from "@/config/site"
import { cn } from "@/lib/utils"
import { Metadata } from "next"
import { Fira_Code } from "next/font/google"
import localFont from "next/font/local"

const bodyFont = localFont({
src: "../public/assets/fonts/wotfard.ttf",
Expand Down
5 changes: 2 additions & 3 deletions app/stats/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Suspense } from "react"
import { getTotalViews } from "@/lib/db"
import { ArrowTrendingUpIcon, PencilIcon } from "@heroicons/react/24/solid"
import { allPosts } from "contentlayer/generated"

import { getTotalViews } from "@/lib/db"
import { Suspense } from "react"

const Page = async () => {
const data = await getTotalViews()
Expand Down
3 changes: 1 addition & 2 deletions lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { env } from "@/env.mjs"
import { ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"

import { env } from "@/env.mjs"

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
"@/public/*": ["./public/*"],
"@/styles/*": ["./styles/*"],
"@/types": ["./types"],
"@/config": ["./config"],
"@/container/*": ["./container/*"],
"contentlayer/generated": ["./.contentlayer/generated"],
"@/content/*": ["./content/*"]
"@/content/*": ["./content/*"],
"@/*": ["./*"]
},
"plugins": [
{
Expand Down

0 comments on commit 5469696

Please sign in to comment.