Assets: Reduce size of HTML templates

This commit is contained in:
Michael Mayer 2022-02-07 09:43:12 +01:00
parent ebb4bd918a
commit f26683b227
4 changed files with 5 additions and 9 deletions

View file

@ -30,7 +30,7 @@
<link rel="manifest" href="{{ .config.ManifestUri }}" crossorigin="use-credentials"> <link rel="manifest" href="{{ .config.ManifestUri }}" crossorigin="use-credentials">
<script> <script>
window.__CONFIG__ = {{ .config }}; window.__CONFIG__ = {{ .config }};
</script> </script>
</head> </head>
<body class="{{ .config.Flags }}"> <body class="{{ .config.Flags }}">

View file

@ -13,7 +13,7 @@
<link rel="manifest" href="{{ .config.ManifestUri }}" crossorigin="use-credentials"> <link rel="manifest" href="{{ .config.ManifestUri }}" crossorigin="use-credentials">
<script> <script>
window.__CONFIG__ = {{ .config }}; window.__CONFIG__ = {{ .config }};
</script> </script>
</head> </head>
<body class="{{ .config.Flags }}"> <body class="{{ .config.Flags }}">

View file

@ -27,7 +27,7 @@
<link rel="manifest" href="{{ .config.ManifestUri }}" crossorigin="use-credentials"> <link rel="manifest" href="{{ .config.ManifestUri }}" crossorigin="use-credentials">
<script> <script>
window.__CONFIG__ = {{ .config }}; window.__CONFIG__ = {{ .config }};
</script> </script>
</head> </head>
<body class="shared {{ .config.Flags }}"> <body class="shared {{ .config.Flags }}">

View file

@ -32,16 +32,12 @@
<link rel="manifest" href="{{ .config.ManifestUri }}" crossorigin="use-credentials"> <link rel="manifest" href="{{ .config.ManifestUri }}" crossorigin="use-credentials">
<script> <script>
window.__CONFIG__ = {{ .config }}; window.__CONFIG__ = {{ .config }};
</script> </script>
<script async defer data-domain="{{ .config.SiteDomain }}" src="https://a.photoprism.app/js/plausible.js"></script> <script async defer data-domain="{{ .config.SiteDomain }}" src="https://a.photoprism.app/js/s.js"></script>
</head> </head>
<body class="{{ .config.Flags }}"> <body class="{{ .config.Flags }}">
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
your browser</a> to improve your experience.</p>
<![endif]-->
{{template "app.tmpl" .}} {{template "app.tmpl" .}}