Skip to content

Commit 6113b7d

Browse files
committed
chore(core-api): KTL-1394; add socials meta tags
1 parent eecea6e commit 6113b7d

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

dokka-templates/base.ftl

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<#import "includes/header.ftl" as header>
33
<#import "includes/footer.ftl" as footer>
44
<!DOCTYPE html>
5-
<html class="no-js">
5+
<html lang="en-US" class="no-js">
66
<head>
7-
<#if "${process.env.DOKKA_NOINDEX}" == "true"><meta name="robots" content="noindex, nofollow"></#if>
87
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
98
<@page_metadata.display/>
109
<@template_cmd name="pathToRoot"><script>var pathToRoot = "${pathToRoot}";</script></@template_cmd>
+25-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
<#macro display>
2+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8">
23
<title>${pageName}</title>
3-
<@template_cmd name="pathToRoot">
4-
<link href="${pathToRoot}images/logo-icon.svg" rel="icon" type="image/svg">
5-
</@template_cmd>
4+
<!-- Icons -->
5+
<link rel="icon" type="image/svg" sizes="16x16" href="https://kotlinlang.org/assets/images/favicon.svg?v2">
6+
<link rel="icon" type="image/x-icon" sizes="32x32" href="https://kotlinlang.org/assets/images/favicon.ico?v2">
7+
<link rel="icon" type="image/png" sizes="96x96" href="https://kotlinlang.org/assets/images/apple-touch-icon.png?v2">
8+
<link rel="icon" type="image/png" sizes="300x300" href="https://kotlinlang.org/assets/images/apple-touch-icon-72x72.png?v2">
9+
<link rel="icon" type="image/png" sizes="500x500" href="https://kotlinlang.org/assets/images/apple-touch-icon-114x114.png?v2">
10+
<meta name="image" content="https://kotlinlang.org/assets/images/open-graph/general.png">
11+
<!-- Open Graph -->
12+
<!-- <meta property="og:title" content="${pageName} | Kotlin"> Kotlin -->
13+
<!-- <meta property="og:description" content=""> -->
14+
<meta property="og:image" content="https://kotlinlang.org/assets/images/open-graph/docs.png">
15+
<meta property="og:site_name" content="Kotlin Help">
16+
<meta property="og:type" content="website">
17+
<meta property="og:locale" content="en_US">
18+
<!-- <meta property="og:url" content="{}"> -->
19+
<!-- End Open Graph -->
20+
<!-- Twitter Card -->
21+
<meta name="twitter:card" content="summary_large_image">
22+
<meta name="twitter:site" content="@kotlin">
23+
<!-- <meta name="twitter:title" content="Kotlin Docs | Kotlin"> -->
24+
<meta name="twitter:description" content="">
25+
<meta name="twitter:creator" content="@kotlin">
26+
<meta name="twitter:image:src" content="https://kotlinlang.org/assets/images/open-graph/docs.png">
27+
<!-- End Twitter Card -->
628
</#macro>

robots.txt

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ Host: kotlinlang.org
33

44
# Sitemaps
55
sitemap: https://kotlinlang.org/sitemap.xml
6+
7+
Disallow: /api/core/older/*

0 commit comments

Comments
 (0)