-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: seo * feat: seo -> shorter description * feat: next-sitemap * fix: knip, sitemap config, gitignore * fix: delete public/sitemap.xml * fix: delete public/sitemap-0.xml
- Loading branch information
1 parent
b3d3c54
commit 4c815d8
Showing
23 changed files
with
405 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,6 @@ yarn-error.log* | |
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# seo/public | ||
**/sitemap*.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
siteUrl: "https://planer.solvro.pl", | ||
generateRobotsTxt: true, | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig> | ||
<msapplication> | ||
<tile> | ||
<square150x150logo src="/mstile-150x150.png"/> | ||
<TileColor>#da532c</TileColor> | ||
</tile> | ||
</msapplication> | ||
</browserconfig> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# * | ||
User-agent: * | ||
Allow: / | ||
|
||
# Host | ||
Host: https://planer.solvro.pl | ||
|
||
# Sitemaps | ||
Sitemap: https://planer.solvro.pl/sitemap.xml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "Planer", | ||
"short_name": "Planer", | ||
"icons": [ | ||
{ | ||
"src": "/android-chrome-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/android-chrome-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"theme_color": "#ffffff", | ||
"background_color": "#ffffff", | ||
"display": "standalone" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import Head from "next/head"; | ||
import React from "react"; | ||
|
||
export const Seo = ({ | ||
pageTitle, | ||
pageDescription, | ||
pageImage, | ||
pageUrl, | ||
}: { | ||
pageTitle?: string; | ||
pageDescription?: string; | ||
pageImage?: string; | ||
pageUrl?: string; | ||
}) => ( | ||
<Head> | ||
<title> | ||
{typeof pageTitle === "string" | ||
? `${pageTitle}` | ||
: `Planer - utwórz swój plan zajęć na PWR!`} | ||
</title> | ||
<meta httpEquiv="x-ua-compatible" content="ie=edge" /> | ||
<meta | ||
name="description" | ||
content={ | ||
pageDescription ?? | ||
"Planer to strona stworzona z myślą o studentach PWR, którzy pragną w prosty i intuicyjny sposób zarządzać swoimi zapisami na kursy (za darmo!)." | ||
} | ||
/> | ||
<meta name="robots" content="index, follow" /> | ||
<meta | ||
name="keywords" | ||
content="planer, zapisy, zapisynapwr, zapisownik, usos, nauka, Solvro, pwr, wrocław, politechnika" | ||
/> | ||
|
||
<meta | ||
property="og:title" | ||
content={pageTitle ?? "Planer - utwórz swój plan zajęć na PWR!"} | ||
/> | ||
<meta | ||
property="og:description" | ||
content={ | ||
pageDescription ?? | ||
"Planer to strona stworzona z myślą o studentach PWR, którzy pragną w prosty i intuicyjny sposób zarządzać swoimi zapisami na kursy (za darmo!)." | ||
} | ||
/> | ||
<meta property="og:image" content={pageImage ?? "/og_image.png"} /> | ||
<meta property="og:url" content={pageUrl ?? "https://planer.solvro.pl/"} /> | ||
<meta property="og:type" content="website" /> | ||
|
||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta | ||
name="twitter:title" | ||
content="Planer - utwórz swój plan zajęć na PWR!" | ||
/> | ||
<meta name="twitter:description" content="https://planer.solvro.pl/" /> | ||
<meta name="twitter:image" content="/og_image.png" /> | ||
|
||
<meta name="msapplication-TileColor" content="#da532c" /> | ||
<meta name="theme-color" content="#ffffff" /> | ||
|
||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" /> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" /> | ||
<link rel="manifest" href="/site.webmanifest" /> | ||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" /> | ||
<link rel="canonical" href="https://planer.solvro.pl/" /> | ||
</Head> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.