-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1b901b
commit 990832b
Showing
8 changed files
with
131 additions
and
115 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
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 |
---|---|---|
@@ -1,3 +1,13 @@ | ||
<pre class="w-full h-full appearance-none !m-0 !p-0 flex"> | ||
<code class="w-full h-full appearance-none !m-0 !p-4 !bg-zinc-950 text-xs overflow-x-auto overflow-y-auto md:overflow-y-scroll" [highlight]="code" [language]="'html'"></code> | ||
</pre> | ||
<div class="relative h-full"> | ||
<div class="absolute top-2 right-6 flex justify-center items-center z-10"> | ||
<button | ||
(click)="copy()" | ||
class="h-6 bg-zinc-800 hover:bg-zinc-700 text-zinc-200 hover:text-zinc-50 rounded text-xs px-2 py-2 flex justify-center items-center"> | ||
Copy | ||
</button> | ||
</div> | ||
<pre class="w-full h-full appearance-none !m-0 !p-0 flex relative"> | ||
<code class="w-full h-full appearance-none !m-0 !p-4 !bg-zinc-950 text-xs overflow-x-auto overflow-y-auto md:overflow-y-scroll" [highlight]="code" [language]="'html'"></code> | ||
</pre> | ||
|
||
</div> |
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
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,52 @@ | ||
export function returnCode(data) { | ||
if (!data) { | ||
data = { | ||
charset: '', | ||
viewport: '', | ||
title: '', | ||
description: '', | ||
canonical: '', | ||
image: '', | ||
imageAlt: '', | ||
favicon: '', | ||
color: '', | ||
author: '', | ||
robots: '', | ||
googlebot: '', | ||
sitemap: '', | ||
locale: '', | ||
site: '', | ||
} | ||
} | ||
return ` | ||
<!-- HTML Meta Tags --> | ||
<meta charset="${data.charset}"> | ||
<meta name="viewport" content="${data.viewport}"> | ||
<title>${data.title}</title> | ||
<link rel="canonical" href="${data.canonical}"> | ||
<link rel="icon" type="image/x-icon" href="${data.favicon}"> | ||
<meta name="robots" content="${data.robots}"> | ||
<meta name="googlebot" content="${data.googlebot}"> | ||
<meta name="description" content="${data.description}"> | ||
<meta name="author" content="${data.author}"> | ||
<meta name="theme-color" content="${data.color}"> | ||
<!-- Facebook Meta Tags --> | ||
<meta property="og:url" content="${data.canonical}"> | ||
<meta property="og:type" content="website"> | ||
<meta property="og:title" content="${data.title}"> | ||
<meta property="og:description" content="${data.description}"> | ||
<meta property="og:image" content="${data.image}"> | ||
<meta property="og:locale" content="${data.locale}"> | ||
<!-- Twitter Meta Tags --> | ||
<meta name="twitter:card" content="summary"> | ||
<meta name="twitter:title" content="${data.title}"> | ||
<meta name="twitter:site" content="${data.site}"> | ||
<meta name="twitter:description" content="${data.description}"> | ||
<meta name="twitter:image" content="${data.image}"> | ||
<meta name="twitter:image:alt" content="${data.imageAlt}"> | ||
<!-- Meta Tags Generated via https://gustavoquinalha.github.io/seotopper --> | ||
`; | ||
} |
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