medium.rip/frontend/show.html
Sphericalkat 3837d07495 feat: add opengraph and twitter previews
Signed-off-by: Sphericalkat <amolele@gmail.com>
2023-05-28 23:51:48 +05:30

64 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="src/show.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet">
<title>{{ .Title }}</title>
<meta property="og:type" content="object">
<meta property="og:title" content="{{ .Title }}">
<meta property="og:image" content="{{.Image}}">
<meta name="twitter:title" content="{{ .Title }}">
<meta itemprop="name" content="{{ .Title }}">
<meta name="application-name" content="{{ .Title }}">
<meta property="og:site_name" content="{{ .Title }}">
<meta name="theme-color" content="#ffffff">
<meta property="og:locale" content="en">
<meta name="language" content="en">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@Spherical_Kat">
<meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow">
<meta name="keywords" content="medium,blog,frontend,alternative,technology,golang,go">
<meta name="coverage" content="Worldwide">
<meta name="distribution" content="Global">
<meta name="HandheldFriendly" content="True">
<meta name="HandheldFriendly" content="True">
<meta name="apple-mobile-web-app-title" content="{{ .Title }}">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="description" content="{{.Description}}">
<meta itemprop="description" content={{.Description}}>
<meta property="og:description" content={{.Description}}>
<meta name="twitter:description" content={{.Description}}>
<meta name="url" content="https://medium.rip/{{.Path}}">
<meta name="twitter:url" content="https://medium.rip/{{.Path}}">
<meta property="og:url" content="https://medium.rip/{{.Path}}">
</head>
<body class="flex flex-col h-full w-full items-center">
<article class="prose lg:prose-lg sm:prose-sm py-20 px-8 md:px-0 max-w-sm sm:max-w-2xl">
<h1 class="text-2xl">{{.Title}}</h1>
<p class="pb-8"><a href="https://medium.com/u/{{.UserId}}">{{.Author}}</a> on {{.PublishDate}}</p>
{{.Paragraphs}}
</article>
</body>
</html>