Skip to content
Permalink
Browse files

fix: include manifest URL on all pages

BREAKING CHANGE:
If overriding icon.png, rename it to icon-32.png and add icon-512.png.

Fix #1245
See #1247
  • Loading branch information...
gcushen committed Jul 31, 2019
1 parent 07f4cea commit 3326ad410e7053efc178c63efa0bf5902d11dbcd
@@ -138,12 +138,9 @@
<link rel="alternate" href="{{.RelPermalink}}" type="application/rss+xml" title="{{site.Title}}">
{{ end }}

{{ range .AlternativeOutputFormats }}
<link rel="{{.Rel}}" type="{{.MediaType.Type}}" href="{{.RelPermalink | safeURL}}">
{{ end }}

<link rel="icon" type="image/png" href="{{ "/img/icon.png" | relURL }}">
<link rel="apple-touch-icon" type="image/png" href="{{ "/img/icon-192.png" | relURL }}">
<link rel="manifest" href="{{ "index.webmanifest" | relURL }}">
<link rel="icon" type="image/png" href="{{ "img/icon-32.png" | relURL }}">
<link rel="apple-touch-icon" type="image/png" href="{{ "img/icon-192.png" | relURL }}">

<link rel="canonical" href="{{ .Permalink }}">

@@ -10,8 +10,8 @@
<meta name="generator" content="Source Themes Academic {{ site.Data.academic.version }}">

<link rel="manifest" href="{{ "index.webmanifest" | relURL }}">
<link rel="icon" type="image/png" href="{{ "/img/icon.png" | relURL }}">
<link rel="apple-touch-icon" type="image/png" href="{{ "/img/icon-192.png" | relURL }}">
<link rel="icon" type="image/png" href="{{ "img/icon-32.png" | relURL }}">
<link rel="apple-touch-icon" type="image/png" href="{{ "img/icon-192.png" | relURL }}">

<link rel="canonical" href="{{ .Permalink }}">

File renamed without changes.
Binary file not shown.

0 comments on commit 3326ad4

Please sign in to comment.
You can’t perform that action at this time.