feat: enable site admin to disable WebAppManifest (#2056)

This commit is contained in:
Nobuto Murata 2021-01-06 04:24:46 +09:00 committed by GitHub
commit f35d4b1858
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -174,7 +174,10 @@
<link rel="alternate" href="{{.RelPermalink}}" type="application/rss+xml" title="{{site.Title}}">
{{ end }}
{{ if site.Home.OutputFormats.Get "WebAppManifest" }}
<link rel="manifest" href="{{ "index.webmanifest" | relLangURL }}">
{{ end }}
<link rel="icon" type="image/png" href="{{(partial "functions/get_icon" 32).RelPermalink}}">
<link rel="apple-touch-icon" type="image/png" href="{{(partial "functions/get_icon" 192).RelPermalink}}">

View file

@ -12,7 +12,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="generator" content="Source Themes Academic {{ site.Data.academic.version }}">
{{ if site.Home.OutputFormats.Get "WebAppManifest" }}
<link rel="manifest" href="{{ "index.webmanifest" | relLangURL }}">
{{ end }}
<link rel="icon" type="image/png" href="{{(partial "functions/get_icon" 32).RelPermalink}}">
<link rel="apple-touch-icon" type="image/png" href="{{(partial "functions/get_icon" 192).RelPermalink}}">