-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
79 additions
and
27 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,13 +1,74 @@ | ||
const FB_ID = 'alifprihantoro' | ||
const IMG_URL = | ||
'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0s35S6K3n6U11iGP0yAlwh5XSV8WYSmZGenleDTIR64hoeD-5uoyk7g3Ih5KqY7QQVW_GiUcSZ3h1BiP0wJp6_kPPy_N9JYI8NGCBUho8zhZgXTf3onFvIN3_LYx-K2-7-P6lOGz_igD9yya6tDzPFCGkrzBBjoLvbdJYQ0-jUMjNqPKc4lqnnzS0AGc/s672/Screenshot_20241115-222638_1.jpg' | ||
export default html` | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<!-- tittle --> | ||
<b:if cond='data:blog.pageType == "index"'> | ||
<title><data:blog.pageTitle /> | News Tech</title> | ||
<b:else /> | ||
<b:if cond='data:blog.pageType != "error_page"'> | ||
<title><data:blog.pageName /> - <data:blog.title /></title> | ||
</b:if> | ||
</b:if> | ||
<b:if cond='data:blog.pageType == "error_page"'> | ||
<title>Page Not Found - <data:blog.title /></title> | ||
<b:if cond="data:view.isSingleItem"> | ||
<title><data:blog.pageName/> | <data:blog.metaDescription/></title> | ||
<b:elseif cond="data:view.isHomepage" /> | ||
<title><data:blog.title/> | <data:blog.metaDescription/></title> | ||
<b:elseif cond="data:view.search.label" /> | ||
<title><data:blog.pageTitle/> | <data:blog.metaDescription/></title> | ||
<b:elseif cond="data:view.search.query" /> | ||
<title> | ||
<data:view.search.resultsMessage/> | <data:blog.metaDescription/> | ||
</title> | ||
<b:elseif | ||
cond="data:view.search and !data:view.search.label and !data:view.search.query" /> | ||
<title><data:blog.pageTitle/> | <data:blog.metaDescription/></title> | ||
<b:elseif cond="data:view.isArchive" /> | ||
<title> | ||
<data:view.archive.rangeMessage/> | <data:blog.metaDescription/> | ||
</title> | ||
<b:elseif cond="data:view.isError" /> | ||
<title>404 - URL Tidak Ditemukan</title> | ||
</b:if> | ||
<!-- description --> | ||
<b:if cond='data:blog.metaDescription != ""'> | ||
<meta expr:content="data:blog.metaDescription" name="description" /> | ||
</b:if> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<!-- Facebook Open Graph Meta Tag --> | ||
<b:if cond="data:view.isHomepage"> | ||
<b:if cond="data:view.isPost"> | ||
<b:if cond="data:view.isPage"> | ||
<b:if cond="data:blog.url"> | ||
<meta expr:content="data:blog.url" property="og:url" /> | ||
</b:if> | ||
<meta expr:content="data:blog.title" property="og:site_name" /> | ||
<b:if cond="data:blog.pageName"> | ||
<meta | ||
expr:content="data:blog.pageName" | ||
property="og:title" /> </b:if></b:if></b:if | ||
></b:if> | ||
<meta content="blog" property="og:type" /> | ||
<b:if cond="data:blog.postImageUrl"> | ||
<meta expr:content="data:blog.postImageUrl" property="og:image" /> | ||
<b:else /> | ||
<b:if cond="data:blog.postImageThumbnailUrl"> | ||
<meta expr:content="data:blog.postThumbnailUrl" property="og:image" /> | ||
<b:else /> | ||
<meta content="${IMG_URL}" property="og:image" /> </b:if | ||
></b:if> | ||
<b:if cond="data:blog.metaDescription"> | ||
<meta expr:content="data:blog.metaDescription" property="og:description" /> | ||
<b:else /> | ||
<meta expr:content="data:post.snippet" property="og:description" /> | ||
</b:if> | ||
<meta expr:content="data:blog.title" property="og:site_name" /> | ||
<meta content="https://www.facebook.com/${FB_ID}" property="article:author" /> | ||
<meta | ||
content="https://www.facebook.com/${FB_ID}" | ||
property="article:publisher" /> | ||
<meta content="${FB_ID}" property="fb:admins" /> | ||
<meta content="${FB_ID}" property="fb:app_id" /> | ||
<meta content="en_US" property="og:locale" /> | ||
<meta content="en_GB" property="og:locale:alternate" /> | ||
<meta content="id_ID" property="og:locale:alternate" /> | ||
` |
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,13 +1,3 @@ | ||
/// <reference path="../.astro/types.d.ts" /> | ||
/// <reference types="vite/client" /> | ||
declare global { | ||
function html( | ||
e: TemplateStringsArray, | ||
...a: Array<string | number | (string | number)[]> | ||
): string | ||
type Targs = { | ||
name?: string | ||
type?: string | ||
} | ||
} | ||
export {} | ||
import '@muryp/vite-html/type' |