Skip to content

Commit

Permalink
Added Custom title to 404 (#117)
Browse files Browse the repository at this point in the history
just updating the lastest changes from dev branch to main branch✅
  • Loading branch information
muhammad-fiaz authored Sep 3, 2023
1 parent 3916c8d commit c76ee42
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import Custom404 from "../src/components/blocks/errors/custom404";
import Title404 from "./title.404";

export default function Notfound() {
return (
<div>
<Title404/>
<Custom404/>
</div>
);
Expand Down
30 changes: 30 additions & 0 deletions pages/title.404.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import Head from 'next/head';
import React from 'react';
import Script from "next/script";

export default function Title404() {
return (
<Head>

{/*
Author: Muhammad Fiaz
GitHub: Visit the GitHub repository at https://github.com/muhammad-fiaz/portfolio/ for more details.
license: MIT License
*/}
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>404 - Page Not Found | Muhammad Fiaz</title>
<meta name="description" content="The requested page was not found or the link is broken. " />
{/*These are the Keywords that will Boost your SEO in Ranking, so Make Sure to include and Update it up to your preference or don't mind this! 😴*/}
<meta name="keywords" content="404, Page Not Found, Muhammad Fiaz, Portfolio,broken link ,missing page,link not found" />







</Head>
);
}
6 changes: 4 additions & 2 deletions pages/title.document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ export default function TitleDocument() {
<meta name="googlebot" content="index, follow" />
<meta name="bingbot" content="index, follow" />


<link rel="apple-touch-icon" sizes="180x180" href="/favicon/favicon.jpg" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon.ico" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon.jpg" />
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="icon" href="/favicon/favicon-org.ico" type="image/x-icon"></link>
<link rel="shortcut icon" href="/favicon/favicon-org.ico" type="image/x-icon"></link>

<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<link rel="manifest" href="/manifest.json" />
Expand Down
Binary file added public/favicon/favicon-org.ico
Binary file not shown.

0 comments on commit c76ee42

Please sign in to comment.