|
4 | 4 | <meta charset="utf-8" /> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
6 | 6 | <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 }}"> |
13 | 13 | <meta name="msapplication-TileColor" content="#F99D25"> |
14 | 14 | <meta name="theme-color" content="#F99D25"> |
15 | 15 | <link rel="stylesheet" href="//cdn.usebootstrap.com/bootstrap/4.3.1/css/bootstrap.min.css" /> |
16 | 16 | <link rel="stylesheet" href="//kit-free.fontawesome.com/releases/latest/css/free.min.css" media="all" /> |
17 | 17 | <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 }}" /> |
20 | 20 | <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> |
21 | 21 | <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#"> |
22 | 27 | <script> |
23 | 28 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
24 | 29 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
|
42 | 47 | </div> |
43 | 48 |
|
44 | 49 | {% include footer.html %} |
45 | | - |
46 | 50 | </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> |
78 | 51 | </body> |
79 | 52 | </html> |
0 commit comments