Disable PWA on local builds
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
e99035318f
commit
84219f1f13
|
@ -1,7 +1,9 @@
|
|||
<link rel="apple-touch-icon" sizes="180x180" href="{{"apple-touch-icon.webp" | relURL}}">
|
||||
<link rel="icon" type="image/webp" sizes="32x32" href="{{"favicon-32x32.webp" | relURL}}">
|
||||
<link rel="icon" type="image/webp" sizes="16x16" href="{{"favicon-16x16.webp" | relURL}}">
|
||||
{{ if not .Site.IsServer }}
|
||||
<link rel="manifest" href="{{"site.webmanifest" | relURL}}">
|
||||
{{ end }}
|
||||
<link rel="mask-icon" href="{{"safari-pinned-tab.svg" | relURL}}" color="#252627">
|
||||
<link rel="shortcut icon" href="{{"favicon.ico" | relURL}}">
|
||||
<meta name="theme-color" content="#252627">
|
|
@ -7,6 +7,7 @@
|
|||
<meta name="robots" content="noodp" />
|
||||
<meta name="flattr:id" content="xj7zpw">
|
||||
<link rel="canonical" href="{{ .Permalink }}" />
|
||||
{{ if not .Site.IsServer }}
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', function () {
|
||||
|
@ -20,6 +21,7 @@
|
|||
});
|
||||
}
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
{{ block "title" . }}
|
||||
<title>
|
||||
|
|
Loading…
Reference in New Issue