Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wayjam/hugo-theme-mixedpaper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayJam So <imsuwj@gmail.com>2020-05-22 13:39:47 +0300
committerWayJam So <imsuwj@gmail.com>2020-05-23 07:40:58 +0300
commitc55230c99fb3cbd356ab892324c7cfc5ac777e3f (patch)
tree65f212a665133c1344220b86c0d2369c8ab6eeb2
parent66e1d33717e7672a37a734637282552eedaadad7 (diff)
opt: static file
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/head.html26
2 files changed, 14 insertions, 14 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 991a08e..f360522 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -6,5 +6,5 @@
</p>
{{ $script := resources.Get "js/main.js" | minify | fingerprint -}}
- <script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
+ <script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous" async></script>
</footer>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index fe5371f..f5cc17d 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -9,10 +9,10 @@
</title>
<!-- Icons -->
- <link rel="apple-touch-icon" sizes="180x180" href="{{ `apple-touch-icon.png` | relURL }}" />
- <link rel="icon" type="image/png" sizes="32x32" href="{{ `favicon-32x32.png` | relURL }}" />
- <link rel="icon" type="image/png" sizes="16x16" href="{{ `favicon-16x16.png` | relURL }}" />
- <link rel="manifest" href="{{ `manifest.json` | relURL }}" />
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ `apple-touch-icon.png` | relURL }}" />
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ `favicon-32x32.png` | relURL }}" />
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ `favicon-16x16.png` | relURL }}" />
+ <link rel="manifest" href="{{ `manifest.json` | relURL }}" />
<meta name="theme-color" content="#ffffff" />
<!-- Reset -->
@@ -22,15 +22,15 @@
/>
<!-- Use Hugo Pipes to process the Sass file (convert to CSS, minify, and add a hash) -->
- {{ $base_style := resources.Get "css/basic.scss" | toCSS | minify | fingerprint }}
- {{ $main_style := resources.Get "css/main.scss" | toCSS | minify | fingerprint }}
- <link rel="stylesheet" href="{{ $base_style.Permalink }}" />
- <link rel="stylesheet" href="{{ $main_style.Permalink }}" />
+ {{ $base_style := resources.Get "css/basic.scss" }}
+ {{ $main_style := resources.Get "css/main.scss" }}
+ {{ $CSS := slice $base_style $main_style | resources.Concat "style.css" | toCSS | minify | fingerprint }}
+ <link rel="stylesheet" href="{{ $CSS.Permalink }}" integrity="{{ $CSS.Data.Integrity }}" />
{{ with .OutputFormats.Get "RSS" }}
- {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
- {{ end }}
- {{ if not .Site.IsServer }}
- {{ template "_internal/google_analytics.html" . }}
- {{ end }}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end }}
+ {{ if not .Site.IsServer }}
+ {{ template "_internal/google_analytics.html" . }}
+ {{ end }}
</head>