Skip to content

Commit 529f9ff

Browse files
committed
Update page metadata.
1 parent bcbd1c8 commit 529f9ff

4 files changed

Lines changed: 28 additions & 48 deletions

File tree

_layouts/default.html

Lines changed: 13 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<title>{{ page.title }} | {{ site.title }}</title>
7-
<link rel='manifest' href='/manifest.json'>
8-
<link rel="icon" sizes="192x192" href="/favicon-192x192.png">
9-
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
10-
<link rel="shortcut icon" href="/favicon.ico">
11-
<meta name="msapplication-square150x150logo" content="/ms-icon-150x150.png">
12-
<meta name="msapplication-config" content="/browserconfig.xml">
7+
<link rel="manifest" href="{{ manifest.json | relative_url }}">
8+
<link rel="icon" sizes="192x192" href="{{ favicon-192x192.png | relative_url }}">
9+
<link rel="apple-touch-icon" href="{{ apple-touch-icon.png | relative_url }}">
10+
<link rel="shortcut icon" href="{{ favicon.ico | relative_url }}">
11+
<meta name="msapplication-square150x150logo" content="{{ ms-icon-150x150.png | absolute_url }}">
12+
<meta name="msapplication-config" content="{{ browserconfig.xml | absolute_url }}">
1313
<meta name="msapplication-TileColor" content="#F99D25">
1414
<meta name="theme-color" content="#F99D25">
1515
<link rel="stylesheet" href="//cdn.usebootstrap.com/bootstrap/4.3.1/css/bootstrap.min.css" />
1616
<link rel="stylesheet" href="//kit-free.fontawesome.com/releases/latest/css/free.min.css" media="all" />
1717
<link rel="stylesheet" href="//kit-free.fontawesome.com/releases/latest/css/free-v4-shims.min.css" media="all" />
18-
<link rel="stylesheet" href="Content/style.css" />
19-
<link rel="stylesheet" href="Content/pygment_trac.min.css" />
18+
<link rel="stylesheet" href="{{ Content/style.css | relative_url }}" />
19+
<link rel="stylesheet" href="{{ Content/pygment_trac.min.css | relative_url }}" />
2020
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
2121
<meta name="description" content="{{ site.description }}" />
22+
<meta property="og:title" content="{{ page.title }}">
23+
<meta property="og:description" content="{{ page.summary }}">
24+
<meta property="og:image" content="{{ favicon.ico | absolute_url }}">
25+
<meta property="og:url" content="{{ page.url | absolute_url }}">
26+
<meta property="og:site_name" content="Community for F#">
2227
<script>
2328
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
2429
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -42,38 +47,6 @@
4247
</div>
4348

4449
{% include footer.html %}
45-
4650
</div>
47-
<script type="module">
48-
import 'https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate';
49-
function check() {
50-
if (!('serviceWorker' in navigator)) {
51-
throw new Error('No Service Worker support!');
52-
}
53-
if (!('PushManager' in window)) {
54-
throw new Error('No Push API Support!');
55-
}
56-
}
57-
function registerServiceWorker() {
58-
const el = document.createElement('pwa-update');
59-
document.body.appendChild(el);
60-
}
61-
async function requestNotificationPermission() {
62-
const permission = await window.Notification.requestPermission();
63-
// value of permission can be 'granted', 'default', 'denied'
64-
// granted: user has accepted the request
65-
// default: user has dismissed the notification permission popup by clicking on x
66-
// denied: user has denied the request.
67-
if(permission !== 'granted'){
68-
throw new Error('Permission not granted for Notification');
69-
}
70-
}
71-
async function main() {
72-
check();
73-
registerServiceWorker();
74-
window.addEventListener("DOMContentLoaded", requestNotificationPermission, false);
75-
}
76-
main();
77-
</script>
7851
</body>
7952
</html>

_layouts/home.html

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<title>{{ page.title }} | {{ site.title }}</title>
7-
<link rel='manifest' href='/manifest.json'>
8-
<link rel="icon" sizes="192x192" href="/favicon-192x192.png">
9-
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
10-
<link rel="shortcut icon" href="/favicon.ico">
11-
<meta name="msapplication-square150x150logo" content="/ms-icon-150x150.png">
12-
<meta name="msapplication-config" content="/browserconfig.xml">
7+
<link rel="manifest" href="{{ manifest.json | relative_url }}">
8+
<link rel="icon" sizes="192x192" href="{{ favicon-192x192.png | relative_url }}">
9+
<link rel="apple-touch-icon" href="{{ apple-touch-icon.png | relative_url }}">
10+
<link rel="shortcut icon" href="{{ favicon.ico | relative_url }}">
11+
<meta name="msapplication-square150x150logo" content="{{ ms-icon-150x150.png | absolute_url }}">
12+
<meta name="msapplication-config" content="{{ browserconfig.xml | absolute_url }}">
1313
<meta name="msapplication-TileColor" content="#F99D25">
1414
<meta name="theme-color" content="#F99D25">
1515
<link rel="stylesheet" href="//cdn.usebootstrap.com/bootstrap/4.3.1/css/bootstrap.min.css" />
1616
<link rel="stylesheet" href="//kit-free.fontawesome.com/releases/latest/css/free.min.css" media="all" />
1717
<link rel="stylesheet" href="//kit-free.fontawesome.com/releases/latest/css/free-v4-shims.min.css" media="all" />
18-
<link rel="stylesheet" href="Content/style.css" />
19-
<link rel="stylesheet" href="Content/pygment_trac.min.css" />
18+
<link rel="stylesheet" href="{{ Content/style.css | relative_url }}" />
19+
<link rel="stylesheet" href="{{ Content/pygment_trac.min.css | relative_url }}" />
2020
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
2121
<meta name="description" content="{{ site.description }}" />
22+
<meta property="og:title" content="{{ page.title }}">
23+
<meta property="og:description" content="{{ page.summary }}">
24+
<meta property="og:image" content="{{ favicon.ico | absolute_url }}">
25+
<meta property="og:url" content="{{ page.url | absolute_url }}">
26+
<meta property="og:site_name" content="Community for F#">
2227
<script>
2328
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
2429
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Home
33
layout: home
44
order: null
5+
summary: Community for F# Home Page
56
---
67

78
<article class="row">

offline.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Offline
33
layout: default
44
order: null
5+
summary: Community for F# is offline.
56
---
67

78
<header>

0 commit comments

Comments
 (0)